33851dea0f6c75ca1e685037393ea7160506b53a,auto_ml/predictor.py,Predictor,_prepare_for_training,#Predictor#Any#,207

Before Change


                print("These were the bad values")
                print(bad_vals)
                indices_to_delete = set(indices_to_delete)
                X = [row for idx, row in enumerate(X) if idx not in indices_to_delete]

        return X, y

After Change


                print("These were the bad values")
                print(bad_vals)
                // indices_to_delete = set(indices_to_delete)
                X_df = X_df.drop(X_df.index(indices_to_delete))
                // X_df = [row for idx, row in enumerate(X_df) if idx not in indices_to_delete]

        return X_df, y
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: ClimbsRocks/auto_ml
Commit Name: 33851dea0f6c75ca1e685037393ea7160506b53a
Time: 2016-10-08
Author: climbsbytes@gmail.com
File Name: auto_ml/predictor.py
Class Name: Predictor
Method Name: _prepare_for_training


Project Name: biocore/scikit-bio
Commit Name: 8cb97248c6fe5b84312a3e4f74c20bfb19cc8d0e
Time: 2017-04-27
Author: sdbrown@gmail.com
File Name: skbio/tree/_nj.py
Class Name:
Method Name: _compute_collapsed_dm


Project Name: scipy/scipy
Commit Name: 927e88aec079e2562b3366ba7ce170f01d2c9c67
Time: 2012-12-02
Author: pav@iki.fi
File Name: scipy/linalg/blas.py
Class Name:
Method Name: find_best_blas_type