05280120c8aae501f52f0372b7fee511dfe70dae,dh_segment/post_processing/PAGE.py,GraphicRegion,from_xml,#Any#Any#,156

Before Change


    def from_xml(cls, e: ET.Element) -> "GraphicRegion":
        cls.check_tag(e.tag)
        return GraphicRegion(
            id=e.attrib.get("id"),
            coords=Point.list_from_xml(e.find("p:Coords", _ns))
        )


class TextRegion(BaseElement):

After Change


    @classmethod
    def from_xml(cls, e: ET.Element) -> "GraphicRegion":
        cls.check_tag(e.tag)
        return GraphicRegion(*super().from_xml(e))

    def to_xml(self, name_element="GraphicRegion"):
        // TODO : This must be updated
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 8

Instances


Project Name: dhlab-epfl/dhSegment
Commit Name: 05280120c8aae501f52f0372b7fee511dfe70dae
Time: 2018-04-19
Author: sofia.oliveiraares@epfl.ch
File Name: dh_segment/post_processing/PAGE.py
Class Name: GraphicRegion
Method Name: from_xml


Project Name: dhlab-epfl/dhSegment
Commit Name: 05280120c8aae501f52f0372b7fee511dfe70dae
Time: 2018-04-19
Author: sofia.oliveiraares@epfl.ch
File Name: dh_segment/post_processing/PAGE.py
Class Name: TextRegion
Method Name: from_xml


Project Name: dhlab-epfl/dhSegment
Commit Name: c1ad7c951fe6bfcd708fb91db1688ccadf3b67f9
Time: 2018-04-19
Author: sofia.oliveiraares@epfl.ch
File Name: dh_segment/post_processing/PAGE.py
Class Name: GraphicRegion
Method Name: from_xml


Project Name: dhlab-epfl/dhSegment
Commit Name: c1ad7c951fe6bfcd708fb91db1688ccadf3b67f9
Time: 2018-04-19
Author: sofia.oliveiraares@epfl.ch
File Name: dh_segment/post_processing/PAGE.py
Class Name: TextRegion
Method Name: from_xml