<commit_before>BIN ?= env/bin

.PHONY: all test cover style

all: env/.state

test: cover style

env/.state: requirements.txt requirements_dev.txt
	if [ -f $@ ]; then \
		$(BIN)/pip install --pre -rrequirements.txt -rrequirements_dev.txt; \
		touch $@; \
	else \
		rm -fr env; \
		virtualenv -ppython3 env; \
		$(BIN)/pip install --pre -rrequirements.txt -rrequirements_dev.txt; \
		touch $@; \
	fi

cover: env/.state
	$(BIN)/coverage run --source='tictactoe' -m tictactoe.manage test --noinput
	$(BIN)/coverage xml -o .coverage.xml
	$(BIN)/coverage html -d .htmlcov
	echo "  See .htmlcov/index.html for coverage report"

style: env/.state
	$(BIN)/flake8 --exclude=migrations tictactoe setup.py<commit_msg>Add 'clean' for dev environment cleanup<commit_after>BIN ?= env/bin

.PHONY: all test cover style clean

all: env/.setup_done

test: cover style

env/.setup_done: requirements.txt requirements_dev.txt
	if [ -f $@ ]; then \
		$(BIN)/pip install --pre -rrequirements.txt -rrequirements_dev.txt; \
		touch $@; \
	else \
		rm -fr env; \
		virtualenv -ppython3 env; \
		$(BIN)/pip install --pre -rrequirements.txt -rrequirements_dev.txt; \
		touch $@; \
	fi

cover: env/.setup_done
	$(BIN)/coverage run --source='tictactoe' -m tictactoe.manage test --noinput
	$(BIN)/coverage xml -o .coverage.xml
	$(BIN)/coverage html -d .htmlcov
	echo "  See .htmlcov/index.html for coverage report"

style: env/.setup_done
	$(BIN)/flake8 --exclude=migrations tictactoe setup.py

clean:
	rm -fr env
{'fraction_non_alphanumeric': 0.14824797843665768, 'fraction_numerical': 0.0026954177897574125, 'mean_word_length': 3.291907514450867, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '2413328', 'n_tokens_mistral': 569, 'n_tokens_neox': 542, 'n_words': 143}