<commit_before>
NAME := iddocs
VERSION := v0.0.5

PYTHON=venv/bin/python

.PHONY: createsuperuser freeze genkey makemigrations migrate serve shell test dist release stage prod

createsuperuser: venv
	$(PYTHON) manage.py createsuperuser

freeze: venv
	pip freeze > requirements.txt

genkey: venv
	@$(PYTHON) -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))]))"

makemigrations: venv
	$(PYTHON) manage.py makemigrations

migrate: venv
	$(PYTHON) manage.py migrate

serve: venv
	$(PYTHON) manage.py runserver

shell: venv
	$(PYTHON) manage.py shell

# TODO(gina) figure out how to get this working again.  It stopped working when I switched to mysql
test: venv
	$(PYTHON) manage.py test

dist: venv<commit_msg>bump version<commit_after>
NAME := iddocs
VERSION := v0.0.6

PYTHON=venv/bin/python

.PHONY: createsuperuser freeze genkey makemigrations migrate serve shell test dist release stage prod

createsuperuser: venv
	$(PYTHON) manage.py createsuperuser

freeze: venv
	pip freeze > requirements.txt

genkey: venv
	@$(PYTHON) -c "import string,random; uni=string.ascii_letters+string.digits+string.punctuation; print repr(''.join([random.SystemRandom().choice(uni) for i in range(random.randint(45,50))]))"

makemigrations: venv
	$(PYTHON) manage.py makemigrations

migrate: venv
	$(PYTHON) manage.py migrate

serve: venv
	$(PYTHON) manage.py runserver

shell: venv
	$(PYTHON) manage.py shell

# TODO(gina) figure out how to get this working again.  It stopped working when I switched to mysql
test: venv
	$(PYTHON) manage.py test

dist: venv
{'fraction_non_alphanumeric': 0.10784901138406232, 'fraction_numerical': 0.008388256440982624, 'mean_word_length': 5.374045801526718, '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': '1472842', 'n_tokens_mistral': 613, 'n_tokens_neox': 592, 'n_words': 172}