code: def analyze(self, file, filename):
          
          potential_secrets = {}
          for line_num, line in enumerate(file.readlines(), start=1):
              secrets = self.analyze_string(line, line_num, filename)
              potential_secrets.update(secrets)
  
          return potential_secrets
docs: :param file:     The File object itself.
          :param filename: string; filename of File object, used for creating
                           PotentialSecret objects
          :returns         dictionary representation of set (for random access by hash)
                           { detect_secrets.core.potential_secret.__hash__:
                                 detect_secrets.core.potential_secret         }