9aef0f280be9dbb22ac407d8478376beac8f955a,osmnx/pois.py,,parse_osm_relations,#Any#Any#,208

Before Change


            gdf_relations = gdf_relations.append(geo)
            // Remove such "ways" from "osm_way_df" that are part of the "relation"
            osm_way_df = osm_way_df.drop(member_way_ids)
        elif relation["type"] == "multiline":
            print("TODO: multiline relation")
        elif relation["type"] == "multipoint":
            print("TODO: multipoint relation")

    // Merge "osm_way_df" and the "gdf_relations"
    osm_way_df = osm_way_df.append(gdf_relations)
    return osm_way_df

After Change


                    // Remove such "ways" from "osm_way_df" that are part of the "relation"
                    osm_way_df = osm_way_df.drop(member_way_ids)
            except Exception:
                log("Could not handle OSM "relation": {}".format(relation["id"]))

    // Merge "osm_way_df" and the "gdf_relations"
    osm_way_df = osm_way_df.append(gdf_relations)
    return osm_way_df
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: gboeing/osmnx
Commit Name: 9aef0f280be9dbb22ac407d8478376beac8f955a
Time: 2018-05-03
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: parse_osm_relations


Project Name: deepchem/deepchem
Commit Name: f84b0a04196eae7ca32460be4ead737a3a6bc7ab
Time: 2016-08-02
Author: bharath.ramsundar@gmail.com
File Name: deepchem/models/multitask.py
Class Name: SingletaskToMultitask
Method Name: fit


Project Name: gboeing/osmnx
Commit Name: 2199c616c262de892462c94517cb911facf1eeed
Time: 2017-12-28
Author: henrikki.tenkanen@helsinki.fi
File Name: osmnx/pois.py
Class Name:
Method Name: parse_osm_relations