b3f9fcd7774b4848df1eb8cea1eb1bdf6459911d,sbin/db_mgmt_cwe.py,CWEHandler,startElement,#CWEHandler#,55

Before Change


            self.related_weakness_tag = True
            self.nature = attrs.get("Nature")
            self.id = attrs.get("CWE_ID")
            self.view = attrs.get("View_ID")
            self.related = {"related_id": self.id, "related_nature": self.nature, "related_view": self.view}

    def characters(self, ch):
        if self.description_summary_tag:
            self.description_summary += ch.replace("       ", "")

After Change


            self.weakness_relationships_tag = True
            self.relationships = []

        elif name == "Relationship" and self.weakness_relationships_tag:
            self.relationship_tag = True
            self.relationship = {}

        elif name == "Relationship_View_ID" and self.relationship_tag:
            self.relationship_view_tag = True
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cve-search/cve-search
Commit Name: b3f9fcd7774b4848df1eb8cea1eb1bdf6459911d
Time: 2019-01-29
Author: serge-olivier.paquette@delvelabs.ca
File Name: sbin/db_mgmt_cwe.py
Class Name: CWEHandler
Method Name: startElement


Project Name: deepchem/deepchem
Commit Name: d52ed986c4bd1454c1d1bfabb6e47031c56712b4
Time: 2020-09-18
Author: nfrey213@gmail.com
File Name: deepchem/molnet/load_function/zinc15_datasets.py
Class Name:
Method Name: load_zinc15


Project Name: GoogleCloudPlatform/ml-on-gcp
Commit Name: 8079adae33711e4886a625df3f0ae9860739f7b9
Time: 2019-09-03
Author: yuhanliu@google.com
File Name: example_zoo/tools/process.py
Class Name:
Method Name: