      """
      logger.trace("Requested batch: '%s'", filenames)
      executor = futures.ThreadPoolExecutor()
      with executor:
          read_hashes = {executor.submit(read_image_hash, filename): filename
                         for filename in filenames}
          logger.debug("Succesfully submitted %s items to executor", len(filenames))
          for future in futures.as_completed(read_hashes):
              retval = (read_hashes[future], future.result())
              logger.trace("Yielding: %s", retval)
 
</s> remove         side_hashes = self._hashes[side]
        hash_indices = [idx for idx, hsh in enumerate(side_hashes["hashes"]) if hsh == face_hash]
        retval = [side_hashes["filenames"][idx] for idx in hash_indices]
 </s> add         retval = self._hashes[side][face_hash] </s> remove             align_hashes = set(face.hash for face in self._detected_faces[side])
            if not align_hashes.issuperset(train_hashes["hashes"]):
 </s> add             align_hashes = set(self._detected_faces[side])
            if not align_hashes.issuperset(set(train_hashes)): </s> remove         side_hashes = set(self._hashes[side]["hashes"])
        detected_faces = []
 </s> add         dupe_count = 0
        side_hashes = set(self._hashes[side])
        detected_faces = dict()
        logger.debug("Submitting %s items to executor", len(filenames))
      """
      logger.trace("Requested batch: '%s'", filenames)
      executor = futures.ThreadPoolExecutor()
      with executor:
        logger.debug("Submitting %s items to executor", len(filenames))
          read_hashes = {executor.submit(read_image_hash, filename): filename
                         for filename in filenames}
          logger.debug("Succesfully submitted %s items to executor", len(filenames))
          for future in futures.as_completed(read_hashes):
              retval = (read_hashes[future], future.result())
              logger.trace("Yielding: %s", retval)
keep keep keep add keep keep keep keep keep keep
 plugins.train.trainer - Speed up mask caching 
lib/image.py