Code Duplication    Length = 12-12 lines in 2 locations

src/ocrd_models/ocrd_page_generateds.py 2 locations

@@ 9010-9021 (lines=12) @@
9007
            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
9008
            self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
9009
        return self
9010
    def _buildAttributes(self, node, attrs, already_processed):
9011
        value = find_attr_value_('points', node)
9012
        if value is not None and 'points' not in already_processed:
9013
            already_processed.add('points')
9014
            self.points = value
9015
            self.validate_PointsType(self.points)    # validate type PointsType
9016
        value = find_attr_value_('conf', node)
9017
        if value is not None and 'conf' not in already_processed:
9018
            already_processed.add('conf')
9019
            value = self.gds_parse_float(value, node, 'conf')
9020
            self.conf = value
9021
            self.validate_ConfSimpleType(self.conf)    # validate type ConfSimpleType
9022
    def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
9023
        pass
9024
    def __hash__(self):
@@ 4112-4123 (lines=12) @@
4109
            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
4110
            self._buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
4111
        return self
4112
    def _buildAttributes(self, node, attrs, already_processed):
4113
        value = find_attr_value_('points', node)
4114
        if value is not None and 'points' not in already_processed:
4115
            already_processed.add('points')
4116
            self.points = value
4117
            self.validate_PointsType(self.points)    # validate type PointsType
4118
        value = find_attr_value_('conf', node)
4119
        if value is not None and 'conf' not in already_processed:
4120
            already_processed.add('conf')
4121
            value = self.gds_parse_float(value, node, 'conf')
4122
            self.conf = value
4123
            self.validate_ConfSimpleType(self.conf)    # validate type ConfSimpleType
4124
    def _buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
4125
        pass
4126
    def __hash__(self):