Code Duplication    Length = 42-44 lines in 3 locations

src/ocrd_models/ocrd_page_generateds.py 3 locations

@@ 6674-6717 (lines=44) @@
6671
    ]
6672
    subclass = None
6673
    superclass = None
6674
    def __init__(self, id=None, regionRef=None, index=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_):
6675
        self.gds_collector_ = gds_collector_
6676
        self.gds_elementtree_node_ = None
6677
        self.original_tagname_ = None
6678
        self.parent_object_ = kwargs_.get('parent_object_')
6679
        self.ns_prefix_ = "pc"
6680
        self.id = _cast(None, id)
6681
        self.id_nsprefix_ = "pc"
6682
        self.regionRef = _cast(None, regionRef)
6683
        self.regionRef_nsprefix_ = "pc"
6684
        self.index = _cast(int, index)
6685
        self.index_nsprefix_ = "pc"
6686
        self.caption = _cast(None, caption)
6687
        self.caption_nsprefix_ = "pc"
6688
        self.type_ = _cast(None, type_)
6689
        self.type__nsprefix_ = "pc"
6690
        self.continuation = _cast(bool, continuation)
6691
        self.continuation_nsprefix_ = "pc"
6692
        self.custom = _cast(None, custom)
6693
        self.custom_nsprefix_ = "pc"
6694
        self.comments = _cast(None, comments)
6695
        self.comments_nsprefix_ = "pc"
6696
        self.UserDefined = UserDefined
6697
        self.UserDefined_nsprefix_ = "pc"
6698
        if Labels is None:
6699
            self.Labels = []
6700
        else:
6701
            self.Labels = Labels
6702
        self.Labels_nsprefix_ = "pc"
6703
        if RegionRefIndexed is None:
6704
            self.RegionRefIndexed = []
6705
        else:
6706
            self.RegionRefIndexed = RegionRefIndexed
6707
        self.RegionRefIndexed_nsprefix_ = "pc"
6708
        if OrderedGroupIndexed is None:
6709
            self.OrderedGroupIndexed = []
6710
        else:
6711
            self.OrderedGroupIndexed = OrderedGroupIndexed
6712
        self.OrderedGroupIndexed_nsprefix_ = "pc"
6713
        if UnorderedGroupIndexed is None:
6714
            self.UnorderedGroupIndexed = []
6715
        else:
6716
            self.UnorderedGroupIndexed = UnorderedGroupIndexed
6717
        self.UnorderedGroupIndexed_nsprefix_ = "pc"
6718
    def factory(*args_, **kwargs_):
6719
        if CurrentSubclassModule_ is not None:
6720
            subclass = getSubclassFromModule_(
@@ 8120-8161 (lines=42) @@
8117
    ]
8118
    subclass = None
8119
    superclass = None
8120
    def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRef=None, OrderedGroup=None, UnorderedGroup=None, gds_collector_=None, **kwargs_):
8121
        self.gds_collector_ = gds_collector_
8122
        self.gds_elementtree_node_ = None
8123
        self.original_tagname_ = None
8124
        self.parent_object_ = kwargs_.get('parent_object_')
8125
        self.ns_prefix_ = "pc"
8126
        self.id = _cast(None, id)
8127
        self.id_nsprefix_ = "pc"
8128
        self.regionRef = _cast(None, regionRef)
8129
        self.regionRef_nsprefix_ = "pc"
8130
        self.caption = _cast(None, caption)
8131
        self.caption_nsprefix_ = "pc"
8132
        self.type_ = _cast(None, type_)
8133
        self.type__nsprefix_ = "pc"
8134
        self.continuation = _cast(bool, continuation)
8135
        self.continuation_nsprefix_ = "pc"
8136
        self.custom = _cast(None, custom)
8137
        self.custom_nsprefix_ = "pc"
8138
        self.comments = _cast(None, comments)
8139
        self.comments_nsprefix_ = "pc"
8140
        self.UserDefined = UserDefined
8141
        self.UserDefined_nsprefix_ = "pc"
8142
        if Labels is None:
8143
            self.Labels = []
8144
        else:
8145
            self.Labels = Labels
8146
        self.Labels_nsprefix_ = "pc"
8147
        if RegionRef is None:
8148
            self.RegionRef = []
8149
        else:
8150
            self.RegionRef = RegionRef
8151
        self.RegionRef_nsprefix_ = "pc"
8152
        if OrderedGroup is None:
8153
            self.OrderedGroup = []
8154
        else:
8155
            self.OrderedGroup = OrderedGroup
8156
        self.OrderedGroup_nsprefix_ = "pc"
8157
        if UnorderedGroup is None:
8158
            self.UnorderedGroup = []
8159
        else:
8160
            self.UnorderedGroup = UnorderedGroup
8161
        self.UnorderedGroup_nsprefix_ = "pc"
8162
    def factory(*args_, **kwargs_):
8163
        if CurrentSubclassModule_ is not None:
8164
            subclass = getSubclassFromModule_(
@@ 7652-7693 (lines=42) @@
7649
    ]
7650
    subclass = None
7651
    superclass = None
7652
    def __init__(self, id=None, regionRef=None, caption=None, type_=None, continuation=None, custom=None, comments=None, UserDefined=None, Labels=None, RegionRefIndexed=None, OrderedGroupIndexed=None, UnorderedGroupIndexed=None, gds_collector_=None, **kwargs_):
7653
        self.gds_collector_ = gds_collector_
7654
        self.gds_elementtree_node_ = None
7655
        self.original_tagname_ = None
7656
        self.parent_object_ = kwargs_.get('parent_object_')
7657
        self.ns_prefix_ = "pc"
7658
        self.id = _cast(None, id)
7659
        self.id_nsprefix_ = "pc"
7660
        self.regionRef = _cast(None, regionRef)
7661
        self.regionRef_nsprefix_ = "pc"
7662
        self.caption = _cast(None, caption)
7663
        self.caption_nsprefix_ = "pc"
7664
        self.type_ = _cast(None, type_)
7665
        self.type__nsprefix_ = "pc"
7666
        self.continuation = _cast(bool, continuation)
7667
        self.continuation_nsprefix_ = "pc"
7668
        self.custom = _cast(None, custom)
7669
        self.custom_nsprefix_ = "pc"
7670
        self.comments = _cast(None, comments)
7671
        self.comments_nsprefix_ = "pc"
7672
        self.UserDefined = UserDefined
7673
        self.UserDefined_nsprefix_ = "pc"
7674
        if Labels is None:
7675
            self.Labels = []
7676
        else:
7677
            self.Labels = Labels
7678
        self.Labels_nsprefix_ = "pc"
7679
        if RegionRefIndexed is None:
7680
            self.RegionRefIndexed = []
7681
        else:
7682
            self.RegionRefIndexed = RegionRefIndexed
7683
        self.RegionRefIndexed_nsprefix_ = "pc"
7684
        if OrderedGroupIndexed is None:
7685
            self.OrderedGroupIndexed = []
7686
        else:
7687
            self.OrderedGroupIndexed = OrderedGroupIndexed
7688
        self.OrderedGroupIndexed_nsprefix_ = "pc"
7689
        if UnorderedGroupIndexed is None:
7690
            self.UnorderedGroupIndexed = []
7691
        else:
7692
            self.UnorderedGroupIndexed = UnorderedGroupIndexed
7693
        self.UnorderedGroupIndexed_nsprefix_ = "pc"
7694
    def factory(*args_, **kwargs_):
7695
        if CurrentSubclassModule_ is not None:
7696
            subclass = getSubclassFromModule_(