b23499886f1a43087bc892d661574ec201331903,nilearn/regions/region_extractor.py,,connected_label_regions,#Any#Any#Any#Any#,411

Before Change


        raise ValueError(""connect_diag" must be specified as True or False. "
                         "You provided {0}".format(connect_diag))

    unique_labels = set(np.unique(np.asarray(labels_data)))
    unique_labels.remove(0)

    if labels is not None:

After Change



    unique_labels = set(check_unique_labels)
    // check for background label indicated as 0
    if np.any(check_unique_labels == 0):
        unique_labels.remove(0)

    if labels is not None:
        if (not isinstance(labels, collections.Iterable) or
                isinstance(labels, _basestring)):
            labels = [labels, ]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: nilearn/nilearn
Commit Name: b23499886f1a43087bc892d661574ec201331903
Time: 2017-02-13
Author: dkamalakarreddy@gmail.com
File Name: nilearn/regions/region_extractor.py
Class Name:
Method Name: connected_label_regions


Project Name: scikit-learn-contrib/categorical-encoding
Commit Name: 374ca541aaf62aba88a144acbbc7398ca3e995ef
Time: 2018-11-26
Author: jcastaldo08@gmail.com
File Name: category_encoders/ordinal.py
Class Name: OrdinalEncoder
Method Name: ordinal_encoding


Project Name: datascienceinc/Skater
Commit Name: 5fe98231a26e08d81f9684a681af43bc2fb2b847
Time: 2017-03-16
Author: aikramer2@gmail.com
File Name: pyinterpret/model/model.py
Class Name: Model
Method Name: check_output_signature