<commit_before>from enum import Enum
from natasha.grammars import Person


ABBR_PREFIX_DICTIONARY = {
    'ООО',
    'ОАО',
    'ПАО',
    'ЗАО',
    'АО',
}

ORG_TYPE_DICTIONARY = {
    'агентство',
    'компания',
}

class Organisation(Enum):

    OfficialAbbrQuoted = [
        {
            'labels': [
                ('in', ABBR_PREFIX_DICTIONARY),
            ],
        },
        {
            'labels': [
                ('gram', 'QUOTE'),
            ],
        },
        {
            'labels': [
                ('gram-not', 'QUOTE'),
            ],
            'repeatable': True,
        },
        {
            'labels': [
                ('gram', 'QUOTE'),
            ],
        },
    ]

    Abbr = [
        {
            'labels': [
                ('gram', 'Abbr'),
                ('gram', 'Orgn'),
            ]
        },
    ]

    IndividualEntrepreneur = [
        {
            'labels': [
                ('eq', 'ИП'),
            ],
        },
        *Person.Full.value,
    ]

    SimpleLatin = [
        {
            'labels': [
                ('dictionary', ORG_TYPE_DICTIONARY),
            ],
        },
        {
            'labels': [
                ('gram', 'LATN'),
            ],
            'repeatable': True,
        },
    ]
<commit_msg>Don't use tuple unpacking for python2 support<commit_after>from enum import Enum
from natasha.grammars import Person


ABBR_PREFIX_DICTIONARY = {
    'ООО',
    'ОАО',
    'ПАО',
    'ЗАО',
    'АО',
}

ORG_TYPE_DICTIONARY = {
    'агентство',
    'компания',
}

class Organisation(Enum):

    OfficialAbbrQuoted = [
        {
            'labels': [
                ('in', ABBR_PREFIX_DICTIONARY),
            ],
        },
        {
            'labels': [
                ('gram', 'QUOTE'),
            ],
        },
        {
            'labels': [
                ('gram-not', 'QUOTE'),
            ],
            'repeatable': True,
        },
        {
            'labels': [
                ('gram', 'QUOTE'),
            ],
        },
    ]

    Abbr = [
        {
            'labels': [
                ('gram', 'Abbr'),
                ('gram', 'Orgn'),
            ]
        },
    ]

    IndividualEntrepreneur = [
        {
            'labels': [
                ('eq', 'ИП'),
            ],
        },
        Person.Full.value[0],
        Person.Full.value[1],
        Person.Full.value[2],
    ]

    SimpleLatin = [
        {
            'labels': [
                ('dictionary', ORG_TYPE_DICTIONARY),
            ],
        },
        {
            'labels': [
                ('gram', 'LATN'),
            ],
            'repeatable': True,
        },
    ]

{'fraction_non_alphanumeric': 0.15269461077844312, 'fraction_numerical': 0.0014970059880239522, 'mean_word_length': 0.9468317552804079, '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': '4100927', 'n_tokens_mistral': 851, 'n_tokens_neox': 806, 'n_words': 116}