<commit_before>#!/bin/sh

TESTS="test_input/test[1-9]*.py"
# comment out to use python from path
PYTHON="python"
#PYTHON="$HOME/build/python/clean/python"
# PYTHON="$HOME/build/python/2.2/python"
#PYTHON="/usr/bin/python"
# PYTHON="$PYTHON -tt coverage.py -x"

if [ $# -gt 0 ]; then
    TESTS=""
    for arg in $* ; do
        TESTS="$TESTS test_input/test${arg}.py"
    done
fi

if [ -z "$TMP" ]; then
    TMP=/tmp
fi

error=0

VERSION=`$PYTHON -c "import sys ; print '%d.%d' % sys.version_info[0:2]"`
FAILED=""
NO_EXPECTED_RESULTS=""
for test_file in $TESTS ; do<commit_msg>if python is not set, use python in path<commit_after>#!/bin/sh

TESTS="test_input/test[1-9]*.py"
# comment out to use python from path
#PYTHON="python2"
#PYTHON="$HOME/build/python/2_3/python"
#PYTHON="$PYTHON -tt coverage.py -x"

if [ "$PYTHON" == "" ]; then
    PYTHON=python
fi

if [ $# -gt 0 ]; then
    TESTS=""
    for arg in $* ; do
        TESTS="$TESTS test_input/test${arg}.py"
    done
fi

if [ -z "$TMP" ]; then
    TMP=/tmp
fi

error=0

VERSION=`$PYTHON -c "import sys ; print '%d.%d' % sys.version_info[0:2]"`
FAILED=""
NO_EXPECTED_RESULTS=""
for test_file in $TESTS ; do
{'fraction_non_alphanumeric': 0.18760757314974183, 'fraction_numerical': 0.014629948364888123, 'mean_word_length': 3.633466135458167, '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': '6222072', 'n_tokens_mistral': 491, 'n_tokens_neox': 483, 'n_words': 112}