<commit_before>all:	nosetests perltests
more:	really-all
really-all:	nosetests perltests-all

nosetests:
	(cd .. && nosetests3)

perltests: perltests-direct perltests-subprocess perltests-socket1366x
perltests-all: perltests perltests-socket2366x

perltests-direct:
	cd .. && tests/run-online.pl
perltests-subprocess:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i subprocess) || exit 1; done
perltests-socket1366x:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i socket1366x) || exit 1; sleep 1; done
perltests-socket2366x:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i socket2366x) || exit 1; done
<commit_msg>Moved logging failure tests to external tests<commit_after>all:	nosetests perltests loggingtests
more:	really-all
really-all:	nosetests perltests-all

nosetests:
	(cd .. && nosetests3)

perltests: perltests-direct perltests-subprocess perltests-socket1366x
perltests-all: perltests perltests-socket2366x

perltests-direct:
	cd .. && tests/run-online.pl
perltests-subprocess:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i subprocess) || exit 1; done
perltests-socket1366x:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i socket1366x) || exit 1; sleep 1; done
perltests-socket2366x:
	for i in run-online-*.pl; do echo == $$i; (cd .. && tests/$$i socket2366x) || exit 1; done

loggingtests:
# Permission denied
	echo isuser:john.doe:example.org | ../xcauth.py -t generic -l /etc
# No such file or directory
	echo isuser:john.doe:example.org | ../xcauth.py -t generic -l /no/such/file/or/directory

{'fraction_non_alphanumeric': 0.15195460277427492, 'fraction_numerical': 0.03656998738965952, 'mean_word_length': 4.102893890675241, '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': '454696', 'n_tokens_mistral': 641, 'n_tokens_neox': 587, 'n_words': 159}