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

Before Change


        allow_diagonal: allows matrix diagonal to be added
                        at input
    
    ops = {
        ">": operator.gt,
        "<": operator.lt,
        ">=": operator.ge,
        "<=": operator.le,
        "==": operator.eq
        }
    opr = ops[op]
    if(s==-1):
        s = matrix.shape[0]
    dictionary = dict()

After Change


        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):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

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: recipy/recipy
Commit Name: 1f95dc4b8737e4cf0239cfe85f6f132e2c76371e
Time: 2015-08-05
Author: r.alegre@ucl.ac.uk
File Name: recipy/log.py
Class Name:
Method Name: log_input


Project Name: automl/auto-sklearn
Commit Name: a76e641fdf3e506e9cbeaee494bef7a33e6aa425
Time: 2020-09-02
Author: feurerm@informatik.uni-freiburg.de
File Name: examples/40_advanced/example_resampling.py
Class Name:
Method Name:


Project Name: recipy/recipy
Commit Name: 1f95dc4b8737e4cf0239cfe85f6f132e2c76371e
Time: 2015-08-05
Author: r.alegre@ucl.ac.uk
File Name: recipy/log.py
Class Name:
Method Name: log_output