d7b2db3c5262c82c44958afc2500efe0838f0884,osmnx/utils_graph.py,,_update_edge_keys,#,536

Before Change


            geom_pairs = list(zip(li[:-1], li[1:]))
        else:
            // otherwise, just compare the first edge to the second edge
            geom_pairs = [(group["geometry"].iloc[0], group["geometry"].iloc[1])]

        // for each pair of edges to compare
        for geom1, geom2 in geom_pairs:

After Change


    for _, group in groups:

        // for each pair of edges within this group
        for geom1, geom2 in itertools.combinations(group["geometry"], 2):

            // if they don"t have the same geometry, flag them as different streets
            // add edge uvk, but not edge vuk, otherwise we"ll iterate both their keys
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: gboeing/osmnx
Commit Name: d7b2db3c5262c82c44958afc2500efe0838f0884
Time: 2020-12-02
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: pgmpy/pgmpy
Commit Name: eea41a4578b5021bbc16eb171bceb453cbde2419
Time: 2014-11-30
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/base/UndirectedGraph.py
Class Name: UndirectedGraph
Method Name: check_clique


Project Name: pgmpy/pgmpy
Commit Name: d86fe5fa05b434e32ac7a9e8d59fe7acb2841d98
Time: 2014-07-31
Author: ankurankan@gmail.com
File Name: pgmpy/MarkovModel/MarkovModel.py
Class Name: MarkovModel
Method Name: _in_clique