<commit_before>#!/usr/bin/env python
import os
import sys


def runtests():
    test_dir = os.path.dirname(__file__)
    sys.path.insert(0, test_dir)
    os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

    import django
    from django.test.utils import get_runner
    from django.conf import settings

    try:
        django.setup()
    except AttributeError:  # 1.6 or lower
        pass

    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=1, interactive=True)
    failures = test_runner.run_tests(['.'])
    sys.exit(failures)


if __name__ == '__main__':
    runtests()<commit_msg>Remove compat shim as it doesn't apply<commit_after>#!/usr/bin/env python
import os
import sys


def runtests():
    test_dir = os.path.dirname(__file__)
    sys.path.insert(0, test_dir)
    os.environ['DJANGO_SETTINGS_MODULE'] = 'tests.settings'

    import django
    from django.test.utils import get_runner
    from django.conf import settings

    django.setup()

    TestRunner = get_runner(settings)
    test_runner = TestRunner(verbosity=1, interactive=True)
    failures = test_runner.run_tests(['.'])
    sys.exit(failures)


if __name__ == '__main__':
    runtests()
{'fraction_non_alphanumeric': 0.11101836393989983, 'fraction_numerical': 0.005008347245409015, 'mean_word_length': 3.55893536121673, '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': '4062070', 'n_tokens_mistral': 397, 'n_tokens_neox': 388, 'n_words': 86}