parameters: (test, revisions)
return_statement: return stored_anomaly_dicts
docstring: Makes a list of data about Anomaly entities for a Test.
docstring_summary: Makes a list of data about Anomaly entities for a Test.
docstring_tokens: Makes a list of data about Anomaly entities for a Test .
function: def _FetchStoredAnomalies(test, revisions):
    """Makes a list of data about Anomaly entities for a Test."""
    stored_anomalies = anomaly.Anomaly.GetAlertsForTest(test.key)
  
    stored_anomaly_dicts = []
    for a in stored_anomalies:
      if a.end_revision > revisions[0]:
        stored_anomaly_dicts.append({
            'revision': a.end_revision,
            'median_before': a.median_before_anomaly,
            'median_after': a.median_after_anomaly,
            'percent_changed': a.percent_changed,
            'bug_id': _GetDisplayBugId(a.bug_id),
            'timestamp': a.timestamp,
        })
    return stored_anomaly_dicts
function_tokens: def _FetchStoredAnomalies ( test , revisions ) : stored_anomalies = anomaly . Anomaly . GetAlertsForTest ( test . key ) stored_anomaly_dicts = [ ] for a in stored_anomalies : if a . end_revision > revisions [ 0 ] : stored_anomaly_dicts . append ( { 'revision' : a . end_revision , 'median_before' : a . median_before_anomaly , 'median_after' : a . median_after_anomaly , 'percent_changed' : a . percent_changed , 'bug_id' : _GetDisplayBugId ( a . bug_id ) , 'timestamp' : a . timestamp , } ) return stored_anomaly_dicts