705e0be293dbfd56694ce04ca0b606cce3dbfaea,mne/utils/check.py,,_check_pandas_index_arguments,#Any#Any#,246

Before Change


    if invalid_choices:
        options = [", ".join(e) for e in [invalid_choices, defaults]]
        raise ValueError(""%s" is not an valid option. Valid index "
                         "values are `None` or %s" % tuple(options))


def _check_ch_locs(chs):

After Change


        plural = ("is not a valid option",
                  "are not valid options")[int(len(invalid) > 1)]
        raise ValueError(""{}" {}. Valid index options are `None`, {}"
                         .format(", ".join(invalid), plural, ", ".join(valid)))
    return index

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: mne-tools/mne-python
Commit Name: 705e0be293dbfd56694ce04ca0b606cce3dbfaea
Time: 2020-02-10
Author: dan@mccloy.info
File Name: mne/utils/check.py
Class Name:
Method Name: _check_pandas_index_arguments


Project Name: ilastik/ilastik
Commit Name: d6abe1fb708b65cc230a2d4c40dc98e3f7c845c5
Time: 2018-04-24
Author: fynn.beuttenmueller@iwr.uni-heidelberg.de
File Name: ilastik/applets/thresholdTwoLevels/_OpGraphCut.py
Class Name: OpGraphCut
Method Name: setupOutputs


Project Name: snorkel-team/snorkel
Commit Name: 0701b9a35d12596fb212009bee7d4bab58e2c1e5
Time: 2016-09-28
Author: henry.ehrenberg@outlook.com
File Name: snorkel/loaders.py
Class Name: ExternalAnnotationsLoader
Method Name: add


Project Name: merenlab/anvio
Commit Name: 5befe65a4be3a5a728696777cd8a6a71e3b7ac19
Time: 2019-08-01
Author: quentin.clayssen@gmail.com
File Name: anvio/taxoestimation.py
Class Name: SCGsdiamond
Method Name: predict_from_SCGs_dict_multiseq


Project Name: ilastik/ilastik
Commit Name: 4d35d4ca3e0428601bf7588af4cdd8f24e883e1c
Time: 2014-02-21
Author: webmaster@burgerdev.de
File Name: ilastik/applets/thresholdTwoLevels/opThresholdTwoLevels.py
Class Name: OpAnisotropicGaussianSmoothing
Method Name: execute