<commit_before>rst2html=rst2html

all: poni/version.py dist doc readme example-doc

include package.mk

poni/version.py: version.py
	python $< $@

dist: doc readme
	python setup.py sdist

doc:
	(cd doc && make html)

readme: README.html

README.txt: README.html
	lynx $< -dump > $@

README.html: README.rst LICENSE
	$(rst2html) $< $@

example-doc: examples/puppet/README.html examples/db-cluster/README.html

examples/puppet/README.html: examples/puppet/README.rst
	$(rst2html) $< $@

examples/db-cluster/README.html: examples/db-cluster/README.rst
	$(rst2html) $< $@

clean: deb-clean
	$(RM) -r dist/ build/ poni.egg-info/ cover/
	$(RM) poni/version.py poni/*.pyc tests/*.pyc *.pyc README.html README.txt \
		examples/puppet/README.html examples/db-cluster/README.html
	$(RM) ../poni?$(shell git describe)* \
		../poni?$(shell git describe --abbrev=0)-*.tar.gz
	$(MAKE) -C doc clean

build-dep:
	apt-get --yes install python-setuptools python-docutils lynx

test-dep:
	apt-get --yes install pylint nosetests

pylint:
	python -m pylint.lint --rcfile=pylintrc poni/*.py

tests:
	nosetests --processes=2

coverage:
	nosetests --with-coverage --cover-package=poni --cover-html

.PHONY: readme
.PHONY: coverage
.PHONY: tests
.PHONY: dist
.PHONY: doc<commit_msg>makefile: add pep8 target<commit_after>rst2html=rst2html

all: poni/version.py dist doc readme example-doc

include package.mk

poni/version.py: version.py
	python $< $@

dist: doc readme
	python setup.py sdist

doc:
	(cd doc && make html)

readme: README.html

README.txt: README.html
	lynx $< -dump > $@

README.html: README.rst LICENSE
	$(rst2html) $< $@

example-doc: examples/puppet/README.html examples/db-cluster/README.html

examples/puppet/README.html: examples/puppet/README.rst
	$(rst2html) $< $@

examples/db-cluster/README.html: examples/db-cluster/README.rst
	$(rst2html) $< $@

clean: deb-clean
	$(RM) -r dist/ build/ poni.egg-info/ cover/
	$(RM) poni/version.py poni/*.pyc tests/*.pyc *.pyc README.html README.txt \
		examples/puppet/README.html examples/db-cluster/README.html
	$(RM) ../poni?$(shell git describe)* \
		../poni?$(shell git describe --abbrev=0)-*.tar.gz
	$(MAKE) -C doc clean

build-dep:
	apt-get --yes install python-setuptools python-docutils lynx

test-dep:
	apt-get --yes install pylint nosetests

pep8:
	pep8 --ignore=E501 poni/*.py

pylint:
	python -m pylint.lint --rcfile=pylintrc poni/*.py

tests:
	nosetests --processes=2

coverage:
	nosetests --with-coverage --cover-package=poni --cover-html

.PHONY: readme
.PHONY: coverage
.PHONY: tests
.PHONY: dist
.PHONY: doc
{'fraction_non_alphanumeric': 0.15528677331252438, 'fraction_numerical': 0.007803355442840421, 'mean_word_length': 3.713235294117647, 'pattern_counts': {'":': 0, '<': 13, '<?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': '6210285', 'n_tokens_mistral': 1089, 'n_tokens_neox': 1026, 'n_words': 222}