ba72837e5824eb67b8d345dd5555853221f4512a,grakel/tools.py,,matrix_to_dict,#Any#Any#Any#Any#Any#,147

Before Change


        for j in range(0,s):
            if(allow_diagonal or i!=j):
                if(opr(matrix[i,j],const_value)):
                    if i not in dictionary:
                        dictionary[i] = list()
                    dictionary[i].append(j)
    return dictionary

def extract_matrix(mat, a, b):

After Change


    
    dictionary = dict()
    for i in range(0,s):
        line = matrix[i,:]
        if not allow_diagonal:
            np.delete(line,i)
        w = np.where(opr(line,const_value))
        dictionary[i] = list(w[0])
    return dictionary

def extract_matrix(mat, a, b):
     Subtract the matrix corresponding to two 
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: ysig/GraKeL
Commit Name: ba72837e5824eb67b8d345dd5555853221f4512a
Time: 2017-11-24
Author: y.siglidis@gmail.com
File Name: grakel/tools.py
Class Name:
Method Name: matrix_to_dict


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: 9def69a805132ff7549744b5b30a2fa7531fa405
Time: 2019-06-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/preprocess/_tmpreproc.py
Class Name: TMPreproc
Method Name: load_tokens_dataframe


Project Name: comic/grand-challenge.org
Commit Name: 28935ea4d7796ada4ad387e79c4357b21c5b9ad6
Time: 2020-03-26
Author: 57257130+MikeOverkamp-diag@users.noreply.github.com
File Name: app/grandchallenge/reader_studies/models.py
Class Name: ReaderStudy
Method Name: add_ground_truth