<commit_before>.PHONY: venv install test-install test test-integ test-docker clean nopyc

venv: clean
	@python --version || (echo "Python is not installed, please install Python 2 or Python 3"; exit 1);
	virtualenv --python=python venv

install: venv
	. venv/bin/activate; python setup.py install
	. venv/bin/activate; pip install -r requirements.txt

test-install: install
	. venv/bin/activate; pip install -r test/requirements.txt

test: test-install

test-integ: test
	. venv/bin/activate; coverage run -m unittest discover

version ?= latest
test-docker:
	curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/main/prism/prism.sh -o prism.sh
	version=$(version) bash ./prism.sh

clean: nopyc
	rm -rf venv

nopyc:
	find . -name \*.pyc -delete
<commit_msg>chore: use HEAD to refer to default branch name<commit_after>.PHONY: venv install test-install test test-integ test-docker clean nopyc

venv: clean
	@python --version || (echo "Python is not installed, please install Python 2 or Python 3"; exit 1);
	virtualenv --python=python venv

install: venv
	. venv/bin/activate; python setup.py install
	. venv/bin/activate; pip install -r requirements.txt

test-install: install
	. venv/bin/activate; pip install -r test/requirements.txt

test: test-install

test-integ: test
	. venv/bin/activate; coverage run -m unittest discover

version ?= latest
test-docker:
	curl -s https://raw.githubusercontent.com/sendgrid/sendgrid-oai/HEAD/prism/prism.sh -o prism.sh
	version=$(version) bash ./prism.sh

clean: nopyc
	rm -rf venv

nopyc:
	find . -name \*.pyc -delete

{'fraction_non_alphanumeric': 0.11401273885350319, 'fraction_numerical': 0.003821656050955414, 'mean_word_length': 3.833846153846154, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7399088', 'n_tokens_mistral': 556, 'n_tokens_neox': 536, 'n_words': 166}