d08ad6bab50eacd02554f9b037f33280ccf28b87,osmnx/footprints.py,,create_footprints_gdf,#Any#Any#Any#Any#Any#Any#Any#Any#,235

Before Change


                    if "type" in member and member["type"]=="way":
                        relation["members"].update({member["ref"]:member.get("role")})
                        // add way id to set of way ids found in relations
                        way_ids_in_relations.add(member["ref"])
                if "tags" in element:
                    for tag in element["tags"]:
                        relation[tag] = element["tags"][tag]
                relations[element["id"]] = relation

After Change


    // delete any ways not tagged with footprint_type from the final dictionary
    for untagged_way in untagged_ways:
        try:
            del footprints[untagged_way]
        except KeyError:
            log("untagged_way {} not found in footprints dict".format(untagged_way))

    // Convert footprints dictionary to a GeoDataFrame
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: d08ad6bab50eacd02554f9b037f33280ccf28b87
Time: 2019-05-19
Author: webmail@nickbristow.co.uk
File Name: osmnx/footprints.py
Class Name:
Method Name: create_footprints_gdf


Project Name: onnx/onnx-coreml
Commit Name: 7f7a30cae66e7d65917ceea966225292f582d809
Time: 2019-10-04
Author: bhushan.s.94@gmail.com
File Name: onnx_coreml/_transformers.py
Class Name: DeadCodeElimination
Method Name: __call__


Project Name: ricsinaruto/Seq2seqChatbots
Commit Name: 846e1fc00dd182b77494ff790d8e0352d756dfc0
Time: 2018-07-17
Author: purgai.patrik@gmail.com
File Name: t2t_csaky/scripts/benchmark_avg_embedding_sts.py
Class Name:
Method Name: main


Project Name: pgmpy/pgmpy
Commit Name: 2e2fcd1c79a70e5cb7a9bae8b09dca2919041e39
Time: 2015-02-01
Author: ankurankan@gmail.com
File Name: pgmpy/inference/ExactInference.py
Class Name: VariableElimination
Method Name: _variable_elimination