<commit_before>#!/bin/bash
CWD=`pwd`
TEST_RESULTS_PATH="$CWD/support/tests"

set -e
pip install -r ../requirements/all -r ../requirements/dev

set +e
py.test -c /dev/null --cov=./ -vs --json=report.json ../test*/*/test_getters.py
set -e

cp report.json $TEST_RESULTS_PATH/report.json<commit_msg>only run tests if file doesn't exist already<commit_after>#!/bin/bash
CWD=`pwd`
TEST_RESULTS_PATH="$CWD/support/tests"

if [ ! -f "report.json" ]; then
    set -e
    pip install -r ../requirements/all -r ../requirements/dev

    set +e
    py.test -c /dev/null --cov=./ -vs --json=report.json ../test*/*/test_getters.py
    set -e

    cp report.json $TEST_RESULTS_PATH/report.json
fi
{'fraction_non_alphanumeric': 0.175, 'fraction_numerical': 0.0, 'mean_word_length': 3.0058823529411764, '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': '1397567', 'n_tokens_mistral': 274, 'n_tokens_neox': 253, 'n_words': 61}