486dbc58ed00b645f2d561ede5a06e89b8d1ca78,prody/atomic/chain.py,Chain,__getitem__,#Chain#Any#,71

Before Change


        if isinstance(key, tuple):
            return self.getResidue(*key)

        elif isinstance(key, slice):
            resnums = set(arange(*key.indices(self._getResnums().max()+1)))
            _list = self._list
            return [_list[i] for (rn, ic), i in self._dict.items()

After Change


        if isinstance(key, tuple):
            return self.getResidue(*key)
        else:
            return AtomSubset.__getitem__(self, key)

    def getSegment(self):
        Returns segment of the chain.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: prody/ProDy
Commit Name: 486dbc58ed00b645f2d561ede5a06e89b8d1ca78
Time: 2018-03-15
Author: shz66@pitt.edu
File Name: prody/atomic/chain.py
Class Name: Chain
Method Name: __getitem__


Project Name: scipy/scipy
Commit Name: f43c64c4fd913751764d324a1b85c895a051bced
Time: 2018-11-08
Author: perimosocordiae@gmail.com
File Name: scipy/sparse/csc.py
Class Name: csc_matrix
Method Name: __getitem__


Project Name: pyprob/pyprob
Commit Name: 62b9b6ffdcba80685b7374b5d0e46d2c05873be7
Time: 2018-12-04
Author: atilimgunes.baydin@gmail.com
File Name: pyprob/nn/inference_network.py
Class Name: InferenceNetwork
Method Name: _pre_generate_layers