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

test:
	trial --reporter=text txtorcon.test

install:
	python setup.py install

docs/README.rst: README
	pandoc -r markdown -w rst README -o docs/README.rst

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

coverage:
	trial --reporter=bwverbose --coverage txtorcon
	python scripts/coverage.py

pep8:
	find txtorcon/*.py txtorcon/test/*.py | xargs pep8 --ignore=E501

pep8count:
	find txtorcon/*.py txtorcon/test/*.py | xargs pep8 --ignore=E501 | wc -l

pyflakes:
	pyflakes txtorcon

pyflakescount:
	pyflakes txtorcon | wc -l

clean:
	-rm -rf _trial_temp
	-rm -rf build
	-rm -rf dist
	-rm -rf html
	-rm MANIFEST
	-rm `find . -name \*.py[co]`
	-cd docs && make clean

counts:
	ohcount -s txtorcon/*.py

dist: dist/txtorcon-0.7.tar.gz.sig

sdist: setup.py 
	python setup.py sdist

dist/txtorcon-0.7.tar.gz: sdist
dist/txtorcon-0.7.tar.gz.sig: dist/txtorcon-0.7.tar.gz
	gpg --verify dist/txtorcon-0.7.tar.gz.sig || gpg --no-version --detach-sig -u <EMAIL> dist/txtorcon-0.7.tar.gz

release: dist/txtorcon-0.7.tar.gz.sig setup.py
	python setup.py sdist upload

html: docs/README.rst
	cd docs && make html
<commit_msg>Add examples to stylechecking<commit_after>.PHONY: test html counts coverage sdist clean install doc
.DEFAULT: test

test:
	trial --reporter=text txtorcon.test

install:
	python setup.py install

docs/README.rst: README
	pandoc -r markdown -w rst README -o docs/README.rst

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

coverage:
	trial --reporter=bwverbose --coverage txtorcon
	python scripts/coverage.py

pep8:
	find txtorcon/*.py txtorcon/test/*.py examples/*.py | xargs pep8 --ignore=E501

pep8count:
	find txtorcon/*.py txtorcon/test/*.py examples/* | xargs pep8 --ignore=E501 | wc -l

pyflakes:
	pyflakes txtorcon examples

pyflakescount:
	pyflakes txtorcon examples | wc -l

clean:
	-rm -rf _trial_temp
	-rm -rf build
	-rm -rf dist
	-rm -rf html
	-rm MANIFEST
	-rm `find . -name \*.py[co]`
	-cd docs && make clean

counts:
	ohcount -s txtorcon/*.py

dist: dist/txtorcon-0.7.tar.gz.sig

sdist: setup.py 
	python setup.py sdist

dist/txtorcon-0.7.tar.gz: sdist
dist/txtorcon-0.7.tar.gz.sig: dist/txtorcon-0.7.tar.gz
	gpg --verify dist/txtorcon-0.7.tar.gz.sig || gpg --no-version --detach-sig -u <EMAIL> dist/txtorcon-0.7.tar.gz

release: dist/txtorcon-0.7.tar.gz.sig setup.py
	python setup.py sdist upload

html: docs/README.rst
	cd docs && make html

{'fraction_non_alphanumeric': 0.13481036425084492, 'fraction_numerical': 0.021028914757791964, 'mean_word_length': 3.235294117647059, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6994942', 'n_tokens_mistral': 1174, 'n_tokens_neox': 1126, 'n_words': 273}