<commit_before>check:
	python -m flake8 --max-complexity 10 declxml.py
	python -m flake8 --max-complexity 10 tests/
	python -m pydocstyle --add-ignore=D105 declxml.py

coverage:
	python -m coverage run tests/run_tests.py
	# A few lines only run depending on whether it is Python 2 or Python 3
	python -m coverage report --fail-under=99

docbuild:
	$(MAKE) -C docs html

doccheck: docbuild
	doc8 docs/*.rst

html-coverage:
	python -m coverage run tests/run_tests.py
	python -m coverage html
	rm -rf /tmp/htmlcov && mv htmlcov /tmp/
	open /tmp/htmlcov/index.html

html-doc: docbuild
	open docs/_build/html/index.html

install:
    python -m pip install -U pipenv
    python -m pipenv install --dev

mutation-test:
	cosmic-ray init cosmic-ray.yml session
	cosmic-ray --verbose exec session
	cosmic-ray dump session | cr-report

package:
	python setup.py sdist

prcheck: check pylint doccheck coverage package

pylint:
	python -m pylint --rcfile .pylintrc declxml.py

test:
	python -m pytest -vv --junit-xml=test-results.xml<commit_msg>Fix install step in make file<commit_after>check:
	python -m flake8 --max-complexity 10 declxml.py
	python -m flake8 --max-complexity 10 tests/
	python -m pydocstyle --add-ignore=D105 declxml.py

coverage:
	python -m coverage run tests/run_tests.py
	# A few lines only run depending on whether it is Python 2 or Python 3
	python -m coverage report --fail-under=99

docbuild:
	$(MAKE) -C docs html

doccheck: docbuild
	doc8 docs/*.rst

html-coverage:
	python -m coverage run tests/run_tests.py
	python -m coverage html
	rm -rf /tmp/htmlcov && mv htmlcov /tmp/
	open /tmp/htmlcov/index.html

html-doc: docbuild
	open docs/_build/html/index.html

install:
	python -m pip install -U pip
	python -m pip install -U pipenv
	python -m pipenv install --dev

mutation-test:
	cosmic-ray init cosmic-ray.yml session
	cosmic-ray --verbose exec session
	cosmic-ray dump session | cr-report

package:
	python setup.py sdist

prcheck: check pylint doccheck coverage package

pylint:
	python -m pylint --rcfile .pylintrc declxml.py

test:
	python -m pytest -vv --junit-xml=test-results.xml
{'fraction_non_alphanumeric': 0.09315589353612168, 'fraction_numerical': 0.013307984790874524, 'mean_word_length': 3.4129979035639413, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '5761493', 'n_tokens_mistral': 770, 'n_tokens_neox': 735, 'n_words': 256}