4580ec74800db2a9e4288d49c36c41b1c2077c42,donkeycar/management/tub.py,TubApi,clips_of_tub,#TubApi#Any#,81

Before Change



    def clips_of_tub(self, tub_path):
        seqs = [ int(f.split("_")[0]) for f in os.listdir(tub_path) if f.endswith(".jpg") ]
        seqs.sort()

        entries = ((os.stat(self.image_path(tub_path, seq))[ST_ATIME], seq) for seq in seqs)

        (last_ts, seq) = next(entries)

After Change


        clips = []
        for record in tub:
            index = record["_index"]
            images_relative_path = os.path.join(Tub.images(), record["cam/image_array"])
            record["cam/image_array"] = images_relative_path
            clips.append(record)

        return [clips]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: autorope/donkeycar
Commit Name: 4580ec74800db2a9e4288d49c36c41b1c2077c42
Time: 2020-10-04
Author: tikurahul@gmail.com
File Name: donkeycar/management/tub.py
Class Name: TubApi
Method Name: clips_of_tub


Project Name: CellProfiler/CellProfiler
Commit Name: ac0530de8ebfe4c57c15e033f26c7460c1549c44
Time: 2013-03-13
Author: leek@broadinstitute.org
File Name: bioformats/__init__.py
Class Name:
Method Name: start_cellprofiler_jvm


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: 906771bf319aa1c5c680638d566b352c63cf6ab2
Time: 2017-02-16
Author: seannaren@hotmail.com
File Name: data/utils.py
Class Name:
Method Name: create_manifest