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

Before Change


            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
            self.relationship_view = ""
            self.view_id = []
        elif name == "Relationship_Target_Form" and self.relationship_tag:
            self.relationship_target_tag = True
            self.relationship_target = ""
        elif name == "Relationship_Nature" and self.relationship_tag:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

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: suavecode/SUAVE
Commit Name: 647c40d3314a0ca90eb4b3ad9ab7791215e49792
Time: 2020-09-28
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Propulsion/electric_motor_sizing.py
Class Name:
Method Name: optimize_kv


Project Name: suavecode/SUAVE
Commit Name: 10f95c7c122a9c48f10369adfaf5775e89912c7b
Time: 2020-09-01
Author: mclarke2@stanford.edu
File Name: trunk/SUAVE/Methods/Propulsion/electric_motor_sizing.py
Class Name:
Method Name: optimize_kv