606165054f1130f0df50a419e89939e6a3afdb01,skbio/io/format/blast6.py,,_blast6_to_data_frame,#Any#Any#Any#,260

Before Change


                         " the number of columns.")

    try:
        for i in range(len(names)):
            df[i] = df[i].astype(_possible_columns[names[i]])
            df.replace("nan", np.nan, inplace=True)
        df.columns = names
    except ValueError as e:
        raise ValueError("Values have been assigned to incorrect columns. "
                         "Original Pandas error message: "

After Change


    if len(df.columns) != len(columns):
        raise BLAST6FormatError("The specified number of columns: %d does not"
                                " match the number of columns in the file: "
                                "%d." % (len(columns), len(df.columns)))
    df.columns = columns
    for column in df:
        if column not in _possible_columns:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: biocore/scikit-bio
Commit Name: 606165054f1130f0df50a419e89939e6a3afdb01
Time: 2015-10-02
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame


Project Name: cesium-ml/cesium
Commit Name: 1cf1a4c00ba6404bb7387c722187a22357b2f193
Time: 2015-02-13
Author: a.crellinquick@gmail.com
File Name: mltsp/custom_feature_tools.py
Class Name:
Method Name: parse_tsdata_from_file


Project Name: biocore/scikit-bio
Commit Name: 606165054f1130f0df50a419e89939e6a3afdb01
Time: 2015-10-02
Author: kestrel.gorlick@gmail.com
File Name: skbio/io/format/blast6.py
Class Name:
Method Name: _blast6_to_data_frame


Project Name: osmr/imgclsmob
Commit Name: ea3df12ee5874a63875338289ce15ed94b103afd
Time: 2020-01-17
Author: osemery@gmail.com
File Name: pytorch/pytorchcv/models/hardnet.py
Class Name: HarDStage
Method Name: forward


Project Name: keras-team/keras
Commit Name: ee179f7da155c3cb8129b954db828906886ad4e4
Time: 2015-06-08
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: AutoEncoder
Method Name: set_weights