Code Duplication    Length = 12-12 lines in 2 locations

src/ocrd_models/ocrd_page_generateds.py 2 locations

@@ 8164-8175 (lines=12) @@
8161
            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
8162
            self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
8163
        return self
8164
    def buildAttributes(self, node, attrs, already_processed):
8165
        value = find_attr_value_('points', node)
8166
        if value is not None and 'points' not in already_processed:
8167
            already_processed.add('points')
8168
            self.points = value
8169
            self.validate_PointsType(self.points)    # validate type PointsType
8170
        value = find_attr_value_('conf', node)
8171
        if value is not None and 'conf' not in already_processed:
8172
            already_processed.add('conf')
8173
            value = self.gds_parse_float(value, node, 'conf')
8174
            self.conf = value
8175
            self.validate_ConfSimpleType(self.conf)    # validate type ConfSimpleType
8176
    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
8177
        pass
8178
    def __hash__(self):
@@ 3465-3476 (lines=12) @@
3462
            nodeName_ = Tag_pattern_.match(child.tag).groups()[-1]
3463
            self.buildChildren(child, node, nodeName_, gds_collector_=gds_collector_)
3464
        return self
3465
    def buildAttributes(self, node, attrs, already_processed):
3466
        value = find_attr_value_('points', node)
3467
        if value is not None and 'points' not in already_processed:
3468
            already_processed.add('points')
3469
            self.points = value
3470
            self.validate_PointsType(self.points)    # validate type PointsType
3471
        value = find_attr_value_('conf', node)
3472
        if value is not None and 'conf' not in already_processed:
3473
            already_processed.add('conf')
3474
            value = self.gds_parse_float(value, node, 'conf')
3475
            self.conf = value
3476
            self.validate_ConfSimpleType(self.conf)    # validate type ConfSimpleType
3477
    def buildChildren(self, child_, node, nodeName_, fromsubclass_=False, gds_collector_=None):
3478
        pass
3479
    def __hash__(self):