21b84ebed97330c3f9214d5817476ed7fe7c03d6,osmnx/utils.py,,get_route_edge_attributes,#Any#Any#Any#Any#,487

Before Change


    for u, v in zip(route[:-1], route[1:]):
        // if there are parallel edges between two nodes, select the one with the
        // lowest value of minimize_key
        data = min([data for data in G.edges[u, v].values()], key=lambda x: x[minimize_key])
        attribute_values.append(data[attribute])
    return attribute_values

After Change


    for u, v in zip(route[:-1], route[1:]):
        // if there are parallel edges between two nodes, select the one with the
        // lowest value of minimize_key
        data = min(G.get_edge_data(u, v).values(), key=lambda x: x[minimize_key])
        attribute_values.append(data[attribute])
    return attribute_values
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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: 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: 984b805d094c3abcf44df1f135fec36d912261f7
Time: 2017-08-22
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_figure_ground