857cb1f38abfc3f467b6a8e53ae54365e05fcff2,deeplabcut/create_project/add.py,,add_new_videos,#Any#Any#Any#Any#,11

Before Change


    else:
        print("Creating the symbolic link of the video")
        for src, dst in zip(videos, destinations):
            if dst.exists() and not DEBUG:
                raise FileExistsError("Video {} exists already!".format(dst))
            try:
                src = str(src)
                dst = str(dst)
                os.symlink(src, dst)

After Change


                shutil.copy(os.fspath(src),os.fspath(dst)) 
    else:
        for src, dst in zip(videos, destinations):
            if dst.exists():
                pass
            else:
                print("Creating the symbolic link of the video")
                src = str(src)
                dst = str(dst)
                os.symlink(src, dst)
    
    if copy_videos==True:
        videos=destinations // in this case the *new* location should be added to the config file
    // adds the video list to the config.yaml file
    for idx,video in enumerate(videos):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: AlexEMG/DeepLabCut
Commit Name: 857cb1f38abfc3f467b6a8e53ae54365e05fcff2
Time: 2019-02-23
Author: amathis@fas.harvard.edu
File Name: deeplabcut/create_project/add.py
Class Name:
Method Name: add_new_videos


Project Name: microsoft/nni
Commit Name: e0b692c96565074d4cb148e6011b2007d0a55348
Time: 2020-03-23
Author: Quanlu.Zhang@microsoft.com
File Name: examples/model_compress/model_speedup.py
Class Name:
Method Name:


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: 18cdb177d7e87c34cdbc8245ce1b8e28cd070af2
Time: 2017-11-05
Author: akshayubhat@gmail.com
File Name: dvaapp/models.py
Class Name: Video
Method Name: create_directory