<commit_before>#! /bin/sh

set -eu

. `dirname $0`/utils.sh

main() {
	while getopts x name
	do
		case $name in
			x) set -x;;
			?) usage
		esac
	done

	shift $((OPTIND - 1))

	DBFILE=/tmp/test.rrd
	BASEDIR=/tmp/rrdtool_tests/`get_cur_version`

	OUTDIR=$BASEDIR/out
	LOGDIR=$BASEDIR/log
	for i in $OUTDIR $LOGDIR; do
		test -d $i || mkdir $i -p
	done

	for i in `dirname $0`/*\.test_*.sh; do
		run $i
	done
}

main $@<commit_msg>make sure we start over again<commit_after>#! /bin/sh

set -eu

. `dirname $0`/utils.sh

main() {
	while getopts x name
	do
		case $name in
			x) set -x;;
			?) usage
		esac
	done

	shift $((OPTIND - 1))

	DBFILE=/tmp/test.rrd
	BASEDIR=/tmp/rrdtool_tests/`get_cur_version`

	OUTDIR=$BASEDIR/out
	LOGDIR=$BASEDIR/log
	for i in $OUTDIR $LOGDIR; do
		test -d $i || mkdir $i -p
	done
	test -f $DBFILE && rm $DBFILE

	for i in `dirname $0`/*\.test_*.sh; do
		run $i
	done
}

main $@
{'fraction_non_alphanumeric': 0.15766262403528114, 'fraction_numerical': 0.006615214994487321, 'mean_word_length': 2.783333333333333, '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': '1701958', 'n_tokens_mistral': 437, 'n_tokens_neox': 408, 'n_words': 112}