<commit_before>#!/usr/bin/env bash

NEED_SPLINT='00-lint.tpkg'
NEED_DOXYGEN='01-doc.tpkg'

cd testdata;
for test in `ls *.tpkg`; do
	SKIP=0
	if echo $NEED_SPLINT | grep $test >/dev/null; then
		if which splint >/dev/null 2>&1; then
			:
		else
			SKIP=1;
		fi
	fi
	if echo $NEED_DOXYGEN | grep $test >/dev/null; then
		if which doxygen >/dev/null 2>&1; then
			:
		else
			SKIP=1;
		fi
	fi
	if test $SKIP -eq 0; then
		echo $test
		tpkg -a ../.. exe $test
	else
		echo "skip $test"
	fi
done<commit_msg>Nicer code that checks correctly for needed programs..<commit_after>#!/usr/bin/env bash

NEED_SPLINT='00-lint.tpkg'
NEED_DOXYGEN='01-doc.tpkg'

cd testdata;
for test in `ls *.tpkg`; do
	SKIP=0
	if echo $NEED_SPLINT | grep $test >/dev/null; then
		if test ! -x "`which splint`"; then
			SKIP=1;
		fi
	fi
	if echo $NEED_DOXYGEN | grep $test >/dev/null; then
		if test ! -x "`which doxygen`"; then
			SKIP=1;
		fi
	fi
	if test $SKIP -eq 0; then
		echo $test
		tpkg -a ../.. exe $test
	else
		echo "skip $test"
	fi
done
{'fraction_non_alphanumeric': 0.1415929203539823, 'fraction_numerical': 0.01966568338249754, 'mean_word_length': 2.9153846153846152, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '4186743', 'n_tokens_mistral': 504, 'n_tokens_neox': 453, 'n_words': 134}