<commit_before>.PHONY: example

example:
	DJANGO_SETTINGS_MODULE=example.settings \
		django-admin.py runserver<commit_msg>Add Makefile for common tasks.<commit_after>.PHONY: example realtime test coverage flake8

example:
	DJANGO_SETTINGS_MODULE=userlog.example_settings \
		django-admin.py runserver

realtime:
	DJANGO_SETTINGS_MODULE=userlog.example_settings \
		python userlog/realtime.py

test:
	DJANGO_SETTINGS_MODULE=userlog.test_settings \
		django-admin.py test --liveserver=localhost:8040 userlog

coverage:
	coverage erase
	DJANGO_SETTINGS_MODULE=userlog.test_settings \
		coverage run --branch --source=userlog `which django-admin.py` test --liveserver=localhost:8040 userlog
	coverage html

flake8:
	flake8 userlog
{'fraction_non_alphanumeric': 0.07840440165061899, 'fraction_numerical': 0.015130674002751032, 'mean_word_length': 5.803738317757009, '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': '5333037', 'n_tokens_mistral': 267, 'n_tokens_neox': 254, 'n_words': 47}