984b805d094c3abcf44df1f135fec36d912261f7,osmnx/plot.py,,plot_graph_route,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,430

Before Change


    lines = []
    for u, v in edge_nodes:
        // if there are parallel edges, select the shortest in length
        data = min([data for data in G.edges[u, v].values()], key=lambda x: x["length"])

        // if it has a geometry attribute (ie, a list of line segments)
        if "geometry" in data and use_geom:

After Change


    lines = []
    for u, v in edge_nodes:
        // if there are parallel edges, select the shortest in length
        data = min(G.get_edge_data(u, v).values(), key=lambda x: x["length"])

        // if it has a geometry attribute (ie, a list of line segments)
        if "geometry" in data and use_geom:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: 984b805d094c3abcf44df1f135fec36d912261f7
Time: 2017-08-22
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_graph_route


Project Name: gboeing/osmnx
Commit Name: 21b84ebed97330c3f9214d5817476ed7fe7c03d6
Time: 2017-08-22
Author: gboeing@berkeley.edu
File Name: osmnx/utils.py
Class Name:
Method Name: get_route_edge_attributes


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: 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