<commit_before>.PHONY: build test serve

build: deps serve

clean:
	#noop

deps:
	rm -rf ${HOME}/.virtualenv
	which python3
	virtualenv -p `which python3` "${HOME}/.virtualenv"
	pip3 install -U -r `pwd`/requirements.txt

test:
	py.test tests/
	nginx -t -c `pwd`/conf/nginx.conf

serve: stop
	rm -f /tmp/www
	ln -s `pwd`/www /tmp/www
	nginx -c `pwd`/conf/nginx.conf

stop:
	nginx -c `pwd`/conf/nginx.conf -s stop

reload:
	nginx -c `pwd`/conf/nginx.conf -s reload<commit_msg>make serve: Don't stop beforehand.<commit_after>.PHONY: build test serve

build: deps serve

clean:
	#noop

deps:
	rm -rf ${HOME}/.virtualenv
	which python3
	virtualenv -p `which python3` "${HOME}/.virtualenv"
	pip3 install -U -r `pwd`/requirements.txt

test:
	py.test tests/
	nginx -t -c `pwd`/conf/nginx.conf

serve:
	rm -f /tmp/www
	ln -s `pwd`/www /tmp/www
	nginx -c `pwd`/conf/nginx.conf
	# server may be up and running now

stop:
	nginx -c `pwd`/conf/nginx.conf -s stop

reload:
	nginx -c `pwd`/conf/nginx.conf -s reload
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.006, 'mean_word_length': 3.1708333333333334, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4052365', 'n_tokens_mistral': 446, 'n_tokens_neox': 437, 'n_words': 121}