<commit_before>__version_info__ = {
    'major': 0,
    'minor': 6,
    'micro': 0,
    'releaselevel': 'beta',
    'serial': 4
}

def get_version():
    vers = ["%(major)i.%(minor)i" % __version_info__, ]

    if __version_info__['micro']:
        vers.append(".%(micro)i" % __version_info__)
    if __version_info__['releaselevel'] != 'final':
        vers.append('%(releaselevel)s%(serial)i' % __version_info__)
    return ''.join(vers)

__version__ = get_version()

try:
    import fields

    from django.db.models import FieldDoesNotExist

    class AlreadyRegistered(Exception):
        """
        An attempt was made to register a model more than once.
        """
        pass<commit_msg>Putting registry outside of the try block<commit_after>__version_info__ = {
    'major': 0,
    'minor': 6,
    'micro': 0,
    'releaselevel': 'beta',
    'serial': 5
}

def get_version():
    vers = ["%(major)i.%(minor)i" % __version_info__, ]

    if __version_info__['micro']:
        vers.append(".%(micro)i" % __version_info__)
    if __version_info__['releaselevel'] != 'final':
        vers.append('%(releaselevel)s%(serial)i' % __version_info__)
    return ''.join(vers)

__version__ = get_version()

registry = {}

try:
    import fields

    from django.db.models import FieldDoesNotExist

    class AlreadyRegistered(Exception):
        """
        An attempt was made to register a model more than once.
        """
        pass
{'fraction_non_alphanumeric': 0.14246004169562196, 'fraction_numerical': 0.005559416261292564, 'mean_word_length': 3.0793201133144477, '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': '2720947', 'n_tokens_mistral': 493, 'n_tokens_neox': 458, 'n_words': 106}