<commit_before>
.PHONY: update_docs clean

default:
	@echo Default target not defined. Check the Makefile for targets.

setup:
	virtualenv env
	source env/bin/activate
	pip install -r requirements_dev.txt
	python setup.py develop


clean:
	python setup.py clean
	rm -rf build/ dist/ *.egg-info
	find modelmanager -name \*.pyc -delete


# working dir should be clean (git)
update_docs:
	# build the docs
	cd docs && make clean && make html
<commit_msg>Add make target to bump version and release (incomplete).<commit_after>
.PHONY: update_docs clean

default:
	@echo Default target not defined. Check the Makefile for targets.

setup:
	virtualenv env
	source env/bin/activate
	pip install -r requirements_dev.txt
	python setup.py develop


clean:
	python setup.py clean
	rm -rf build/ dist/ *.egg-info
	find modelmanager -name \*.pyc -delete

version:
	@git diff --name-only | if grep -q CHANGELOG.md; then \
	@prev=`python -c 'import modelmanager; print(modelmanager.__version__)'` ;\
	echo Old version: $$prev ;\
	read -p "New version number: " new; \
	for f in `grep -rlI $$prev modelmanager README.md docs`; do \
		sed -i.backup "s/$$prev/$$new/g" $$f ; rm -r $$f.backup ; done ; \
	git commit -a -m "Bumped version $$prev > $$new ." ; \
	git tag $$new ; \
	else echo "You need to add an entry in CHANGELOG.md" ; fi

release:
	# not working yet
	python setup.py sdist
	git push --tags

# working dir should be clean (git)
update_docs:
	# build the docs
	cd docs && make clean && make html

{'fraction_non_alphanumeric': 0.11058981233243968, 'fraction_numerical': 0.0, 'mean_word_length': 3.4041297935103243, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '7667798', 'n_tokens_mistral': 519, 'n_tokens_neox': 501, 'n_words': 196}