586b49b07574f7812101248c94d73ef1fb2a5c12,mltsp/tests/test_predict.py,,copy_classification_test_data,#,15

Before Change




def copy_classification_test_data():
    fnames = ["test_featureset.nc"]
    for fname in fnames:
        shutil.copy(pjoin(DATA_PATH, fname), cfg.FEATURES_FOLDER)

After Change


    for fname in fnames:
        if fname.endswith(".nc"):
            shutil.copy(pjoin(DATA_PATH, fname), cfg.FEATURES_FOLDER)
        elif fname.endswith(".py"):
            shutil.copy(pjoin(DATA_PATH, fname), cfg.CUSTOM_FEATURE_SCRIPT_FOLDER)
        else:
            shutil.copy(pjoin(DATA_PATH, fname), cfg.UPLOAD_FOLDER)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: cesium-ml/cesium
Commit Name: 586b49b07574f7812101248c94d73ef1fb2a5c12
Time: 2015-11-11
Author: brettnaul@gmail.com
File Name: mltsp/tests/test_predict.py
Class Name:
Method Name: copy_classification_test_data


Project Name: commonsense/conceptnet5
Commit Name: d3ee4125592e31af6d7548ad80728de1e74750dd
Time: 2015-06-22
Author: jchin@luminoso.com
File Name: ninja.py
Class Name:
Method Name: parse_conceptnet4


Project Name: cesium-ml/cesium
Commit Name: e547a82c24b37c157bc9b40d2724a7b1fd0a7b0f
Time: 2017-04-17
Author: brettnaul@gmail.com
File Name: cesium/featurize.py
Class Name:
Method Name: save_featureset