<commit_before>TEST_DIRS = \
	test.config \
	test.data.fetch

.PHONY: all run tests

all:	tests run

run:
	@echo -n "[run]: "
	python3 main.py --log=debug
	@echo ""

tests:
	@echo -n "[tests]: "
	$(foreach dir, $(TEST_DIRS), python3 -m unittest discover $(dir);)
	@echo ""
<commit_msg>Fix Makefile to run unit tests correctly.<commit_after>TEST_DIRS = \
	test.config \
	test.data.fetch

.PHONY: all run unittests

all:	unittests run

run:
	@echo -n "[run]: "
	python3 main.py --log=debug
	@echo ""

unittests:	$(TEST_DIRS)
	@echo "Unit tests: SUCCESS"

test%:
	@echo -n "[unittest]: "
	python3 -m unittest discover $@
	@echo ""

{'fraction_non_alphanumeric': 0.1624203821656051, 'fraction_numerical': 0.006369426751592357, 'mean_word_length': 3.591240875912409, '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': '6751096', 'n_tokens_mistral': 260, 'n_tokens_neox': 258, 'n_words': 70}