af89ac5acf45685e5a48c8d61328552dc92f8b4f,cesium/data_management.py,,parse_headerfile,#Any#Any#,59

Before Change


                                  "series file in the uploaded archive, and "
                                  "that the file names match the first column "
                                  "of the header.")
    if "target" in header:
        targets = header["target"]
    elif "class" in header:
        targets = header["class"]
    else:
        targets = pd.Series([None], index=header.index)
    feature_data = header.drop(["target", "class"], axis=1, errors="ignore")
    return targets, feature_data

After Change


                                                "class_label"]}, inplace=True)
    labels = (header.label if "label" in header
              else pd.Series([None], index=header.index))
    feature_data = header.drop(["label", "class"], axis=1, errors="ignore")
    return labels, feature_data


def parse_and_store_ts_data(data_path, output_dir, header_path=None,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: cesium-ml/cesium
Commit Name: af89ac5acf45685e5a48c8d61328552dc92f8b4f
Time: 2017-03-29
Author: brettnaul@gmail.com
File Name: cesium/data_management.py
Class Name:
Method Name: parse_headerfile


Project Name: etal/cnvkit
Commit Name: 98f615864e32057dd5b0bf80506e54857ba2a869
Time: 2016-09-12
Author: eric.talevich@gmail.com
File Name: cnvlib/tabio/seg.py
Class Name:
Method Name: parse_seg


Project Name: stellargraph/stellargraph
Commit Name: a474371b75dc6caf5e3af5abc5bfcfa05a478d3c
Time: 2019-03-11
Author: pantelis.elinas@data61.csiro.au
File Name: demos/link-prediction-graphsage/cora-links-example.py
Class Name:
Method Name: load_data