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: 5
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: snipsco/snips-nlu
Commit Name: 88c09507f6e02638202b6f419066180fd4496a8b
Time: 2019-01-08
Author: clement.doumouro@gmail.com
File Name: snips_nlu/intent_classifier/log_reg_classifier.py
Class Name: LogRegIntentClassifier
Method Name: log_best_features
Project Name: cornellius-gp/gpytorch
Commit Name: e5a3f2208cc837f75ef312b4bd8b87ea59827bdc
Time: 2018-02-27
Author: gpleiss@gmail.com
File Name: gpytorch/models/abstract_variational_gp.py
Class Name: AbstractVariationalGP
Method Name: marginal_log_likelihood
Project Name: snipsco/snips-nlu
Commit Name: 88c09507f6e02638202b6f419066180fd4496a8b
Time: 2019-01-08
Author: clement.doumouro@gmail.com
File Name: snips_nlu/intent_classifier/log_reg_classifier.py
Class Name: LogRegIntentClassifier
Method Name: log_activation_weights