<commit_before>version:
	@python -c "from txaws import version;print version.txaws;"


clean:
	find ./ -name "*~" -exec rm {} \;
	find ./ -name "*.pyc" -exec rm {} \;
	find ./ -name "*.pyo" -exec rm {} \;
	find . -name "*.sw[op]" -exec rm {} \;
	rm -rf _trial_temp/ build/ dist/ MANIFEST *.egg-info


build:
	@python setup.py build
	@python setup.py sdist


virtual-dir-setup: VERSION ?= 2.5
virtual-dir-setup:
	-@test -d .venv-$(VERSION) || virtualenv -p Python$(VERSION) .venv-$(VERSION)
	-@test -e .venv-$(VERSION)/bin/twistd || . .venv-$(VERSION)/bin/activate && pip install twisted
	-@test -e .venv-$(VERSION)/bin/pep8 || . .venv-$(VERSION)/bin/activate && pip install pep8
	-@test -e .venv-$(VERSION)/bin/pyflakes || . .venv-$(VERSION)/bin/activate && pip install pyflakes
	-. .venv-$(VERSION)/bin/activate && pip install lxml
	-. .venv-$(VERSION)/bin/activate && pip install PyOpenSSL
	-. .venv-$(VERSION)/bin/activate && pip install venusian
	-. .venv-$(VERSION)/bin/activate && pip install http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz


virtual-dir-remove: VERSION ?= 2.5
virtual-dir-remove:
	rm -rfv .venv-$(VERSION)


virtual-builds:
	-@test -e "`which python2.5`" && VERSION=2.5 make virtual-dir-setup || echo "Couldn't find Python2.5"
	-@test -e "`which python2.6`" && VERSION=2.6 make virtual-dir-setup || echo "Couldn't find Python2.6"
	-@test -e "`which python2.7`" && VERSION=2.7 make virtual-dir-setup || echo "Couldn't find Python2.7"


virtual-check: VERSION ?= 2.5
virtual-check:
	-. .venv-$(VERSION)/bin/activate && trial ./txaws
	-. .venv-$(VERSION)/bin/activate && pep8 ./txaws
	-. .venv-$(VERSION)/bin/activate && pyflakes ./txaws


virtual-checks: virtual-builds
	-@test -e "`which python2.5`" && VERSION=2.5 make virtual-check
	-@test -e "`which python2.6`" && VERSION=2.6 make virtual-check
	-@test -e "`which python2.7`" && VERSION=2.7 make virtual-check


clean-virtual-builds: clean
	@VERSION=2.5 make virtual-dir-remove
	@VERSION=2.6 make virtual-dir-remove
	@VERSION=2.7 make virtual-dir-remove


virtual-build-clean: clean-virt build virtual-build
.PHONY: virtual-build-clean


check: MOD ?= txaws
check: build sdist
	trial ./txaws


build-docs:
	cd docs/sphinx; make html


register:
	python setup.py register


upload: check
	python setup.py sdist upload --show-response


upload-docs: build-docs
	python setup.py upload_docs --upload-dir=docs/html/
<commit_msg>Split out virtual check into additional make targets for easy checking of pep8 and pyflakes on all virtual env versions.<commit_after>version:
	@python -c "from txaws import version;print version.txaws;"


clean:
	find ./ -name "*~" -exec rm {} \;
	find ./ -name "*.pyc" -exec rm {} \;
	find ./ -name "*.pyo" -exec rm {} \;
	find . -name "*.sw[op]" -exec rm {} \;
	rm -rf _trial_temp/ build/ dist/ MANIFEST *.egg-info


build:
	@python setup.py build
	@python setup.py sdist


virtual-dir-setup: VERSION ?= 2.5
virtual-dir-setup:
	-@test -d .venv-$(VERSION) || virtualenv -p Python$(VERSION) .venv-$(VERSION)
	-@test -e .venv-$(VERSION)/bin/twistd || . .venv-$(VERSION)/bin/activate && pip install twisted
	-@test -e .venv-$(VERSION)/bin/pep8 || . .venv-$(VERSION)/bin/activate && pip install pep8
	-@test -e .venv-$(VERSION)/bin/pyflakes || . .venv-$(VERSION)/bin/activate && pip install pyflakes
	-. .venv-$(VERSION)/bin/activate && pip install lxml
	-. .venv-$(VERSION)/bin/activate && pip install PyOpenSSL
	-. .venv-$(VERSION)/bin/activate && pip install venusian
	-. .venv-$(VERSION)/bin/activate && pip install http://labix.org/download/python-dateutil/python-dateutil-1.5.tar.gz


virtual-dir-remove: VERSION ?= 2.5
virtual-dir-remove:
	rm -rfv .venv-$(VERSION)


virtual-builds:
	-@test -e "`which python2.5`" && VERSION=2.5 make virtual-dir-setup || echo "Couldn't find Python2.5"
	-@test -e "`which python2.6`" && VERSION=2.6 make virtual-dir-setup || echo "Couldn't find Python2.6"
	-@test -e "`which python2.7`" && VERSION=2.7 make virtual-dir-setup || echo "Couldn't find Python2.7"


virtual-trial: VERSION ?= 2.5
virtual-trial:
	. .venv-$(VERSION)/bin/activate && trial ./txaws


virtual-pep8: VERSION ?= 2.5
virtual-pep8:
	-. .venv-$(VERSION)/bin/activate && pep8 ./txaws


virtual-pyflakes: VERSION ?= 2.5
virtual-pyflakes:
	-. .venv-$(VERSION)/bin/activate && pyflakes ./txaws


virtual-check: VERSION ?= 2.5
virtual-check:
	-VERSION=$(VERSION) make virtual-trial
	-VERSION=$(VERSION) make virtual-pep8
	-VERSION=$(VERSION) make virtual-pyflakes


virtual-checks: virtual-builds
	-@test -e "`which python2.5`" && VERSION=2.5 make virtual-check
	-@test -e "`which python2.6`" && VERSION=2.6 make virtual-check
	-@test -e "`which python2.7`" && VERSION=2.7 make virtual-check


clean-virtual-builds: clean
	@VERSION=2.5 make virtual-dir-remove
	@VERSION=2.6 make virtual-dir-remove
	@VERSION=2.7 make virtual-dir-remove


virtual-build-clean: clean-virt build virtual-build
.PHONY: virtual-build-clean


check: MOD ?= txaws
check: build sdist
	trial ./txaws


build-docs:
	cd docs/sphinx; make html


register:
	python setup.py register


upload: check
	python setup.py sdist upload --show-response


upload-docs: build-docs
	python setup.py upload_docs --upload-dir=docs/html/

{'fraction_non_alphanumeric': 0.1773049645390071, 'fraction_numerical': 0.019934828445466745, 'mean_word_length': 3.4828178694158076, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2686740', 'n_tokens_mistral': 1992, 'n_tokens_neox': 1935, 'n_words': 468}