a09d1f3c4b979972c6594133c21b2783c9234482,mltsp/featurize.py,,load_and_store_feature_data,#Any#Any#Any#Any#,61

Before Change


    if first_N:
        features = features[:first_N]
    write_features_to_disk(features, featureset_id, in_docker_container)
    if not in_docker_container:
        os.remove(features_path)
    return "Featurization of timeseries data complete."


def featurize_data_archive(headerfile_path, zipfile_path, features_to_use=[],

After Change


                                in_docker_container=False, first_N=None):
    targets, metadata = ft.parse_headerfile(features_path)
    if first_N:
        metadata = metadata[:first_N]
        if targets is not None:
            targets = targets[:first_N]
    featureset = ft.assemble_featureset([], targets, metadata)
    write_features_to_disk(featureset, featureset_id, in_docker_container)
//    if not in_docker_container:
//        os.remove(features_path)
    return featureset
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cesium-ml/cesium
Commit Name: a09d1f3c4b979972c6594133c21b2783c9234482
Time: 2015-11-10
Author: brettnaul@gmail.com
File Name: mltsp/featurize.py
Class Name:
Method Name: load_and_store_feature_data


Project Name: NifTK/NiftyNet
Commit Name: aa495c2ace9444aa5028f699ae62dddef45ab7d9
Time: 2017-06-15
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name:


Project Name: NifTK/NiftyNet
Commit Name: 0a3c1aa4d67cb9c49f22a87bef180c07dfafec8a
Time: 2017-06-16
Author: wenqi.li@ucl.ac.uk
File Name: testing/get_gpu_index.py
Class Name:
Method Name: