<commit_before>.PHONY: help clean clean-pyc clean-build list test test-all coverage docs release sdist

help:
	@echo "clean-build - remove build artifacts"
	@echo "clean-pyc - remove Python file artifacts"
	@echo "lint - check style with flake8"
	@echo "test - run tests quickly with the default Python"
	@echo "testall - 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 "sdist - package"

clean: clean-build clean-pyc clean-docs clean-static

clean-static:
	yarn run clean

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr dist-packages-cache/
	rm -fr dist-packages-temp/
	rm -fr *.egg-info
	rm -fr .eggs
	rm -fr .cache
	rm -r kolibri/dist/exercise_perseus_renderer || true
	git clean -X -d -f kolibri/dist

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

clean-docs:
	rm -f docs/py_modules/kolibri*rst
	rm -f docs/py_modules/modules.rst
	rm -f docs/kolibri*rst # old location
	rm -f docs/modules.rst # old location
	$(MAKE) -C docs clean

lint:
	flake8 kolibri

test:
	python setup.py test

test-all:
	tox

assets: staticdeps
	yarn run build

coverage:<commit_msg>Add comment explaining why we're deleting exercise_perseus_renderer manually.<commit_after>.PHONY: help clean clean-pyc clean-build list test test-all coverage docs release sdist

help:
	@echo "clean-build - remove build artifacts"
	@echo "clean-pyc - remove Python file artifacts"
	@echo "lint - check style with flake8"
	@echo "test - run tests quickly with the default Python"
	@echo "testall - 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 "sdist - package"

clean: clean-build clean-pyc clean-docs clean-static

clean-static:
	yarn run clean

clean-build:
	rm -fr build/
	rm -fr dist/
	rm -fr dist-packages-cache/
	rm -fr dist-packages-temp/
	rm -fr *.egg-info
	rm -fr .eggs
	rm -fr .cache
	# HACK: somehow git-clean expects exercise_perseus_renderer to be a git repo. Manually rm it so git-clean doesn't error out.
	rm -r kolibri/dist/exercise_perseus_renderer || true 
	git clean -X -d -f kolibri/dist

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

clean-docs:
	rm -f docs/py_modules/kolibri*rst
	rm -f docs/py_modules/modules.rst
	rm -f docs/kolibri*rst # old location
	rm -f docs/modules.rst # old location
	$(MAKE) -C docs clean

lint:
	flake8 kolibri

test:
	python setup.py test

test-all:
	tox

assets: staticdeps
	yarn run build

coverage:
{'fraction_non_alphanumeric': 0.10777816532961283, 'fraction_numerical': 0.0013951866062085804, 'mean_word_length': 3.3323262839879155, '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': '5459484', 'n_tokens_mistral': 1054, 'n_tokens_neox': 1013, 'n_words': 370}