          """ Check whether this has already exists """
          existing_frame = self.alignments.hashes_to_frame.get(alignment["hash"], None)
          if not existing_frame:
              return False
          if existing_frame[0] == frame:
              logger.verbose("Face '%s': %s already exists in destination at position %s. "
                             "Skipping", frame, idx, existing_frame[1])
          elif existing_frame[0] != frame:
              logger.verbose("Face '%s': %s exists in destination as face '%s': %s. "
                             "Skipping", frame, idx, existing_frame[0], existing_frame[1])
 
</s> remove                            "Skipping", frame, idx, existing_frame[1])
        elif existing_frame[0] != frame:
            logger.verbose("Face '%s': %s exists in destination as face '%s': %s. "
                           "Skipping", frame, idx, existing_frame[0], existing_frame[1])
 </s> add                            "Skipping", frame, idx, existing_frame[frame])
        elif frame not in existing_frame.keys():
            logger.verbose("Face '%s': %s exists in destination as: %s. "
                           "Skipping", frame, idx, existing_frame) </s> remove         """ Check whether this has already exists """
 </s> add         """ Check whether this face already exists """ </s> remove         frame_faces = [(f_hash, details[1])
 </s> add         frame_faces = list()
        frame_faces = [(f_hash, idx) </s> remove 
            if self.alignments.frame_has_multiple_faces(frame):
                if self.type == "faces":
                    # Add correct alignments index for moving faces
                    retval = (retval, idx)
                logger.trace("Returning: '%s'", retval)
                yield retval
 </s> add             for frame, idx in frame_idx:
                if self.alignments.frame_has_multiple_faces(frame):
                    if self.type == "faces":
                        # Add correct alignments index for moving faces
                        retval = (retval, idx)
                    logger.trace("Returning: '%s'", retval)
                    yield retval </s> remove             face_name, face_ext = self.faces.items[f_hash]
 </s> add             faces = self.faces.items[f_hash]
            if len(faces) == 1:
                face_name, face_ext = faces[0]
            else:
                face_name, face_ext = self.check_multi_hashes(faces, frame, idx)
        if frame in existing_frame.keys():
          """ Check whether this has already exists """
          existing_frame = self.alignments.hashes_to_frame.get(alignment["hash"], None)
          if not existing_frame:
              return False
        if frame in existing_frame.keys():
              logger.verbose("Face '%s': %s already exists in destination at position %s. "
                             "Skipping", frame, idx, existing_frame[1])
          elif existing_frame[0] != frame:
              logger.verbose("Face '%s': %s exists in destination as face '%s': %s. "
                             "Skipping", frame, idx, existing_frame[0], existing_frame[1])
keep keep keep keep replace keep keep keep keep keep
 Alignments tool: Filename clash bugfix 
tools/lib_alignments/jobs.py