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

help:
	@echo "clean - remove all build, test, coverage and Python artifacts"
	@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 "coverage - check code coverage quickly with the default Python"
	@echo "docs - generate Sphinx HTML documentation, including API docs"

clean: clean-build clean-pyc clean-test

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr *.egg-info

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-tests:
	rm -fr .tox/
	rm -f .coverage
	rm -fr htmlcov/

lint:
	flake8 --exclude test_tool_deps.py --max-complexity 9 pulsar test

tests:
	nosetests

coverage: tests
	coverage html
	open coverage_html_report/index.html

docs:
	rm -f docs/pulsar.rst
	rm -f docs/modules.rst
	sphinx-apidoc -o docs/ pulsar
	sphinx-apidoc -o docs/ galaxy
	$(MAKE) -C docs clean
	$(MAKE) -C docs html
	open docs/_build/html/index.html<commit_msg>Add some more Makefile actions for opening various stuff.<commit_after>.PHONY: clean-pyc clean-build docs clean

help:
	@echo "clean - remove all build, test, coverage and Python artifacts"
	@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 "coverage - check code coverage quickly with the default Python"
	@echo "docs - generate Sphinx HTML documentation, including API docs"

clean: clean-build clean-pyc clean-test

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr *.egg-info

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-tests:
	rm -fr .tox/
	rm -f .coverage
	rm -fr htmlcov/

lint:
	flake8 --exclude test_tool_deps.py --max-complexity 9 pulsar test

tests:
	nosetests

coverage: tests
	coverage html
	open coverage_html_report/index.html || xdg-open coverage_html_report/index.html

docs:
	rm -f docs/pulsar.rst
	rm -f docs/modules.rst
	sphinx-apidoc -o docs/ pulsar
	sphinx-apidoc -o docs/ galaxy
	$(MAKE) -C docs clean
	$(MAKE) -C docs html

open-docs: docs
	open docs/_build/html/index.html || xdg-open docs/_build/html/index.html

open-rtd: docs
	open https://pulsar.readthedocs.org || xdg-open docs/_build/html/index.html

open-project:
	open https://github.com/galaxyproject/pulsar || xdg-open https://github.com/galaxyproject/pulsar
{'fraction_non_alphanumeric': 0.12202908832919475, 'fraction_numerical': 0.002128414331323164, 'mean_word_length': 3.3185298621745787, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '3029146', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1009, 'n_words': 338}