1bb555accf80ed69c034b3cabfb472060c1aad6c,pynets/core/thresholding.py,,disparity_filter,#Any#Any#,397

Before Change


                    alpha_ij_out = 1 - (k_out - 1) * integrate.quad(lambda x: (1 - x) ** (k_out - 2), 0, p_ij_out)[0]
                    N.add_edge(u, v, weight=w, alpha_out=float("%.4f" % alpha_ij_out))

            elif k_out == 1 and G.in_degree(G.successors(u)[0]) == 1:
                // we need to keep the connection as it is the only way to maintain the connectivity of the network
                v = G.successors(u)[0]
                w = G[u][v][weight]

After Change


                    alpha_ij_out = 1 - (k_out - 1) * integrate.quad(lambda x: (1 - x) ** (k_out - 2), 0, p_ij_out)[0]
                    N.add_edge(u, v, weight=w, alpha_out=float("%.4f" % alpha_ij_out))

            elif k_out == 1 and G.in_degree(list(G.successors(u))[0]) == 1:
                // we need to keep the connection as it is the only way to maintain the connectivity of the network
                v = list(G.successors(u))[0]
                w = G[u][v][weight]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: dPys/PyNets
Commit Name: 1bb555accf80ed69c034b3cabfb472060c1aad6c
Time: 2019-11-17
Author: ryan.hammonds@utexas.edu
File Name: pynets/core/thresholding.py
Class Name:
Method Name: disparity_filter


Project Name: pgmpy/pgmpy
Commit Name: 789465ef7c65fbc525fce8467a254b8f224c6061
Time: 2019-01-24
Author: erotemic@gmail.com
File Name: pgmpy/base/DirectedGraph.py
Class Name: DirectedGraph
Method Name: get_children


Project Name: gboeing/osmnx
Commit Name: 7182aa5989f3c7eb46595bc08fd39e951d9b6036
Time: 2017-01-11
Author: gboeing@berkeley.edu
File Name: osmnx/simplify.py
Class Name:
Method Name: is_endpoint