a36d3108a506fb7c8a16f97af76f11432071ac9b,lmd2lpd.py,,load_npz,#Any#,76

Before Change


        csc_matrices_name = sorted([filename for filename in loaded.files if "csc_matrix" in filename])
        if csc_matrices_name:
            for idx in range(len(csc_matrices_name)/4):
                csc_matrices.append(scipy.sparse.csc_matrix((loaded[csc_matrices_name[idx]],
                                                             loaded[csc_matrices_name[idx+1]],
                                                             loaded[csc_matrices_name[idx+2]]),
                                                            shape=loaded[csc_matrices_name[idx+3]]))
        return arrays, csc_matrices

def get_piano_roll_statistics(piano_roll, onset_array, midi_data):

After Change


        if csc_matrices_name:
            for idx in range(len(csc_matrices_name)/4):
                csc_matrix_name = csc_matrices_name[idx][:-9] // remove tailing "csc_data"
                csc_matrices[csc_matrix_name] = scipy.sparse.csc_matrix((loaded[csc_matrices_name[4*idx]],
                                                                         loaded[csc_matrices_name[4*idx+1]],
                                                                         loaded[csc_matrices_name[4*idx+2]]),
                                                                        shape=loaded[csc_matrices_name[4*idx+3]])
        return arrays, csc_matrices

def get_piano_roll_statistics(piano_roll, onset_array, midi_data):
    Get the statistics of a piano-roll.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: salu133445/musegan
Commit Name: a36d3108a506fb7c8a16f97af76f11432071ac9b
Time: 2017-10-18
Author: b02901080@ntu.edu.tw
File Name: lmd2lpd.py
Class Name:
Method Name: load_npz


Project Name: scipy/scipy
Commit Name: a558af6315114ad0731ba0d86c38415cee752d66
Time: 2007-12-31
Author: wnbell@localhost
File Name: scipy/sparse/csr.py
Class Name: csr_matrix
Method Name: tocsc


Project Name: epfl-lts2/pygsp
Commit Name: d0e91ba506ff4994fc3c60e141959b9e4446943e
Time: 2017-08-27
Author: michael.defferrard@epfl.ch
File Name: pygsp/graphs/path.py
Class Name: Path
Method Name: __init__


Project Name: epfl-lts2/pygsp
Commit Name: 7a921d27753140c6dc5a66e9cf93fee62507b864
Time: 2015-02-05
Author: basile.chatillon@epfl.ch
File Name: pygsp/graphs.py
Class Name: RandomRing
Method Name: __init__