<commit_before>all:
	make sync
ifdef PRODUCTION
	make prod_serve
else
	ifdef PRELEASE
		make prelease_serve
	else
		make serve
	endif
endif

database:
	#把生产数据库配置复制到指定位置
	# if $SERVERMODE == "PROD" then replace database.ini

sync:
	virtualenv venv
	. venv/bin/activate
	pip install -r pip-req.txt
	deactivate

test:
	. venv/bin/activate
	python -m unittest discover

serve:
	. venv/bin/activate
	python app.py
	
prod_serve:
	. venv/bin/activate
	supervisorctl restart uwsgi_py
	#cat ./../../uwsgi.ini
	#sed -e 's,^chdir.*$$,chdir=$(DEPLOYOUTPUTDIR),g' ./../../uwsgi.ini.default > ./../../uwsgi.ini
	#kill `pidof uwsgi`

prelease_serve:
	. venv/bin/activate
	supervisorctl restart uwsgi_dev_py

clean:
	rm -rf *.pyc
	rm -r venv/<commit_msg>[Fix] again remove deactivate<commit_after>all:
	make sync
ifdef PRODUCTION
	make prod_serve
else
	ifdef PRELEASE
		make prelease_serve
	else
		make serve
	endif
endif

database:
	#把生产数据库配置复制到指定位置
	# if $SERVERMODE == "PROD" then replace database.ini

sync:
	virtualenv venv
	. venv/bin/activate
	pip install -r pip-req.txt

test:
	. venv/bin/activate
	python -m unittest discover

serve:
	. venv/bin/activate
	python app.py
	
prod_serve:
	. venv/bin/activate
	supervisorctl restart uwsgi_py
	#cat ./../../uwsgi.ini
	#sed -e 's,^chdir.*$$,chdir=$(DEPLOYOUTPUTDIR),g' ./../../uwsgi.ini.default > ./../../uwsgi.ini
	#kill `pidof uwsgi`

prelease_serve:
	. venv/bin/activate
	supervisorctl restart uwsgi_dev_py

clean:
	rm -rf *.pyc
	rm -r venv/
{'fraction_non_alphanumeric': 0.12702702702702703, 'fraction_numerical': 0.0, 'mean_word_length': 3.3558823529411765, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2152236', 'n_tokens_mistral': 623, 'n_tokens_neox': 613, 'n_words': 143}