afd4fa789b00e2aafd0f4ef1f864f87a62a44499,tools/lib_alignments/media.py,Frames,process_folder,#Frames#,191

Before Change


        for frame in os.listdir(self.folder):
            if not self.valid_extension(frame):
                continue
            filename = os.path.splitext(frame)[0]
            file_extension = os.path.splitext(frame)[1]

            retval = {"frame_fullname": frame,
                      "frame_name": filename,
                      "frame_extension": file_extension}
            logger.trace(retval)
            yield retval

    def load_items(self):

After Change


         Iterate through the frames dir pulling the base filename 
        logger.info("Loading file list from %s", self.folder)
        iterator = self.process_video if self.vid_cap else self.process_frames
        for item in iterator():
            yield item

    def process_frames(self):
         Process exported Frames 
        logger.info("Loading file list from %s", self.folder)
        for frame in os.listdir(self.folder):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: deepfakes/faceswap
Commit Name: afd4fa789b00e2aafd0f4ef1f864f87a62a44499
Time: 2018-12-22
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/lib_alignments/media.py
Class Name: Frames
Method Name: process_folder


Project Name: deepchem/deepchem
Commit Name: 763f8721952e8042d6086b103deb2450334be4b3
Time: 2017-03-09
Author: lilleswing@gmail.com
File Name: deepchem/utils/rdkit_util.py
Class Name:
Method Name: pdbqt_to_pdb


Project Name: vatlab/SoS
Commit Name: a8a37622f0ef987ca83c9b401700d0fcbece9b70
Time: 2016-12-12
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: cmd_convert