<commit_before>PYTEST?=py.test
PYTEST_OPTIONS+=-v -s

.PHONY: update test

all: update

setup: submodule
	mkdir -p ./pacman/{cache,log}
	mkdir -p ./pacman/arch/{i686,x86_64}/db
	./db_create

submodule:
	git submodule update --recursive --init --rebase

update: setup
	./update

test: setup
	PYTHONPATH=".:${PYTHONPATH}" ${PYTEST} test ${PYTEST_OPTIONS}
<commit_msg>test: allow passing PYTEST_INPUT to make test call<commit_after>PYTEST?=py.test
PYTEST_OPTIONS+=-v -s
PYTEST_INPUT=test

.PHONY: update test

all: update

setup: submodule
	mkdir -p ./pacman/{cache,log}
	mkdir -p ./pacman/arch/{i686,x86_64}/db
	./db_create

submodule:
	git submodule update --recursive --init --rebase

update: setup
	./update

test: setup
	PYTHONPATH=".:${PYTHONPATH}" ${PYTEST} ${PYTEST_INPUT} ${PYTEST_OPTIONS}

{'fraction_non_alphanumeric': 0.14949748743718594, 'fraction_numerical': 0.017587939698492462, 'mean_word_length': 4.348993288590604, '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': '2024321', 'n_tokens_mistral': 333, 'n_tokens_neox': 314, 'n_words': 74}