cb357e90338afa0e482a25531b501d25f39c42ce,osmnx/plot.py,,plot_figure_ground,#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#Any#,620

Before Change


        G = get_largest_component(G, strongly=True)
        center_nodes = nx.center(G)
        // Bad performance [(node, data) for node, data in G.nodes(data=True) if node in nx.center(G)]
        nodes_data = {node: data for node, data in G.nodes(data=True)}
        // Arbitrarily choose first node
        point = (nodes_data[center_nodes[0]]["y"], nodes_data[center_nodes[0]]["x"])

After Change


    if G is not None:
        gdf_nodes = graph_to_gdfs(G, edges=False, node_geometry=True)
        lnglat_point = gdf_nodes.unary_union.centroid.coords[0]
        point = tuple(reversed(lnglat_point))
    
    // otherwise, get the network by either address or point, whichever was passed-in, 
    // using a distance multiplier to make sure we get more than enough network
    elif address is not None:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: gboeing/osmnx
Commit Name: cb357e90338afa0e482a25531b501d25f39c42ce
Time: 2017-03-02
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_figure_ground


Project Name: eth-cscs/reframe
Commit Name: 04808b85421bb7e68611bc4b5b4ae487bdf49dfd
Time: 2018-12-17
Author: karakasis@cscs.ch
File Name: reframe/core/environments.py
Class Name: Environment
Method Name: emit_unload_commands


Project Name: pantsbuild/pants
Commit Name: fac976efbc71aef758382015854f550c57d96461
Time: 2015-11-13
Author: tansy.arron@gmail.com
File Name: src/python/pants/backend/core/tasks/sorttargets.py
Class Name: SortTargets
Method Name: console_output