2a3d0d9f2e50e5943905bf1c6588b254ea57562f,osmnx/utils.py,OSMContentHandler,startElement,#OSMContentHandler#Any#Any#,597

Before Change


            self.object.update(version=attrs.get("version"), generator=attrs.get("generator"))
        
        elif name == "relation":
            print(name, dict(attrs))
        
        elif name in ("node", "way"):
            node = dict(type=name, nodes=[], **attrs)

After Change



    def startElement(self, name, attrs):
        if name == "osm":
            self.object.update({k: attrs[k] for k in attrs.keys()
                if k in ("version", "generator")})
        
        elif name in ("node", "way"):
            self._element = dict(type=name, tags={}, nodes=[], **attrs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 3

Instances


Project Name: gboeing/osmnx
Commit Name: 2a3d0d9f2e50e5943905bf1c6588b254ea57562f
Time: 2017-10-10
Author: mike@remix.com
File Name: osmnx/utils.py
Class Name: OSMContentHandler
Method Name: startElement


Project Name: mathics/Mathics
Commit Name: 3c70d80fe38b326fa8455637cbe619a04d98c0a5
Time: 2021-01-23
Author: pablo-escobar@riseup.net
File Name: mathics/core/util.py
Class Name:
Method Name:


Project Name: tensorflow/cleverhans
Commit Name: 7ed752b0002412c5a5f425c39bbc214459107984
Time: 2018-10-19
Author: goodfellow@google.com
File Name: cleverhans/attacks.py
Class Name: Attack
Method Name: construct_variables


Project Name: okfn-brasil/serenata-de-amor
Commit Name: ed82e27fef3c21f0d86e0e8efdc923f527da37ae
Time: 2017-05-11
Author: cuducos@users.noreply.github.com
File Name: jarbas/core/management/commands/irregularities.py
Class Name: Command
Method Name: serialize


Project Name: williamFalcon/pytorch-lightning
Commit Name: b3b48c188cc59b46549a1806938017951c764875
Time: 2021-02-04
Author: aedu.waelchli@gmail.com
File Name: pytorch_lightning/trainer/properties.py
Class Name: TrainerProperties
Method Name: progress_bar_dict