953125f3ada4a4e28f9934128daacd0eb2fcd514,mltsp/celery_task_tools.py,,clean_up_data_dict,#Any#,102

Before Change


        line_no += 1
    print(line_no, "total lines in features csv.")
    print(len(data_dict["features"]))
    if len(indices_for_deletion) == 1:
        del data_dict["features"][indices_for_deletion[0]]
        del data_dict["classes"][indices_for_deletion[0]]
    print(len(data_dict["features"]))

After Change


            if len(line) == 1:
                indices_for_deletion.append(i)
        line_no += 1
    indices_for_deletion.sort(reverse=True)
    for index in indices_for_deletion:
        del data_dict["features"][index]
        del data_dict["classes"][index]
    return
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: cesium-ml/cesium
Commit Name: 953125f3ada4a4e28f9934128daacd0eb2fcd514
Time: 2015-09-15
Author: a.crellinquick@gmail.com
File Name: mltsp/celery_task_tools.py
Class Name:
Method Name: clean_up_data_dict


Project Name: mozilla/TTS
Commit Name: 4326582bb1e68480ef79a02abbf4bfacc3aadede
Time: 2019-03-06
Author: egolge@mozilla.com
File Name: datasets/TTSDataset.py
Class Name: MyDataset
Method Name: collate_fn


Project Name: has2k1/plotnine
Commit Name: d566a3e4e2e688965d17c9076f7f659e83addf5a
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/positions/collide.py
Class Name:
Method Name: pos_dodge