<commit_before>PYTHON?=python

all:
	@echo "Usage:"
	@echo "    make test"
.PHONY : all

py-test:
	@${PYTHON} tests/test_yasi.py
.PHONY : py-test

new-test:
	@newlisp tests/test-yasi-module.lsp
.PHONY : new-test

test: py-test new-test
.PHONY : test

tags: yasi.py
	ctags yasi.py
.PHONY : tags

checks:
	pep8 yasi.py tests/test_yasi.py
	@printf "\n-------------------\n"
	pylint yasi.py tests/test_yasi.py
.PHONY : checks

clean:
	rm -rf __pycache__ tags *.pyc *.bak~ tests/cases/*.bak~
.PHONY : clean

help:
	@echo "Valid targets:"
	@echo " ... all(default target)"
	@echo " ... py-test"
	@echo " ... new-test"
	@echo " ... test(runs all tests)"
	@echo " ... checks"
	@echo " ... clean"
.PHONY : help<commit_msg>Add target for pypi distribution<commit_after>PYTHON?=python

all: help
.PHONY : all

egg:
	${PYTHON} setup.py sdist
.PHONY : egg

dist: egg
	${PYTHON} setup.py register
	${PYTHON} setup.py upload
.PHONY : dist

py-test:
	@${PYTHON} tests/test_yasi.py
.PHONY : py-test

new-test:
	@newlisp tests/test-yasi-module.lsp
.PHONY : new-test

test: py-test new-test
.PHONY : test

tags: yasi.py
	ctags yasi.py

checks:
	pep8 yasi.py tests/test_yasi.py
	@printf "\n-------------------\n"
	pylint yasi.py tests/test_yasi.py
.PHONY : checks

clean:
	rm -rf __pycache__ tags *.pyc *.bak~ tests/cases/*.bak~
.PHONY : clean

help:
	@echo "Targets:"
	@echo " > test(new-test, py-test)"
	@echo " > checks"
	@echo " > clean"
	@echo " > egg"
	@echo " > dist"
	@echo " > tags"
.PHONY : help
{'fraction_non_alphanumeric': 0.18855218855218855, 'fraction_numerical': 0.0013468013468013469, 'mean_word_length': 2.849740932642487, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '428690', 'n_tokens_mistral': 669, 'n_tokens_neox': 662, 'n_words': 154}