<commit_before>#!/usr/bin/env python
# -*- coding: us-ascii -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
#

import os
import sys

if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cah.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)<commit_msg>Avoid unhelpful messages with old Python versions. Without this change gand using Python 2.6.4 get:<commit_after>#!/usr/bin/env python
# -*- coding: us-ascii -*-
# vim:ts=4:sw=4:softtabstop=4:smarttab:expandtab
#

import os
import sys

if __name__ == "__main__":
    if sys.version_info < (2, 6, 5):
        # Avoid unhelpful errors https://code.djangoproject.com/ticket/18961
        raise NotImplementedError('Python version is too old (for Django)')
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cah.settings")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
{'fraction_non_alphanumeric': 0.12167689161554192, 'fraction_numerical': 0.017382413087934562, 'mean_word_length': 4.691860465116279, 'pattern_counts': {'":': 2, '<': 4, '<?xml version=': 0, '>': 3, 'https://': 1, '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': '1611709', 'n_tokens_mistral': 349, 'n_tokens_neox': 332, 'n_words': 68}