5a35ee5a98a7021ef07d2481719335d84de42a5e,librosa/core/audio.py,,stream,#,213

Before Change



    """

    if not (isinstance(block_length, int) and block_length > 0):
        raise ParameterError("block_length={} must be a positive integer")
    if not (isinstance(frame_length, int) and frame_length > 0):
        raise ParameterError("frame_length={} must be a positive integer")

After Change



    if not (np.issubdtype(type(block_length), np.integer) and block_length > 0):
        raise ParameterError("block_length={} must be a positive integer")
    if not (np.issubdtype(type(frame_length), np.integer) and frame_length > 0):
        raise ParameterError("frame_length={} must be a positive integer")
    if not (np.issubdtype(type(hop_length), np.integer) and hop_length > 0):
        raise ParameterError("hop_length={} must be a positive integer")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: librosa/librosa
Commit Name: 5a35ee5a98a7021ef07d2481719335d84de42a5e
Time: 2019-06-21
Author: brian.mcfee@nyu.edu
File Name: librosa/core/audio.py
Class Name:
Method Name: stream


Project Name: librosa/librosa
Commit Name: 3ba6fff239cb4bc25d0bf22001ebc6cd253ec77b
Time: 2019-05-05
Author: brian.mcfee@nyu.edu
File Name: librosa/core/audio.py
Class Name:
Method Name: stream


Project Name: pantsbuild/pants
Commit Name: 725fdaf504237190f6787dda3d72c39010a4c574
Time: 2020-07-26
Author: john.sirois@gmail.com
File Name: src/python/pants/engine/collection.py
Class Name: Collection
Method Name: __eq__