b7c2f6e9ccd65a53d8ae9aa0d3ee287ce9c93019,librosa/feature.py,,piptrack,#Any#Any#Any#Any#Any#Any#Any#,439

Before Change


    mask = freq_mask & librosa.core.localmax( S * (S > threshold * S.max(axis=0)), axis=0 )
    
    // Find the argmax coordinates
    idx = np.argwhere(mask)
                                   
    // Store pitch and magnitude
    pitches[idx[:,0], idx[:, 1]] = (idx[:, 0] + shift[idx[:, 0], idx[:, 1]]) * float(sr) / n_fft
    

After Change


    
    // Compute the column-wise local max of S after thresholding
    // Find the argmax coordinates
    idx = np.argwhere(freq_mask & librosa.core.localmax(S * (S > threshold * S.max(axis=0)), 
                                                        axis=0 ))
                                   
    // Store pitch and magnitude
    pitches[idx[:, 0], idx[:, 1]] = (idx[:, 0] + shift[idx[:, 0], idx[:, 1]]) * float(sr) / n_fft
    mags[idx[:, 0], idx[:, 1]]   = (S[idx[:, 0], idx[:, 1]] + dskew[idx[:, 0], idx[:, 1]])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: librosa/librosa
Commit Name: b7c2f6e9ccd65a53d8ae9aa0d3ee287ce9c93019
Time: 2014-02-07
Author: brm2132@columbia.edu
File Name: librosa/feature.py
Class Name:
Method Name: piptrack


Project Name: scipy/scipy
Commit Name: c06bd99c7cc5f2a7a284ea7ab315c49c4c8cf518
Time: 2018-03-24
Author: wieser.eric@gmail.com
File Name: scipy/linalg/decomp.py
Class Name:
Method Name: cdf2rdf


Project Name: kengz/SLM-Lab
Commit Name: e057512b1dd0ba6ca1b776e2e758c28e8ef937d8
Time: 2019-05-01
Author: kengzwl@gmail.com
File Name: slm_lab/agent/memory/replay.py
Class Name: Replay
Method Name: _sample_next_states