<commit_before>#!/bin/bash -e

./git_all.sh checkout master
./git_all.sh checkout $TRAVIS_BRANCH

if [ "$(basename $TRAVIS_REPO_SLUG)" == "$ANGR_REPO" ]
then
	COVERAGE="--with-coverage --cover-package=$ANGR_REPO --cover-erase"
fi

NOSE_OPTIONS="-v --nologcapture --with-timer $COVERAGE --processes=2 --process-restartworker"

cd $ANGR_REPO
if [ -f "test.py" ]
then
	nosetests $NOSE_OPTIONS test.py
elif [ -d "tests" ]
then
	nosetests $NOSE_OPTIONS tests/
else
	echo "### No tests for repository $ANGR_REPO?"<commit_msg>set a process timeout to ensure that travis doesn't time us out<commit_after>#!/bin/bash -e

./git_all.sh checkout master
./git_all.sh checkout $TRAVIS_BRANCH

if [ "$(basename $TRAVIS_REPO_SLUG)" == "$ANGR_REPO" ]
then
	COVERAGE="--with-coverage --cover-package=$ANGR_REPO --cover-erase"
fi

NOSE_OPTIONS="-v --nologcapture --with-timer $COVERAGE --processes=2 --process-timeout=570 --process-restartworker"

cd $ANGR_REPO
if [ -f "test.py" ]
then
	nosetests $NOSE_OPTIONS test.py
elif [ -d "tests" ]
then
	nosetests $NOSE_OPTIONS tests/
else
	echo "### No tests for repository $ANGR_REPO?"
{'fraction_non_alphanumeric': 0.15045045045045044, 'fraction_numerical': 0.0045045045045045045, 'mean_word_length': 4.393203883495145, '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': '6150198', 'n_tokens_mistral': 451, 'n_tokens_neox': 439, 'n_words': 103}