a51dc5c2cb7fb273dec323750990b9f2beb392a0,brian2/synapses/permutation_analysis.py,,check_for_order_independence,#Any#Any#Any#Any#,17

Before Change


    """
    """
    non_synaptic_variables = presynaptic_variables.union(postsynaptic_variables)
    variables = synaptic_variables.union(non_synaptic_variables)
    permutation_independent = non_synaptic_variables.copy()
    changed_permutation_independent = True
    while changed_permutation_independent:
        changed_permutation_independent = False

After Change


                elif statement.op == "=":
                    sameidx = [v for v in variables
                               if indices[v] == indices[statement.var]]
                    otheridx = [v for v in variables
                                if indices[v] not in (indices[statement.var],
                                                      index)]
                    if any(var in otheridx for var in vars_in_expr):
                        raise OrderDependenceError()
                    if permdep:
                        raise OrderDependenceError()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: brian-team/brian2
Commit Name: a51dc5c2cb7fb273dec323750990b9f2beb392a0
Time: 2015-03-31
Author: marcel.stimberg@inserm.fr
File Name: brian2/synapses/permutation_analysis.py
Class Name:
Method Name: check_for_order_independence


Project Name: mariogeiger/se3cnn
Commit Name: 40beebb8d5281e0195b454fdc43c5987aeb4d1ff
Time: 2019-11-11
Author: geiger.mario@gmail.com
File Name: se3cnn/point/kernel.py
Class Name: Kernel
Method Name: __init__


Project Name: hyperopt/hyperopt
Commit Name: ffaf92071f04d91b7b25c90e231ae90e29e8f9f7
Time: 2011-11-10
Author: james.bergstra@gmail.com
File Name: hyperopt/gdist.py
Class Name: gSON
Method Name: correct_elems


Project Name: wandb/client
Commit Name: 930700a3a7e8c7e4ee8dfa26bae80f1518299040
Time: 2021-03-16
Author: kdgoyette@gmail.com
File Name: wandb/plot/confusion_matrix.py
Class Name:
Method Name: confusion_matrix


Project Name: graphbrain/graphbrain
Commit Name: b6c961d9779e1a686f5fd5523109e2e6840459e1
Time: 2017-09-07
Author: telmo@telmomenezes.net
File Name: gb/metrics/hyper_similarity.py
Class Name: HyperSimilarity
Method Name: setsimilarity