4d78e7c936be168db70c65276915688a131ef193,librosa/display.py,,__axis_chroma,#Any#Any#Any#Any#,489

Before Change



    n, ticker, labeler = __get_shape_artists(data, horiz)

    positions = np.arange(0, n, max(1, float(n) / bins_per_octave))

    // Labels start at 9 here because chroma starts at A.
    values = core.midi_to_note(np.arange(9, 9+12), octave=False)

After Change


    n_octaves = np.ceil(n / float(bins_per_octave))

    positions = pos.copy()
    for i in range(1, int(n_octaves)):
        positions = np.append(positions, pos + i * bins_per_octave, axis=0)

    // Labels start at 9 here because chroma starts at A.
    values = core.midi_to_note(positions * 12 // bins_per_octave + 9, octave=False)
//     values = core.midi_to_note(np.arange(9, 9+n), octave=False)
    ticker(positions[:n], values[:n])
//     ticker(positions, [values[t] for t in positions])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: librosa/librosa
Commit Name: 4d78e7c936be168db70c65276915688a131ef193
Time: 2015-02-17
Author: brian.mcfee@nyu.edu
File Name: librosa/display.py
Class Name:
Method Name: __axis_chroma


Project Name: dickreuter/Poker
Commit Name: bf81a08cb2293be7290ecd19a1a45c0da2d2fe83
Time: 2016-09-27
Author: dickreuter@yahoo.com
File Name: decisionmaker/decisionmaker3.py
Class Name: Decision
Method Name: bully


Project Name: snorkel-team/snorkel
Commit Name: 8b16baea2be04c171893108aeae7fc2edfc08967
Time: 2017-09-20
Author: rogergoldman@gmail.com
File Name: snorkel/utils.py
Class Name:
Method Name: matrix_conflicts


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f1444e8b67588af15862d17583ebec048acdb1a8
Time: 2019-06-03
Author: beat.buesser@ie.ibm.com
File Name: tests/attacks/test_zoo.py
Class Name: TestZooAttack
Method Name: test_krclassifier