def ItemQualificationCheck(self, filename_list, date, range_of_days):
    result_set = set([])
    period = datetime.timedelta(days=range_of_days)
    for filename in filename_list:
      p = models.PackageInfo.get_by_key_name(filename)
      # Package must currently be in stable to be considered.
      if p:
        if 'stable' in p.catalogs and 'stable' in p.manifests:
          query = query = models.AdminPackageLog.all()
          query.filter('filename =', filename)
          query.order('-mtime')
          # iterates over log entries in reverse chronological order.
          for item in query:
            # If it was not in stable in the next log entry it makes the list.
            if 'stable' not in item.catalogs:
              result_set.add(item.filename)
              break
            # If it was in stable prior to the date range, it does not.
            else:
              if item.mtime < date - period:
                break
    return result_set
The number of documents retrieved so far.
dataset/ETHPy150Open google/simian/src/simian/mac/admin/release_report.py/ReleaseReport.ItemQualificationCheck--crossover with--dataset/ETHPy150Open blynch/CloudMemeBackend/pymongo/cursor.py/Cursor.retrieved