<commit_before>.PHONY: clean-pyc clean-build docs clean

help:
	@echo "clean-all - clean everything; effectively resets repo as if it was just checked out"
	@echo "clean - remove build, test, coverage and Python artifacts except for the cache Presto RPM"
	@echo "clean-eggs - remove *.egg and *.egg-info files and directories"
	@echo "clean-build - remove build artifacts"
	@echo "clean-pyc - remove Python file artifacts"
	@echo "clean-test - remove test and coverage artifacts"
	@echo "lint - check style with flake8"
	@echo "test - run tests quickly with the default Python"
	@echo "test-all - run tests on every Python version with tox"
	@echo "coverage - check code coverage quickly with the default Python"
	@echo "docs - generate Sphinx HTML documentation, including API docs"
	@echo "release - package and upload a release"
	@echo "dist - package and build installer that can be used offline"
	@echo "dist-online - package and build installer that requires an Internet connection"
	@echo "wheel - build wheel only"
	@echo "install - install the package to the active Python's site-packages"

clean-all: clean
	rm -rf tmp/
	rm -f presto*.rpm

clean: clean-build clean-pyc clean-test clean-eggs

clean-eggs:
	rm -fr .eggs/
	find . -name '*.egg-info' -exec rm -fr {} +
	find . -name '*.egg' -type f -exec rm -rf {} +
	find . -name '*.egg' -type d -exec rm -rf {} +

clean-build:
	rm -fr build/
	rm -fr dist/

clean-pyc:
	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +
	find . -name '__pycache__' -exec rm -fr {} +

clean-test:
	rm -fr .tox/
	rm -f .coverage
	rm -fr htmlcov/
	docker rmi -f teradatalabs/centos-presto-test-master teradatalabs/centos-presto-test-slave || true
	echo "Note: The above command is just cleaning up a Docker image that may not exit. If the command fails, it is not a problem."

lint:
	flake8 prestoadmin packaging tests

system-test:
	python setup.py test -s tests.product

test:
	python setup.py test -s tests.unit
	python setup.py test -s tests.integration

test-all:<commit_msg>pa-tests: run clean-test before running tests<commit_after>.PHONY: clean-pyc clean-build docs clean

help:
	@echo "clean-all - clean everything; effectively resets repo as if it was just checked out"
	@echo "clean - remove build, test, coverage and Python artifacts except for the cache Presto RPM"
	@echo "clean-eggs - remove *.egg and *.egg-info files and directories"
	@echo "clean-build - remove build artifacts"
	@echo "clean-pyc - remove Python file artifacts"
	@echo "clean-test - remove test and coverage artifacts"
	@echo "lint - check style with flake8"
	@echo "test - run tests quickly with the default Python"
	@echo "test-all - run tests on every Python version with tox"
	@echo "coverage - check code coverage quickly with the default Python"
	@echo "docs - generate Sphinx HTML documentation, including API docs"
	@echo "release - package and upload a release"
	@echo "dist - package and build installer that can be used offline"
	@echo "dist-online - package and build installer that requires an Internet connection"
	@echo "wheel - build wheel only"
	@echo "install - install the package to the active Python's site-packages"

clean-all: clean
	rm -f presto*.rpm

clean: clean-build clean-pyc clean-test clean-eggs

clean-eggs:
	rm -fr .eggs/
	find . -name '*.egg-info' -exec rm -fr {} +
	find . -name '*.egg' -type f -exec rm -rf {} +
	find . -name '*.egg' -type d -exec rm -rf {} +

clean-build:
	rm -fr build/
	rm -fr dist/

clean-pyc:
	find . -name '*.pyc' -exec rm -f {} +
	find . -name '*.pyo' -exec rm -f {} +
	find . -name '*~' -exec rm -f {} +
	find . -name '__pycache__' -exec rm -fr {} +

clean-test:
	rm -fr .tox/
	rm -f .coverage
	rm -fr htmlcov/
	rm -fr tmp
	docker rmi -f teradatalabs/centos-presto-test-master teradatalabs/centos-presto-test-slave || true
	echo "Note: The above command is just cleaning up a Docker image that may not exit. If the command fails, it is not a problem."

lint:
	flake8 prestoadmin packaging tests

test: clean-test
	python setup.py test -s tests.unit
	python setup.py test -s tests.integration

test-all: clean-test
{'fraction_non_alphanumeric': 0.11231361231361231, 'fraction_numerical': 0.000962000962000962, 'mean_word_length': 3.2920536635706914, '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': '7257335', 'n_tokens_mistral': 1406, 'n_tokens_neox': 1359, 'n_words': 568}