564f2b22eff73e342796fcad6e6e6c5bd9a7fc86,tests/utils.py,,make_regression_data,#Any#Any#Any#Any#Any#Any#Any#Any#,316

Before Change


    ids = ["EXAMPLE_{}".format(n) for n in range(1, num_examples + 1)]

    // create a list of dictionaries as the features
    index_width_for_feature_name = math.floor(math.log10(num_features)) + 1
    feature_names = []
    for n in range(start_feature_num, start_feature_num + num_features):
        index_str = str(n).zfill(index_width_for_feature_name)

After Change


    // that would be output by `model_params()` instead of the
    // original names since that"s what we would get from SKLL
    if use_feature_hashing:
        index_width_for_feature_name = int(floor(log10(feature_bins))) + 1
        hashed_feature_names = []
        for i in range(feature_bins):
            index_str = str(i + 1).zfill(index_width_for_feature_name)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: EducationalTestingService/skll
Commit Name: 564f2b22eff73e342796fcad6e6e6c5bd9a7fc86
Time: 2019-02-21
Author: nmadnani@ets.org
File Name: tests/utils.py
Class Name:
Method Name: make_regression_data


Project Name: CellProfiler/CellProfiler
Commit Name: d3e2448c69d6ca09667d8bcaa98d9a0355ab4b27
Time: 2012-07-09
Author: leek@broadinstitute.org
File Name: cellprofiler/modules/saveimages.py
Class Name: SaveImages
Method Name: get_filename


Project Name: scipy/scipy
Commit Name: 2877abcbc7ac4be1a1d38551e2a52b143cfd63c6
Time: 2019-10-30
Author: egouden@users.noreply.github.com
File Name: scipy/stats/_binned_statistic.py
Class Name:
Method Name: _bin_numbers