5386ebe2f7498aca94f6614060d3fa568832fbcd,donkeycar/management/tub.py,TubApi,post,#TubApi#Any#,97

Before Change


        new_frames = list(itertools.chain(*new_clips["clips"]))
        frames_to_delete = [str(item) for item in old_frames if item not in new_frames]
        for frm in frames_to_delete:
            os.remove(os.path.join(tub_path, "record_" + frm + ".json"))
            os.remove(os.path.join(tub_path, frm + "_cam-image_array_.jpg"))

After Change


        frames_to_delete = [str(item) for item in old_frames if item not in new_frames]
        for frm in frames_to_delete:
            os.remove(self.record_path(tub_path, frm))
            os.remove(self.image_path(tub_path, frm))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: autorope/donkeycar
Commit Name: 5386ebe2f7498aca94f6614060d3fa568832fbcd
Time: 2017-09-21
Author: kenneth.jiang@gmail.com
File Name: donkeycar/management/tub.py
Class Name: TubApi
Method Name: post


Project Name: fizyr/keras-retinanet
Commit Name: d237289903f73f6a42e70242e76f007326b08a48
Time: 2019-10-18
Author: 8233615+AndreaPi@users.noreply.github.com
File Name: keras_retinanet/preprocessing/coco.py
Class Name: CocoGenerator
Method Name: load_image


Project Name: fizyr/keras-retinanet
Commit Name: 36d4f98bcb6cb717ea10feed7847916d9c2799a2
Time: 2019-10-31
Author: h.gaiser@fizyr.com
File Name: keras_retinanet/preprocessing/pascal_voc.py
Class Name: PascalVocGenerator
Method Name: load_image