97a346493ac31f120102d4cb3cf8586333d1a1ec,beamfpy/beamfpy.py,,synthetic,#Any#Any#Any#Any#,1031
Before Change
if num == 0:
return data
find1 = searchsorted(freqs, f*2.**(-0.5/num))
find2 = searchsorted(freqs, f*2.**(+0.5/num))
return array(map(lambda i, j : data[i:j].sum(), find1, find2))
After Change
if num == 0:
res = [ data[searchsorted(freqs, i)] for i in f]
else:
res = [ data[searchsorted(freqs, i*2.**(-0.5/num)):\
searchsorted(freqs, i*2.**(+0.5/num))].sum(0) for i in f]
return array(res)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: acoular/acoular
Commit Name: 97a346493ac31f120102d4cb3cf8586333d1a1ec
Time: 2010-09-16
Author: sarradj@tu-cottbus.de
File Name: beamfpy/beamfpy.py
Class Name:
Method Name: synthetic
Project Name: numerai/submission-criteria
Commit Name: 6d9eb2246be4100a43dc0f19a2aed27680aaacb1
Time: 2017-09-13
Author: phil@pcmonk.me
File Name: originality.py
Class Name:
Method Name: originality_score
Project Name: acoular/acoular
Commit Name: 55727f91f0e9205355b7d696f75a637e9fced986
Time: 2020-10-27
Author: mikolaj.czuchaj@tu-berlin.de
File Name: acoular/spectra.py
Class Name: PowerSpectra
Method Name: _get_ind_high