              A list of frame indices corresponding to the key frames in the input video
          """
          logger.info("Saving video meta information to Alignments file")
          for idx, pts in enumerate(pts_time):
              meta = dict(pts_time=pts, keyframe=idx in keyframes)
              key = "{}_{:06d}.png".format(basename, idx + 1)
              if key not in self.data:
 
</s> remove         for idx, key in enumerate(sorted(self.data)):
            meta = dict(pts_time=pts_time[idx],
                        keyframe=idx in keyframes)
            self.data[key]["video_meta"] = meta
 </s> add         for idx, pts in enumerate(pts_time):
            meta = dict(pts_time=pts, keyframe=idx in keyframes)
            key = "{}_{:06d}.png".format(basename, idx + 1)
            if key not in self.data:
                self.data[key] = dict(video_meta=meta, faces=[])
            else:
                self.data[key]["video_meta"] = meta
        sample_filename = next(fname for fname in self.data)
        basename = sample_filename[:sample_filename.rfind("_")]
        logger.info("sample filename: %s, base filename: %s", sample_filename, basename)
              A list of frame indices corresponding to the key frames in the input video
          """
        sample_filename = next(fname for fname in self.data)
        basename = sample_filename[:sample_filename.rfind("_")]
        logger.info("sample filename: %s, base filename: %s", sample_filename, basename)
          logger.info("Saving video meta information to Alignments file")
          for idx, pts in enumerate(pts_time):
              meta = dict(pts_time=pts, keyframe=idx in keyframes)
              key = "{}_{:06d}.png".format(basename, idx + 1)
              if key not in self.data:
keep add keep keep keep keep keep
 lib.alignments - Update video meta data to handle training alignments files/frame ranges 
lib/alignments.py