<commit_before># This file is heavily inspired from the django admin autodiscover

__version_info__ = {
    'major': 1,
    'minor': 0,
    'micro': 0,
    'releaselevel': 'final',
    'serial': 0
}


def autodiscover():
    """
    Auto-discover INSTALLED_APPS admin.py modules and fail silently when
    not present. This forces an import on them to register any admin bits they
    may want.
    """

    import copy
    import django
    from django.conf import settings
    from django.utils.importlib import import_module
    from django.utils.module_loading import module_has_submodule
    from health_check.plugins import plugin_dir

    if django.VERSION > 1.7:
        from django.apps import apps

        for app_config in apps.get_app_configs():
            try:<commit_msg>fix django version verification on python 3<commit_after># This file is heavily inspired from the django admin autodiscover

__version_info__ = {
    'major': 1,
    'minor': 0,
    'micro': 0,
    'releaselevel': 'final',
    'serial': 0
}


def autodiscover():
    """
    Auto-discover INSTALLED_APPS admin.py modules and fail silently when
    not present. This forces an import on them to register any admin bits they
    may want.
    """

    import copy
    import django
    from django.conf import settings
    from django.utils.importlib import import_module
    from django.utils.module_loading import module_has_submodule
    from health_check.plugins import plugin_dir

    if django.get_version() > '1.7':
        from django.apps import apps

        for app_config in apps.get_app_configs():
            try:
{'fraction_non_alphanumeric': 0.07320099255583126, 'fraction_numerical': 0.008064516129032258, 'mean_word_length': 2.943765281173594, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '3915687', 'n_tokens_mistral': 479, 'n_tokens_neox': 458, 'n_words': 165}