<commit_before>#!/bin/sh

(
    python_path=`pwd`
    if [ -n "${PYTHON_PATH}" ]; then
        python_path="${python_path}:${PYTHONPATH}"
    fi
    export PYTHONPATH=$python_path
    if [ -z "${DJANGO_SETTINGS_MODULE}" ]; then
        export DJANGO_SETTINGS_MODULE=settings.test
    fi

    cd readthedocs
    rm -rf rtd_tests/builds/

    coverage run -m pytest $*
)<commit_msg>Forcing tests to be run with LANG=C. Otherwise the tests might fail if a non english locale is active.<commit_after>#!/bin/sh

(
    python_path=`pwd`
    if [ -n "${PYTHON_PATH}" ]; then
        python_path="${python_path}:${PYTHONPATH}"
    fi
    export PYTHONPATH=$python_path
    if [ -z "${DJANGO_SETTINGS_MODULE}" ]; then
        export DJANGO_SETTINGS_MODULE=settings.test
    fi

    cd readthedocs
    rm -rf rtd_tests/builds/

    LANG=C \
    coverage run -m pytest $*
)
{'fraction_non_alphanumeric': 0.12180974477958237, 'fraction_numerical': 0.0, 'mean_word_length': 2.922727272727273, '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': '2297411', 'n_tokens_mistral': 322, 'n_tokens_neox': 314, 'n_words': 71}