3b60554919507e818bf783b3dab6f944a8ef9282,scipy/signal/waveforms.py,,unit_impulse,#Any#Any#Any#,485
Before Change
shape = np.atleast_1d(shape)
if idx is None:
idx = tuple(np.zeros_like(shape))
elif idx == "mid":
idx = tuple(shape // 2)
out[idx] = 1
After Change
elif idx == "mid":
idx = tuple(shape // 2)
elif not hasattr(idx, "__iter__"):
idx = (idx,) * len(shape)
out[idx] = 1
return out
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: scipy/scipy
Commit Name: 3b60554919507e818bf783b3dab6f944a8ef9282
Time: 2016-08-07
Author: endolith@gmail.com
File Name: scipy/signal/waveforms.py
Class Name:
Method Name: unit_impulse
Project Name: analysiscenter/batchflow
Commit Name: d9d856ebedb96a7d20173273dd228225b65583b0
Time: 2017-12-08
Author: rhudor@gmail.com
File Name: dataset/batch_image.py
Class Name: ImagesBatch
Method Name: _resize_one
Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: recall_at_k