c642d7d1d43a27ee9972d8ade8d4e77e28b5328f,librosa/util.py,,match_events,#,547

Before Change


    .. seealso:: :func:`librosa.util.match_intervals`
    """

    return np.argmin(np.abs(np.subtract.outer(events_from,
                                              events_to)),
                     axis=-1)


def find_files(directory, ext=None, recurse=True, case_sensitive=False,
               limit=None, offset=0):

After Change


    """
    output = np.empty_like(events_from, dtype=np.int)

    n_rows = int(librosa.core._MAX_MEM_BLOCK / (np.prod(output.shape[1:])
                                                * len(events_to)
                                                * events_from.itemsize))

    // Make sure we can at least make some progress
    n_rows = max(1, n_rows)

    // Iterate over blocks of the data
    for bl_s in range(0, len(events_from), n_rows):
        bl_t = min(bl_s + n_rows, len(events_from))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: librosa/librosa
Commit Name: c642d7d1d43a27ee9972d8ade8d4e77e28b5328f
Time: 2015-01-05
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: match_events


Project Name: luispedro/mahotas
Commit Name: 65a620443c1f2db4f80362f748035084a7eaaaf8
Time: 2013-07-15
Author: luis@luispedro.org
File Name: mahotas/bbox.py
Class Name:
Method Name: bbox


Project Name: librosa/librosa
Commit Name: e843dc7c9b240266f411f30d90d05b9e7c81215d
Time: 2015-01-06
Author: brian.mcfee@nyu.edu
File Name: librosa/util.py
Class Name:
Method Name: match_intervals