5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf,mltsp/tests/test_flask_app.py,,featurize_setup,#,35

Before Change


        fpaths.append(pjoin(DATA_DIR, fname))
    for fpath in fpaths:
        shutil.copy(fpath, config["paths"]["upload_folder"])
        dest_paths.append(pjoin(config["paths"]["upload_folder"], os.path.basename(fpath)))
    return dest_paths

After Change


CUSTOM_SCRIPT = "testfeature1.py"

def featurize_setup():
    ts_paths = [pjoin(config["paths"]["upload_folder"], f) for f in TS_FILES]
    custom_script_path = pjoin(config["paths"]["upload_folder"], CUSTOM_SCRIPT)
    for fname in TS_FILES + [CUSTOM_SCRIPT]:
        fpath = pjoin(DATA_DIR, fname)
        shutil.copy(fpath, config["paths"]["upload_folder"])
    rdb.table("datasets").insert({"id": "ds1", "projkey": "111",
                                "name": "Test dataset", "created": "111",
                                "ts_filenames": ts_paths}).run(fa.g.rdb_conn)
    return ts_paths, custom_script_path

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: cesium-ml/cesium
Commit Name: 5b5fb4c657f0cdf4fe404aa9daaf99aca83d01cf
Time: 2016-02-24
Author: brettnaul@gmail.com
File Name: mltsp/tests/test_flask_app.py
Class Name:
Method Name: featurize_setup


Project Name: RaRe-Technologies/gensim
Commit Name: 6a289fefd72f038c8cc14826f63624950f5de1f8
Time: 2016-07-13
Author: menshikh.iv@gmail.com
File Name: gensim/models/lda_worker.py
Class Name:
Method Name: main


Project Name: RaRe-Technologies/gensim
Commit Name: 6a289fefd72f038c8cc14826f63624950f5de1f8
Time: 2016-07-13
Author: menshikh.iv@gmail.com
File Name: gensim/models/lda_dispatcher.py
Class Name:
Method Name: main