<commit_before>#!/bin/bash
set -ex
TOP=$(readlink -f ${TOP:-.})
SITEPACKAGES=${SITEPACKAGES:-.}
PROJECT=venv_update
NCPU=$(getconf _NPROCESSORS_CONF)

export PYTHONPATH=$(readlink -f $SITEPACKAGES)

python --version
coverage --version
py.test --version
coverage erase
py.test "$@" -n $NCPU \
    --cov-enable --cov-config=$TOP/.coveragerc --cov-report='' \
    $TOP/tests $SITEPACKAGES/${PROJECT}.py
coverage combine
coverage report --fail-under 84  # FIXME: should be 100<commit_msg>update minimum coverage<commit_after>#!/bin/bash
set -ex
TOP=$(readlink -f ${TOP:-.})
SITEPACKAGES=${SITEPACKAGES:-.}
PROJECT=venv_update
NCPU=$(getconf _NPROCESSORS_CONF)

export PYTHONPATH=$(readlink -f $SITEPACKAGES)

python --version
coverage --version
py.test --version
coverage erase
py.test "$@" -n $NCPU \
    --cov-enable --cov-config=$TOP/.coveragerc --cov-report='' \
    $TOP/tests $SITEPACKAGES/${PROJECT}.py
coverage combine
coverage report --fail-under 95  # FIXME: should be 100
{'fraction_non_alphanumeric': 0.16768916155419222, 'fraction_numerical': 0.010224948875255624, 'mean_word_length': 4.291891891891892, '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': '6133772', 'n_tokens_mistral': 375, 'n_tokens_neox': 354, 'n_words': 81}