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


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

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)<commit_msg>read .env if available, for easier production testing locally<commit_after>#!/usr/bin/env python3
import os
import sys

import environ

if __name__ == "__main__":
    try:
        env = environ.Env
        env.read_env('.env')
    except FileNotFoundError:
        pass
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "config.settings.local")

    from django.core.management import execute_from_command_line

    execute_from_command_line(sys.argv)
{'fraction_non_alphanumeric': 0.09510869565217392, 'fraction_numerical': 0.002717391304347826, 'mean_word_length': 4.302158273381295, 'pattern_counts': {'":': 2, '<': 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': '2928487', 'n_tokens_mistral': 233, 'n_tokens_neox': 230, 'n_words': 48}