def _all_releases(items):
 relcounts = defaultdict(int)
 for item in items:
  if (item.path not in _matches):
   continue
  (_, release_ids) = _matches[item.path]
  for release_id in release_ids:
   relcounts[release_id] += 1
 for (release_id, count) in relcounts.items():
  if ((float(count) / len(items)) > COMMON_REL_THRESH):
   (yield release_id)

def _all_releases ( items ) : relcounts = defaultdict ( int ) for item in items : if ( item . path not in _matches ) : continue ( _ , release_ids ) = _matches [ item . path ] for release_id in release_ids : relcounts [ release_id ] += 1 for ( release_id , count ) in relcounts . items ( ) : if ( ( float ( count ) / len ( items ) ) > COMMON_REL_THRESH ) : ( yield release_id )
given an iterable of items .