c7811e399b636c2514d6bc0b6013291541f1a3ed,librosa/feature.py,,spectral_contrast,#,201

Before Change


    peak = np.zeros((n_bands + 1, n_frames))

    for k in range(1, len(octa)):
        current_band = np.logical_and(freq >= octa[k - 1], freq <= octa[k])

        idx = np.flatnonzero(current_band)
        if k > 1:

After Change


    octa[1:] = 200 * (2.0**np.arange(0, n_bands + 1))

    valley = np.zeros((n_bands + 1, S.shape[1]))
    peak = np.zeros_like(valley)

    for k, (f_low, f_high) in enumerate(zip(octa[:-1], octa[1:])):
        current_band = np.logical_and(freq >= f_low, freq <= f_high)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: c7811e399b636c2514d6bc0b6013291541f1a3ed
Time: 2014-12-31
Author: brian.mcfee@nyu.edu
File Name: librosa/feature.py
Class Name:
Method Name: spectral_contrast


Project Name: librosa/librosa
Commit Name: c8280cd73ec4782188ab1d8d4d7f4ce349a07f6a
Time: 2016-11-02
Author: brian.mcfee@nyu.edu
File Name: tests/test_effects.py
Class Name:
Method Name: test_trim


Project Name: NVIDIA/waveglow
Commit Name: 883651d22a07831d16834eafbda67d6b09378dc2
Time: 2019-08-27
Author: ctalnikar@nvidia.com
File Name: glow.py
Class Name: WN
Method Name: forward


Project Name: rtavenar/tslearn
Commit Name: d8d01d2f14c75dd3d3fa854c52f5cdf411049987
Time: 2020-12-15
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/shapelets/shapelets.py
Class Name: GlobalMinPooling1D
Method Name: call