A casual search reveals the FBI and DHS are a pitiful 0 for 40 warning of terror attacks—some of which were specifically about 4th of July threats, none of which materialized in any way.
Source: Zero for 40 at Predicting Attacks: Why Do Media Still Take FBI Terror Warnings Seriously?