f867930bbfe2a0d8533161e98c69d237757f12d9,skbio/core/distance.py,DissimilarityMatrix,__getitem__,#DissimilarityMatrix#Any#,559

Before Change


                raise MissingIDError(index)
        elif self._is_id_pair(index):
            for id_ in index:
                if id_ not in self._id_index:
                    raise MissingIDError(id_)
            return self.data[self._id_index[index[0]],
                             self._id_index[index[1]]]
        else:
            return self.data.__getitem__(index)

After Change


        if isinstance(index, string_types):
            return self.data[self.index(index)]
        elif self._is_id_pair(index):
            return self.data[self.index(index[0]), self.index(index[1])]
        else:
            return self.data.__getitem__(index)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: biocore/scikit-bio
Commit Name: f867930bbfe2a0d8533161e98c69d237757f12d9
Time: 2014-06-11
Author: jai.rideout@gmail.com
File Name: skbio/core/distance.py
Class Name: DissimilarityMatrix
Method Name: __getitem__


Project Name: ilastik/ilastik
Commit Name: 16e8308cec264e3c1427febb86aab1bb719db077
Time: 2017-03-28
Author: carstenhaubold@googlemail.com
File Name: ilastik/workflows/tracking/conservation/pluginExportOptionsDlg.py
Class Name: PluginExportOptionsDlg
Method Name: __init__


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 9def69a805132ff7549744b5b30a2fa7531fa405
Time: 2019-06-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: load_tokens_dataframe


Project Name: biocore/scikit-bio
Commit Name: f867930bbfe2a0d8533161e98c69d237757f12d9
Time: 2014-06-11
Author: jai.rideout@gmail.com
File Name: skbio/core/distance.py
Class Name: DissimilarityMatrix
Method Name: __getitem__