f5122cdab53605b7b800c96d6700b791b8c9add8,librosa/segment.py,,lag_to_recurrence,#Any#Any#,287

Before Change



    sub_slice = [slice(None)] * lag.ndim
    sub_slice[1 - axis] = slice(t)
    return np.ascontiguousarray(lag[sub_slice].T).T


def timelag_filter(function, pad=True, index=0):
    """Filtering in the time-lag domain.

After Change


    idx_slice = [slice(None)] * lag.ndim
    for i in range(1, t):
        idx_slice[axis] = i
        rec[tuple(idx_slice)] = util.roll_sparse(lag[tuple(idx_slice)], i, axis=roll_ax)

    sub_slice = [slice(None)] * rec.ndim
    sub_slice[1 - axis] = slice(t)
    rec = rec[tuple(sub_slice)]

    if sparse:
        return rec.asformat(lag.format)
    else:
        return np.ascontiguousarray(rec.T).T


def timelag_filter(function, pad=True, index=0):
    """Filtering in the time-lag domain.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: f5122cdab53605b7b800c96d6700b791b8c9add8
Time: 2016-04-26
Author: brian.mcfee@nyu.edu
File Name: librosa/segment.py
Class Name:
Method Name: lag_to_recurrence


Project Name: albu/albumentations
Commit Name: 6ae2db751362a4792caa91084e394f8c80f3c9f6
Time: 2019-10-27
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: ShiftRGB
Method Name: keras


Project Name: albu/albumentations
Commit Name: 6ae2db751362a4792caa91084e394f8c80f3c9f6
Time: 2019-10-27
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: RandomCrop64
Method Name: albumentations


Project Name: albu/albumentations
Commit Name: 6ae2db751362a4792caa91084e394f8c80f3c9f6
Time: 2019-10-27
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: Rotate
Method Name: keras


Project Name: pavlin-policar/openTSNE
Commit Name: 2a9d9edb0d4553e76111bc2d54e002d1e14223a5
Time: 2019-05-22
Author: pavlin.g.p@gmail.com
File Name: openTSNE/initialization.py
Class Name:
Method Name: median


Project Name: scikit-image/scikit-image
Commit Name: 4c1cbad0609a3b68bc65da06438341453f4fb21c
Time: 2019-03-05
Author: juan.nunez-iglesias@monash.edu
File Name: skimage/restoration/_denoise.py
Class Name:
Method Name: denoise_tv_bregman


Project Name: albu/albumentations
Commit Name: 6ae2db751362a4792caa91084e394f8c80f3c9f6
Time: 2019-10-27
Author: creafz@gmail.com
File Name: benchmark/benchmark.py
Class Name: ShiftScaleRotate
Method Name: keras