dc84905eb06dec74c20413f398fc8cc380ae128a,librosa/util/utils.py,,medfilt,#Any#Any#,899

Before Change


        pad_k = int(k / 2)
        pad_shape.append((pad_k, pad_k))
        if pad_k > 0:
            pad_slice.append(slice(pad_k, -pad_k))
        else:
            pad_slice.append(Ellipsis)

After Change


        pad_k = int(kernel_size[k] / 2)
        pad_shape.append((pad_k, pad_k))
        if pad_k > 0:
            pad_slice[k] = slice(pad_k, -pad_k)
            has_padding = True

    // Apply the filter on the padded data
    if has_padding:
        data_p = np.pad(data, pad_shape, **kwargs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: librosa/librosa
Commit Name: dc84905eb06dec74c20413f398fc8cc380ae128a
Time: 2015-01-22
Author: brian.mcfee@nyu.edu
File Name: librosa/util/utils.py
Class Name:
Method Name: medfilt


Project Name: Bihaqo/t3f
Commit Name: 4a0cde88842e7a213e850d34aec7a65afb461741
Time: 2017-05-02
Author: novikov@bayesgroup.ru
File Name: t3f/riemannian.py
Class Name:
Method Name: add_n_projected


Project Name: neuroailab/tnn
Commit Name: bc3ecfd2f455f0b98b334c94285c1810899a3da7
Time: 2017-07-05
Author: anayebi@stanford.edu
File Name: tnn/cell.py
Class Name:
Method Name: crop_func