d4d9c86bb462ba24bdcc013171e33df7bba552f2,librosa/util.py,,frame,#,11

Before Change


        ``y_frames[i, j] == y[j * hop_length + i]``
    """

    assert(hop_length > 0)

    // Compute the number of frames that will fit. The end may get truncated.
    n_frames = 1 + int( (len(y) - frame_length) / hop_length)

After Change



    """

    if hop_length < 1:
        raise ValueError("Invalid hop_length: %d" % hop_length)

    if not y.flags["C_CONTIGUOUS"]:
        raise ValueError("Input buffer must be contiguous.")

    // Compute the number of frames that will fit. The end may get truncated.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: librosa/librosa
Commit Name: d4d9c86bb462ba24bdcc013171e33df7bba552f2
Time: 2014-05-22
Author: brm2132@columbia.edu
File Name: librosa/util.py
Class Name:
Method Name: frame


Project Name: facebookresearch/ParlAI
Commit Name: f35bee9ce4df2bf06304b5a2114701fc27e3f24f
Time: 2021-01-12
Author: EricMichaelSmith@users.noreply.github.com
File Name: parlai/crowdsourcing/utils/tests.py
Class Name: AbstractParlAIChatTest
Method Name: _check_output_key


Project Name: richzhang/colorization-pytorch
Commit Name: e5b2fd6d36b4297c4314478e88820cd10943d192
Time: 2017-04-27
Author: taesung_park@berkeley.edu
File Name: models/models.py
Class Name:
Method Name: create_model


Project Name: GPflow/GPflow
Commit Name: 0d97bc0bb3db40017f1278d6c1f292ea0f789ab0
Time: 2020-03-27
Author: art.art.v@gmail.com
File Name: gpflow/optimizers/mcmc.py
Class Name: SamplingHelper
Method Name: __init__


Project Name: yzhao062/pyod
Commit Name: 19985b2eadb39a85e1787298c5e8e9d670bd55f3
Time: 2019-07-17
Author: zhaoy@cmu.edu
File Name: pyod/models/combination.py
Class Name:
Method Name: average