5de330b7a69ef18e4539ee95a8e5e7551a512b92,plasma/conf_parser.py,,parameters,#Any#,9

Before Change


            params["paths"]["use_signals"] = selected_signals.values()
        else:
            //default case
            params["paths"]["use_signals"] = params["paths"]["use_signals_dict"].values()

        print("Selected signals {}".format(params["paths"]["use_signals"]))

        params["paths"]["shot_files_all"] = params["paths"]["shot_files"]+params["paths"]["shot_files_test"]
        params["paths"]["all_machines"] = list(set([file.machine for file in params["paths"]["shot_files_all"]]))

    return params

After Change


                    print("Signal {} is not fully defined for {} machine. Skipping...".format(sig,params["paths"]["data"].split("_")[0]))
            params["paths"]["specific_signals"] = list(filter(lambda x: x in params["paths"]["use_signals_dict"].keys(), params["paths"]["specific_signals"]))
            selected_signals = {k: params["paths"]["use_signals_dict"][k] for k in params["paths"]["specific_signals"]}
            params["paths"]["use_signals"] = list(selected_signals.values())
        else:
            //default case
            params["paths"]["use_signals"] = list(params["paths"]["use_signals_dict"].values())

        print("Selected signals {}".format(params["paths"]["use_signals"]))

        params["paths"]["shot_files_all"] = params["paths"]["shot_files"]+params["paths"]["shot_files_test"]
        params["paths"]["all_machines"] = list(set([file.machine for file in params["paths"]["shot_files_all"]]))

    return params
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: PPPLDeepLearning/plasma-python
Commit Name: 5de330b7a69ef18e4539ee95a8e5e7551a512b92
Time: 2017-06-08
Author: asvyatkovskiy@gmail.com
File Name: plasma/conf_parser.py
Class Name:
Method Name: parameters


Project Name: Featuretools/featuretools
Commit Name: 99a80d7ee83c9bbc7d5781bca8026a33ef7ca699
Time: 2017-12-19
Author: jblum18@gmail.com
File Name: featuretools/entityset/entityset.py
Class Name: EntitySet
Method Name: normalize_entity


Project Name: Pinafore/qb
Commit Name: d5beb5b2e04e5788152807a3287d305476fce0d3
Time: 2016-06-25
Author: ski.rodriguez@gmail.com
File Name: extract_features.py
Class Name: Labeler
Method Name: __init__