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

Before Change


        elif name == "Related_Weaknesses" and self.weakness_tag:
            self.related_weaknesses_sub_tag = True
            self.related_weaknesses = []
        elif name == "Related_Weakness" and self.related_weaknesses_sub_tag:
            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:

After Change



        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 = ""
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: comic/grand-challenge.org
Commit Name: 89abc6591174f051cdd0c41701575b29b1820d0a
Time: 2019-05-22
Author: harm.van.zeeland@gmail.com
File Name: app/grandchallenge/retina_importers/views.py
Class Name: SetElementSpacingForImage
Method Name: set_element_spacing


Project Name: lovit/soynlp
Commit Name: bf03e74b9b0858f2e827e6da4b0ca8d960b3b5b6
Time: 2018-11-13
Author: soy.lovit@gmail.com
File Name: soynlp/pos/_news_pos.py
Class Name: NewsPOSExtractor
Method Name: _extract_compound_nouns