<commit_before>from oemof.core.energy_system import Region


class RegionDingo(Region):
    """
    Defines a region in DINGO, derived from oemof
    ----------------------------

    """
    def __init__(self, **kwargs):
        #inherit parameters from oemof's Region
        super().__init__(**kwargs)

        #more params
        self.id_db = kwargs.get('id_db', None)
<commit_msg>add class RegionCentreDingo for routing (part of #51)<commit_after>from oemof.core.energy_system import Region


class RegionDingo(Region):
    """
    Defines a region in DINGO, derived from oemof
    ---------------------------------------------

    """
    def __init__(self, **kwargs):
        #inherit parameters from oemof's Region
        super().__init__(**kwargs)

        #more params
        self.id_db = kwargs.get('id_db', None)


class RegionCentreDingo:
    """
    Defines a region centre in Dingo
    --------------------------------
    The centres are used in the MV routing as nodes.
    Note: Centre is a point within a region's polygon that is located most central (e.g. in a simple region shape like a
    circle it's the geometric center).

    Parameters
    ----------
    id_db: unique ID in database (=id of associated load area)
    """
    def __init__(self, **kwargs):
        self.id_db = kwargs.get('id_db', None)

    def __repr__(self):
        return 'regioncentre_' + str(self.id_db)
{'fraction_non_alphanumeric': 0.16986496090973702, 'fraction_numerical': 0.0014214641080312722, 'mean_word_length': 2.087719298245614, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7198735', 'n_tokens_mistral': 413, 'n_tokens_neox': 394, 'n_words': 130}