<commit_before>PIP=venv/bin/pip
MANAGE=venv/bin/python manage.py

setup: venv frigg/settings/local.py
	${PIP} install -r requirements/dev.txt
	${MANAGE} migrate

run:
	${MANAGE} runserver 0.0.0.0:8000

production: venv frigg/settings/local.py
	${PIP} install -r requirements/prod.txt
	${MANAGE} migrate
	bower install
	${MANAGE} collectstatic --noinput
	sudo supervisorctl restart frigg-prod

deploy:
	${PIP} install -r requirements/prod.txt
	${MANAGE} migrate
	bower install
	${MANAGE} collectstatic --noinput
	sudo supervisorctl restart frigg-prod

clean:
	find . -name "*.pyc" -exec rm -rf {} \;

venv:
	virtualenv venv -p `which python3`

load_prod_data:
	scp <EMAIL>:prod-hourly-dump.json .
	python manage.py loaddata prod-hourly-dump.json
	rm hourly-dump.json

frigg/settings/local.py:
	cp frigg/settings/local_dummy.py frigg/settings/local.py

.PHONY: setup run clean production
<commit_msg>Update restart command in make production<commit_after>PIP=venv/bin/pip
MANAGE=venv/bin/python manage.py

setup: venv frigg/settings/local.py
	${PIP} install -r requirements/dev.txt
	${MANAGE} migrate

run:
	${MANAGE} runserver 0.0.0.0:8000

production: venv frigg/settings/local.py
	${PIP} install -r requirements/prod.txt
	${MANAGE} migrate
	bower install
	${MANAGE} collectstatic --noinput
	sudo supervisorctl restart frigg-hq

deploy:
	${PIP} install -r requirements/prod.txt
	${MANAGE} migrate
	bower install
	${MANAGE} collectstatic --noinput
	sudo supervisorctl restart frigg-hq

clean:
	find . -name "*.pyc" -exec rm -rf {} \;

venv:
	virtualenv venv -p `which python3`

load_prod_data:
	scp <EMAIL>:prod-hourly-dump.json .
	python manage.py loaddata prod-hourly-dump.json
	rm hourly-dump.json

frigg/settings/local.py:
	cp frigg/settings/local_dummy.py frigg/settings/local.py

.PHONY: setup run clean production

{'fraction_non_alphanumeric': 0.11978021978021978, 'fraction_numerical': 0.00989010989010989, 'mean_word_length': 4.2936046511627906, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '385531', 'n_tokens_mistral': 700, 'n_tokens_neox': 683, 'n_words': 167}