aa8412eda9a753a5175009a3bd3ba376f2ae1fcb,osmnx/stats.py,,basic_stats,#Any#Any#,18

Before Change


        street_density_km = None
    
    // average circuity: sum of edge lengths divided by sum of great circle distance between edge endpoints
    points = [((G.node[u]["y"], G.node[u]["x"]), (G.node[v]["y"], G.node[v]["x"])) for u, v in G.edges()]
    great_circle_distances = [great_circle(p1, p2).m for p1, p2 in points]
    try:
        circuity_avg = edge_length_total / sum(great_circle_distances)
    except ZeroDivisionError:

After Change


                                    lat2=df_coords["v_y"], 
                                    lng2=df_coords["v_x"])
    warnings.filterwarnings("default")
    gc_distances = gc_distances.fillna(value=0)
    try:
        circuity_avg = edge_length_total / gc_distances.sum()
    except ZeroDivisionError:
        circuity_avg = np.nan
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: aa8412eda9a753a5175009a3bd3ba376f2ae1fcb
Time: 2017-02-22
Author: gboeing@berkeley.edu
File Name: osmnx/stats.py
Class Name:
Method Name: basic_stats


Project Name: pgmpy/pgmpy
Commit Name: 0ad3d83045cbce45d497e097faf62298b99331bc
Time: 2015-12-13
Author: yashuseth2503@gmail.com
File Name: pgmpy/estimators/MLE.py
Class Name: MaximumLikelihoodEstimator
Method Name: get_parameters


Project Name: jeongyoonlee/Kaggler
Commit Name: 897636a15789e621da899879972f0ae2a70446e4
Time: 2018-07-13
Author: jeongyoon.lee1@gmail.com
File Name: kaggler/preprocessing/data.py
Class Name: LabelEncoder
Method Name: _transform_col