<commit_before>DOS2UNIX=$(shell which dos2unix || which fromdos)

clean:
	find . -name \*.pyc -exec rm {} \;
	find . -name coshsh.log -exec rm {} \;
	rm -f coshsh.tgz

pack:
	tar --exclude .git \
		--exclude test \
		--exclude coshsh.tgz \
		--exclude coshsh.log \
		-zcvf coshsh.tgz .

doc:
	cp -p README.asciidoc docs/README && cd docs && asciidoc --unsafe -a toc -a toclevels=2 -a max-width=800 README
	chmod 644 docs/README.html
	$(DOS2UNIX) docs/README.html
	$(RM) -f docs/README<commit_msg>strip pack list in Makefile<commit_after>DOS2UNIX=$(shell which dos2unix || which fromdos)

clean:
	find . -name \*.pyc -exec rm {} \;
	find . -name coshsh.log -exec rm {} \;
	rm -f coshsh.tgz

pack:
	tar --exclude .git \
		--exclude Changelog \
		--exclude Makefile \
		--exclude README \
		--exclude README.asciidoc \
		--exclude README.de.asciidoc \
		--exclude TODO \
		--exclude test \
		--exclude coshsh.tgz \
		--exclude coshsh.log \
		-zcvf coshsh.tgz .

doc:
	cp -p README.asciidoc docs/README && cd docs && asciidoc --unsafe -a toc -a toclevels=2 -a max-width=800 README
	chmod 644 docs/README.html
	$(DOS2UNIX) docs/README.html
	$(RM) -f docs/README
{'fraction_non_alphanumeric': 0.1513840830449827, 'fraction_numerical': 0.01730103806228374, 'mean_word_length': 2.593167701863354, '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': '2778175', 'n_tokens_mistral': 530, 'n_tokens_neox': 477, 'n_words': 125}