b2be440a78c9da841c3f1bdfa34e5dc0dc1e669c,osmnx/utils_graph.py,,_update_edge_keys,#Any#,536

Before Change



        if len(group) > 2:
            // if there are more than 2 edges here, make sure to compare all
            li = group["geometry"].tolist()
            li.append(li[0])
            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: 4

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: b2be440a78c9da841c3f1bdfa34e5dc0dc1e669c
Time: 2020-11-19
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: gboeing/osmnx
Commit Name: b2be440a78c9da841c3f1bdfa34e5dc0dc1e669c
Time: 2020-11-19
Author: boeing@usc.edu
File Name: osmnx/utils_graph.py
Class Name:
Method Name: _update_edge_keys


Project Name: dgasmith/opt_einsum
Commit Name: 423bef1c42ff06214c3fc6f759e4b7da6a59309f
Time: 2018-02-06
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/paths.py
Class Name:
Method Name: optimal


Project Name: commonsense/conceptnet5
Commit Name: 6b3c362cc85fc4fbd4a972954a39b39404950b14
Time: 2017-03-07
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/evaluation/wordsim.py
Class Name:
Method Name: evaluate_semeval_crosslingual_global


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