<commit_before>PROJECT=./example_project
MANAGE=python $(PROJECT)/manage.py

help:
	@echo "make commands:"
	@echo "  make help    - this help"
	@echo "  make clean   - remove temporary files in .gitignore"
	@echo "  make test    - run test suite"
	@echo "  make resetdb - drop and recreate the database"
	@echo "  make release - publish a new release"


clean:
	find -name "*.pyc" -delete
	find . -name ".DS_Store" -delete
	rm -rf MANIFEST
	rm -rf build
	rm -rf dist
	rm -rf *.egg-info


test:
	ENVIRONMENT=test $(MANAGE) test wjordpress

coverage:
	coverage erase
	ENVIRONMENT=test coverage run $(PROJECT)/manage.py test wjordpress
	coverage report


resetdb:
	$(MANAGE) sqlclear wjordpress | $(MANAGE) dbshell
	$(MANAGE) syncdb --noinput


heroku_resetdb:
	heroku pg:reset database --confirm wjordpress
	heroku run python example_project/manage.py syncdb


# remember you need `pip install wheel`
release:
	python setup.py sdist bdist_wheel upload


.PHONY: help clean test resetdb release<commit_msg>tweak makefile because of reasons<commit_after>PROJECT=./example_project
MANAGE=python $(PROJECT)/manage.py

help:
	@echo "make commands:"
	@echo "  make help     - this help"
	@echo "  make clean    - remove temporary files in .gitignore"
	@echo "  make test     - run test suite"
	@echo "  make coverage - run coverage"
	@echo "  make resetdb  - drop and recreate the database"
	@echo "  make release  - publish a new release"


clean:
	find . -name "*.pyc" -delete
	find . -name ".DS_Store" -delete
	rm -rf MANIFEST
	rm -rf build
	rm -rf dist
	rm -rf htmlcov
	rm -rf *.egg-info
	coverage erase


test:
	ENVIRONMENT=test $(MANAGE) test wjordpress

coverage:
	coverage erase
	ENVIRONMENT=test coverage run $(PROJECT)/manage.py test wjordpress
	coverage report


resetdb:
	$(MANAGE) sqlclear wjordpress | $(MANAGE) dbshell
	$(MANAGE) syncdb --noinput


heroku_resetdb:
	heroku pg:reset database --confirm wjordpress
	heroku run python example_project/manage.py syncdb


# remember you need `pip install wheel`
release:
	python setup.py sdist bdist_wheel upload
{'fraction_non_alphanumeric': 0.09500727096461464, 'fraction_numerical': 0.0, 'mean_word_length': 3.701594533029613, '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': '6447722', 'n_tokens_mistral': 737, 'n_tokens_neox': 720, 'n_words': 239}