1fe6efe8713deaa653fc0ec354130fd96be0b2ac,skll/data.py,,write_feature_file,#Any#Any#Any#Any#Any#Any#Any#Any#Any#,980

Before Change


    // Invalid file suffix, raise error
    else:
        raise ValueError("Output file must be in either .tsv, .megam, or " +
                         ".jsonlines format. You specified: {}".format(path))

After Change


        _write_delimited_file(path, ids, classes, features, label_col,
                              "excel")
    // Create .jsonlines file if asked
    elif lc_path.endswith(".jsonlines") or lc_path.endswith(".ndj"):
        _write_jsonlines_file(path, ids, classes, features)
    // Create .megam file if asked
    elif lc_path.endswith(".megam"):
        _write_megam_file(path, ids, classes, features)
    // Create ARFF file if asked
    elif lc_path.endswith(".arff"):
        _write_arff_file(path, ids, classes, features, label_col,
                         arff_regression=arff_regression,
                         relation=arff_relation)
    // Invalid file suffix, raise error
    else:
        raise ValueError(("Output file must be in either .arff, .csv, " +
                          ".jsonlines, .megam, .ndj, or .tsv format. You " +
                          "specified: {}").format(path))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: EducationalTestingService/skll
Commit Name: 1fe6efe8713deaa653fc0ec354130fd96be0b2ac
Time: 2013-11-04
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: write_feature_file


Project Name: EducationalTestingService/skll
Commit Name: 1fe6efe8713deaa653fc0ec354130fd96be0b2ac
Time: 2013-11-04
Author: dblanchard@ets.org
File Name: skll/data.py
Class Name:
Method Name: load_examples


Project Name: vatlab/SoS
Commit Name: 78a9ee2374b191ef273661cd1722fca893f495d2
Time: 2016-12-08
Author: ben.bog@gmail.com
File Name: sos/__main__.py
Class Name:
Method Name: list_converter