<commit_before>venv=.nova-venv
with_venv=tools/with_venv.sh

build:
	# Nothing to do

test: $(venv)
	$(with_venv) python run_tests.py

test-system:
	python run_tests.py

clean:
	rm -rf _trial_temp
	rm -rf keys
	rm -rf instances
	rm -rf networks
	rm -f run_tests.err.log

clean-all: clean
	rm -rf $(venv)

$(venv):
	@echo "You need to install the Nova virtualenv before you can run this."
	@echo ""
	@echo "Please run tools/install_venv.py"
	@exit 1<commit_msg>Make "make test" detect whether to use virtualenv or not, thus making virtualenv optional.<commit_after>venv=.nova-venv
with_venv=tools/with_venv.sh

build:
	# Nothing to do

default_test_type:= $(shell if [ -e $(venv) ]; then echo venv; else echo system; fi)

test: test-$(default_test_type)

test-venv: $(venv)
	$(with_venv) python run_tests.py

test-system:
	python run_tests.py

clean:
	rm -rf _trial_temp
	rm -rf keys
	rm -rf instances
	rm -rf networks
	rm -f run_tests.err.log

clean-all: clean
	rm -rf $(venv)

$(venv):
	@echo "You need to install the Nova virtualenv before you can run this."
	@echo ""
	@echo "Please run tools/install_venv.py"
	@exit 1
{'fraction_non_alphanumeric': 0.1159678858162355, 'fraction_numerical': 0.001784121320249777, 'mean_word_length': 3.9646017699115044, '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': '268924', 'n_tokens_mistral': 444, 'n_tokens_neox': 436, 'n_words': 138}