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

Before Change


    if not os.path.exists(source_path):
        raise IOError("Directory does not exist: {0}".format(source_path))

    if not os.path.exists(dest_path):
        os.mkdir(dest_path)

    num = int(num)
    img_element_array = []
    sample_array = []
    num_images = []

After Change


    if not os.path.exists(source_path):
        raise IOError("Directory does not exist: {0}".format(source_path))

    os.makedirs(dest_path, exist_ok=True)//python >=3.2

    img_element_array = []
    sample_array = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: 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


Project Name: MycroftAI/padatious
Commit Name: f79a6ec6868d237f583cb50af89267db0fdaf04c
Time: 2019-03-07
Author: matthew331199@gmail.com
File Name: padatious/intent_container.py
Class Name: IntentContainer
Method Name: __init__