bb1de9e2b0efaf35b4b537ca9dfce9e96f30cf96,mir_eval/hierarchy.py,,_gauc,#Any#Any#Any#Any#,146

Before Change



        // Add up agreement for frames
        if normalizer > 0:
            score += np.sum(np.logical_and(ref_rank, est_rank)) / normalizer
            num_frames += 1

    // Normalize by the number of frames counted.
    // If no frames are counted, take the convention 0/0 -> 0

After Change


        // (this also holds when the slice goes off the end of the array.)
        idx = min(query, window)

        ref_score = np.concatenate((ref_score[:idx], ref_score[idx+1:]))
        est_score = np.concatenate((est_score[:idx], est_score[idx+1:]))

        inversions, normalizer = _compare_frame_rankings(ref_score, est_score,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: craffel/mir_eval
Commit Name: bb1de9e2b0efaf35b4b537ca9dfce9e96f30cf96
Time: 2017-08-18
Author: bmcfee@users.noreply.github.com
File Name: mir_eval/hierarchy.py
Class Name:
Method Name: _gauc


Project Name: daavoo/pyntcloud
Commit Name: a15c8e19f9270ba69758528b0df2cfc362b601af
Time: 2017-06-21
Author: daviddelaiglesiacastro@gmail.com
File Name: pyntcloud/geometry/coord_systems.py
Class Name:
Method Name: cylindrical_to_spherical


Project Name: matplotlib/matplotlib
Commit Name: 128ee1764695201aed1ce43cbfe2a856489c705e
Time: 2019-02-17
Author: anntzer.lee@gmail.com
File Name: examples/images_contours_and_fields/specgram_demo.py
Class Name:
Method Name: