21a6d7c02d8919ac29b5aa0af8992ba13f0a3ddb,prody/chromatin/cluster.py,,calcGNMDomains,#Any#Any#,190
Before Change
labels.fill(np.nan)
labels[mask] = labels_
currlbl = labels_[np.argmax(~np.isnan(labels_))]
for i, l in enumerate(labels):
if np.isnan(l):
labels[i] = currlbl
elif currlbl != l:
currlbl = l
After Change
if hasattr(modes, "_model"):
model = modes._model
if isinstance(model, MaskedGNM):
labels = model._extend(labels_, np.nan)
currlbl = labels_[0]
for i, l in enumerate(labels):
if np.isnan(l):
labels[i] = currlbl
elif currlbl != l:
currlbl = l
return labels
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
Instances
Project Name: prody/ProDy
Commit Name: 21a6d7c02d8919ac29b5aa0af8992ba13f0a3ddb
Time: 2019-07-08
Author: shz66@pitt.edu
File Name: prody/chromatin/cluster.py
Class Name:
Method Name: calcGNMDomains
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: e09f411ffe0feee5034f73581054cb2c52e24e1d
Time: 2019-07-18
Author: beat.buesser@ie.ibm.com
File Name: art/classifiers/scikitklearn.py
Class Name: ScikitlearnLogisticRegression
Method Name: class_gradient
Project Name: theislab/scanpy
Commit Name: b19b64c82c7f645f9abcd170994b52862f7091b8
Time: 2017-04-24
Author: f.alex.wolf@gmx.de
File Name: scanpy/tools/dpt.py
Class Name: DPT
Method Name: select_segment