<commit_before>.PHONY: test html counts coverage sdist clean install doc
.DEFAULT: test

test:
	trial --reporter=text test

install:
	python setup.py install

doc: docs/*.rst
	cd docs && make html
	cp dist/txtorcon-0.8.1.tar.gz docs/_build/html
	cp dist/txtorcon-0.7.tar.gz docs/_build/html
	cp dist/txtorcon-0.6.tar.gz.sig docs/_build/html

coverage:
	coverage run --source=txtorcon `which trial` test
	coverage report

# dang, this is a little annoying. maybe add a shell-script which
# looks for "coverage" or "python-coverage"??
coverage-debian:
	python-coverage run --source=txtorcon `which trial` test
	python-coverage report
<commit_msg>automatically output annotated coverage for coverage targets<commit_after>.PHONY: test html counts coverage sdist clean install doc
.DEFAULT: test

test:
	trial --reporter=text test

install:
	python setup.py install

doc: docs/*.rst
	cd docs && make html
	cp dist/txtorcon-0.8.1.tar.gz docs/_build/html
	cp dist/txtorcon-0.7.tar.gz docs/_build/html
	cp dist/txtorcon-0.6.tar.gz.sig docs/_build/html

coverage:
	coverage run --source=txtorcon `which trial` test
	python-coverage -a -d annotated_coverage
	coverage report

# dang, this is a little annoying. maybe add a shell-script which
# looks for "coverage" or "python-coverage"??
coverage-debian:
	python-coverage run --source=txtorcon `which trial` test
	python-coverage -a -d annotated_coverage
	python-coverage report

{'fraction_non_alphanumeric': 0.1014799154334038, 'fraction_numerical': 0.009866102889358703, 'mean_word_length': 4.163636363636364, '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': '5224519', 'n_tokens_mistral': 508, 'n_tokens_neox': 485, 'n_words': 150}