<commit_before>#! /bin/bash

# Script to be called by Travis or CI client
# to test our project. Works for either
# cron builds or pull requests

# Debugging
if [[ $DEBUG ]]; then
    echo ~~~~~DEBUG MODE~~~~~
    # stacktrace
    set -x
else
    # Exit immediately if a simple command fails
    set -e
    # Propagate error codes through pipes
    set -o pipefail
fi
#
# Check if we are on travis
# If so, we also can run our tests with coverage
# If not, run with vanilla python
#

if [ $TRAVIS ]; then
    PY_RUNNER="coverage run -a"
    if [ $TRAVIS_PULL_REQUEST != "false"]; then
        # Run lint on the whole project later
        FLAKE_DIFF=0
    else
        TARGET=$TRAVIS_BRANCH
    fi
else
    if [[ -z $PY_RUNNER ]]; then
        PY_RUNNER="python"
    fi
fi

#
# Main test suite
#
<commit_msg>CI Fix a tiny bit of lint in the travis test script (#250)<commit_after>#! /bin/bash

# Script to be called by Travis or CI client
# to test our project. Works for either
# cron builds or pull requests

# Debugging
if [[ $DEBUG ]]; then
    echo ~~~~~DEBUG MODE~~~~~
    # stacktrace
    set -x
else
    # Exit immediately if a simple command fails
    set -e
    # Propagate error codes through pipes
    set -o pipefail
fi
#
# Check if we are on travis
# If so, we also can run our tests with coverage
# If not, run with vanilla python
#

if [ $TRAVIS ]; then
    PY_RUNNER="coverage run -a"
    if [ $TRAVIS_PULL_REQUEST != "false" ]; then
        # Run lint on the whole project later
        FLAKE_DIFF=0
    else
        TARGET=$TRAVIS_BRANCH
    fi
else
    if [[ -z $PY_RUNNER ]]; then
        PY_RUNNER="python"
    fi
fi

#
# Main test suite
#

{'fraction_non_alphanumeric': 0.09085439229843562, 'fraction_numerical': 0.0030084235860409147, 'mean_word_length': 2.5686695278969958, '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': '5368329', 'n_tokens_mistral': 577, 'n_tokens_neox': 552, 'n_words': 224}