Code Duplication    Length = 12-12 lines in 2 locations

src/ocrd_models/ocrd_page_generateds.py 2 locations

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