<commit_before>
# the python interpreter
#PYTHON=python
PYTHON=pypy

# the libuv directory
LIBUV_DIR=libuv


##############################
# building
##############################

all: build

.PHONY: build
build: setup.py
	@echo ">>> Building up..."
	$(PYTHON) setup.py build

##############################
# testing
##############################

.PHONY: tests
tests: test
test:
	@echo ">>> Running all tests..."
	@PYTHONPATH=`pwd` nosetests -v

##############################
# cleaning
##############################

clean:
	@echo ">>> Cleaning up..."
	rm -rf build dist
	rm -rf *.egg-info __pycache__
	rm -rf Library
	rm -f `find . -name '*.pyc'`
	rm -rf `find . -name '__pycache__'`
	make -C doc  clean

distclean: clean

##############################
# documentations
##############################

.PHONY: doc
doc: docs

docs: docs-html

docs-html: all
	@echo ">>> Making HTML documentation..."
	LANG=en_US.UTF-8  LC_ALL=en_US.UTF-8  make -C doc html

##############################
# redistribution
##############################

redist: dist

.PHONY: dist
dist:
	@echo ">>> Making redistributable package..."
	$(PYTHON) setup.py bdist
	@echo ">>> redistributable package left in dist/"

dist-debug: clean
	DISTUTILS_DEBUG=1 make dist

sdist:
	@echo ">>> Making redistributable sources package..."
	$(PYTHON) setup.py sdist
	@echo ">>> redistributable package left in dist/"

sdist-debug: clean
	DISTUTILS_DEBUG=1 make sdist

sdist-upload: sdist
	@echo ">>> Uploading redistributable sources package to PyPI..."
	$(PYTHON) setup.py sdist upload

sdist-register: sdist
	@echo ">>> Registering package at PyPI..."
	$(PYTHON) setup.py register
<commit_msg>Skip performance tests<commit_after>
# the python interpreter
#PYTHON=python
PYTHON=pypy

# the libuv directory
LIBUV_DIR=libuv


##############################
# building
##############################

all: build

.PHONY: build
build: setup.py
	@echo ">>> Building up..."
	$(PYTHON) setup.py build

##############################
# testing
##############################

.PHONY: tests
tests: test
test:
	@echo ">>> Running all tests..."
	@PYTHONPATH=`pwd` nosetests -v -a '!perf' -w tests

##############################
# cleaning
##############################

clean:
	@echo ">>> Cleaning up..."
	rm -rf build dist
	rm -rf *.egg-info __pycache__
	rm -rf Library
	rm -f `find . -name '*.pyc'`
	rm -rf `find . -name '__pycache__'`
	make -C doc  clean

distclean: clean

##############################
# documentations
##############################

.PHONY: doc
doc: docs

docs: docs-html

docs-html: all
	@echo ">>> Making HTML documentation..."
	LANG=en_US.UTF-8  LC_ALL=en_US.UTF-8  make -C doc html

##############################
# redistribution
##############################

redist: dist

.PHONY: dist
dist:
	@echo ">>> Making redistributable package..."
	$(PYTHON) setup.py bdist
	@echo ">>> redistributable package left in dist/"

dist-debug: clean
	DISTUTILS_DEBUG=1 make dist

sdist:
	@echo ">>> Making redistributable sources package..."
	$(PYTHON) setup.py sdist
	@echo ">>> redistributable package left in dist/"

sdist-debug: clean
	DISTUTILS_DEBUG=1 make sdist

sdist-upload: sdist
	@echo ">>> Uploading redistributable sources package to PyPI..."
	$(PYTHON) setup.py sdist upload

sdist-register: sdist
	@echo ">>> Registering package at PyPI..."
	$(PYTHON) setup.py register

{'fraction_non_alphanumeric': 0.29118432769367764, 'fraction_numerical': 0.0023745918670228555, 'mean_word_length': 4.644891122278057, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 63, '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': '3149128', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1109, 'n_words': 314}