17709aa68cc0ff09f67a90104a0dfd7d0e43174f,nussl/spectral_utils.py,,_remove_stft_padding,#,420

Before Change



    
    first = zero_pad1_len // hop_length
    last = stft.shape[1] - (zero_pad1_len + zero_pad2_len) // hop_length
    stft = stft[:, first: last]
    return stft

After Change


    Returns:

    
    overlap = window_length - hop_length
    first = int(np.ceil(overlap / float(hop_length)))
    num_col = int(np.ceil((original_signal_length - window_length) / float(hop_length)))
    stft_cut = stft[:, first:first+num_col]
    return stft_cut
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 7

Instances


Project Name: interactiveaudiolab/nussl
Commit Name: 17709aa68cc0ff09f67a90104a0dfd7d0e43174f
Time: 2017-02-02
Author: prem@u.northwestern.edu
File Name: nussl/spectral_utils.py
Class Name:
Method Name: _remove_stft_padding


Project Name: jindongwang/transferlearning
Commit Name: f0fe1d57b54b7670ad4586e19d4383db561e84e7
Time: 2019-12-16
Author: jindongwang@outlook.com
File Name: code/deep/DDC_DeepCoral/mmd.py
Class Name: MMD_loss
Method Name: linear_mmd2


Project Name: jindongwang/transferlearning
Commit Name: f0fe1d57b54b7670ad4586e19d4383db561e84e7
Time: 2019-12-16
Author: jindongwang@outlook.com
File Name: code/distance/mmd.py
Class Name:
Method Name: linear_mmd2


Project Name: matthewwithanm/django-imagekit
Commit Name: a164427074b09a19377ac8f94f71c8c5aa269e06
Time: 2012-02-17
Author: matthew@exanimo.com
File Name: imagekit/processors/resize.py
Class Name: ResizeCanvas
Method Name: process