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


    f: band center frequencies

    
    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)


Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

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: etal/cnvkit
Commit Name: dd1e897582174ed300ae6303ab93929fd18c51a1
Time: 2017-01-17
Author: eric.talevich@gmail.com
File Name: cnvlib/genome/intersect.py
Class Name:
Method Name: iter_ranges


Project Name: tensorflow/magenta
Commit Name: bb9b23bb210fbe363687d992e769bb1b23c21107
Time: 2017-06-15
Author: jesse.engel@gmail.com
File Name: magenta/models/nsynth/wavenet/fastgen.py
Class Name:
Method Name: sample_categorical