<commit_before>#!/bin/bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

set -e

xcd() {
	echo
	echo --- cd $1
	builtin cd $1
}

(xcd lib/strconv
make clean
time make
make test
) || exit $?

(xcd lib/reflect
make clean
time make
make test
) || exit $?

(xcd lib/regexp
make clean
time make
make test
) || exit $?

(xcd ../usr/gri/gosrc
make clean
time make
# make test
) || exit $?

(xcd ../usr/gri/pretty
make clean
time make
make smoketest
) || exit $?

(xcd ../test
./run
) || exit $?
<commit_msg>add math to tests; clean a bit<commit_after>#!/bin/bash
# Copyright 2009 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.

set -e

xcd() {
	echo
	echo --- cd $1
	builtin cd $1
}

maketest() {
	for i
	do
		(
			xcd $i
			make clean
			time make
			make test
		) || exit $?
	done
}

maketest \
	lib/math\
	lib/reflect\
	lib/regexp\
	lib/strconv\

# all of these are subtly different
# from what maketest does.

(xcd ../usr/gri/pretty
make clean
time make
make smoketest
) || exit $?

(xcd ../usr/gri/gosrc
make clean
time make
# make test
) || exit $?

(xcd ../test
./run
) || exit $?

{'fraction_non_alphanumeric': 0.12538940809968846, 'fraction_numerical': 0.009345794392523364, 'mean_word_length': 2.768328445747801, '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': '2676375', 'n_tokens_mistral': 523, 'n_tokens_neox': 490, 'n_words': 182}