199f387b50df1f32ded6ac5d54b68f08f009661b,deeplabcut/create_project/new.py,,create_new_project,#Any#Any#Any#Any#Any#Any#,18

Before Change


        print("Created "{}"".format(p))

    // Import all videos in a folder or if just one video withouth [] passed, then make it a list.
    if isinstance(videos,str):
        //there are two cases:
        if os.path.isdir(videos): // it is a path!
            path=videos
            videos=[os.path.join(path,vp) for vp in os.listdir(path) if videotype in vp]
            if len(videos)==0:
                print("No videos found in",path,os.listdir(path))
                print("Perhaps change the videotype, which is currently set to:", videotype)
            else:
                print("Directory entered, " , len(videos)," videos were found.")
        else:
            if os.path.isfile(videos):
                videos=[videos]

    videos = [Path(vp) for vp in videos]
    dirs = [data_path/Path(i.stem) for i in videos]
    for p in dirs:
        

After Change


                print("Perhaps change the videotype, which is currently set to:", videotype)
            else:
                videos = vids
                print(len(vids_in_dir)," videos from the directory" ,i, "were added to the project.")
        else:
            if os.path.isfile(i):
                vids = vids + [i]
            videos = vids
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 199f387b50df1f32ded6ac5d54b68f08f009661b
Time: 2019-09-19
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/new.py
Class Name:
Method Name: create_new_project


Project Name: NervanaSystems/nlp-architect
Commit Name: 794bd558da80b65713b51a964ec61e7ef36d4bf2
Time: 2018-05-14
Author: peteriz@users.noreply.github.com
File Name: examples/intent_extraction/interactive.py
Class Name:
Method Name:


Project Name: AlexEMG/DeepLabCut
Commit Name: 3ab517035d61e06e9d59bcc9b39b9710897e82c2
Time: 2020-04-04
Author: mathis@rowland.harvard.edu
File Name: deeplabcut/generate_training_dataset/frame_extraction.py
Class Name:
Method Name: extract_frames


Project Name: AlexEMG/DeepLabCut
Commit Name: a51d9ee3185ae5f83b5903d6b8549257ea4f13ff
Time: 2020-04-02
Author: amathis@fas.harvard.edu
File Name: deeplabcut/generate_training_dataset/frame_extraction.py
Class Name:
Method Name: extract_frames