Code Duplication    Length = 42-44 lines in 3 locations

src/ocrd_models/ocrd_page_generateds.py 3 locations

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