9d27c3e2af2e5d4696d9825bc5fcf3e9a6813ccf,skbio/sequence/_sequence.py,Sequence,__getitem__,#Sequence#Any#,187
Before Change
seq = self.sequence[i]
qual = self.quality[i] if self.has_quality() else None
except TypeError:
seq = [self.sequence[idx] for idx in i]
if self.has_quality():
qual = np.hstack([self.quality[idx] for idx in i])
else:
After Change
qual = None
if not isinstance(indexable, np.ndarray):
if not (isinstance(indexable, string_types) or
hasattr(indexable, "__iter__")):
indexable = (indexable,)
indexable = list(indexable)
seq = np.concatenate(list(self._slices_from_iter(self._bytes, indexable)))
if self.has_quality():
qual = np.concatenate(list(self._slices_from_iter(self.quality, indexable)))
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 7
Instances Project Name: biocore/scikit-bio
Commit Name: 9d27c3e2af2e5d4696d9825bc5fcf3e9a6813ccf
Time: 2015-03-24
Author: jai.rideout@gmail.com
File Name: skbio/sequence/_sequence.py
Class Name: Sequence
Method Name: __getitem__
Project Name: Rostlab/nalaf
Commit Name: be6ae961ac21177caeea0c43e5983a7c4ee80d60
Time: 2015-12-06
Author: aleksandar.bojchevski@gmail.com
File Name: nalaf/structures/data.py
Class Name: Dataset
Method Name: delete_subclass_annotations
Project Name: onnx/onnxmltools
Commit Name: c40305a954f3335c22cb98a42c8daa2ca9ca4a0a
Time: 2018-12-13
Author: wenbingl@outlook.com
File Name: onnxmltools/convert/keras/operator_converters/Conv.py
Class Name:
Method Name: convert_keras_conv_core
Project Name: brian-team/brian2
Commit Name: b19d0834272dbe109dbc38045f4fe02ed92c8b85
Time: 2015-07-22
Author: marcel.stimberg@ens.fr
File Name: brian2/groups/group.py
Class Name: Group
Method Name: get_states