6ff60eb0aef50ebd7bcfc5ce34b741eed193b2ef,plantcv/utils/sample_images.py,,sample_images,#Any#Any#Any#,7

Before Change


            out_file.write(",".join(element))
            snap_path = os.path.join(source_path, "snapshot" + element[1])
            folder_path = os.path.join(dest_path, "snapshot" + element[1])
            if not os.path.exists(folder_path):
                os.mkdir(folder_path)
            for root, dirs, files in os.walk(snap_path):
                for file in files:
                    shutil.copy(os.path.join(root, file), folder_path)
    else:

After Change


            out_file.write(",".join(element))
            snap_path = os.path.join(source_path, "snapshot" + element[1])
            folder_path = os.path.join(dest_path, "snapshot" + element[1])
            os.makedirs(folder_path, exist_ok=True)
            for root, dirs, files in os.walk(snap_path):
                for file in files:
                    shutil.copy(os.path.join(root, file), folder_path)
    else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: danforthcenter/plantcv
Commit Name: 6ff60eb0aef50ebd7bcfc5ce34b741eed193b2ef
Time: 2019-10-10
Author: dominik.schneider@wsu.edu
File Name: plantcv/utils/sample_images.py
Class Name:
Method Name: sample_images


Project Name: ray-project/ray
Commit Name: 254b1ec370a07bbd7d60c502ce3b38f4c1fef567
Time: 2020-04-29
Author: mehrdadn@users.noreply.github.com
File Name: python/setup.py
Class Name: build_ext
Method Name: move_file


Project Name: IndicoDataSolutions/finetune
Commit Name: 17f9d27b731dac700dcf792122fd8abc8c97de62
Time: 2019-10-15
Author: benlt@hotmail.co.uk
File Name: finetune/saver.py
Class Name: Saver
Method Name: save