<commit_before>TMPREPO=/tmp/docs/ffn

.PHONY: clean dist docs css pages serve

clean:
	rm -rf dist
	rm -rf ffn.egg-info

dist:
	python setup.py sdist upload

docs: css
	$(MAKE) -C docs/ clean
	$(MAKE) -C docs/ html

css:
	lessc --clean-css docs/source/_themes/klink/static/less/klink.less docs/source/_themes/klink/static/css/klink.css
	if test -d docs/build/html/_static/css; \
	then cp docs/source/_themes/klink/static/css/klink.css docs/build/html/_static/css/klink.css; \
	fi

pages: 
	rm -rf $(TMPREPO)
	git clone -b gh-pages <EMAIL>:pmorissette/ffn.git $(TMPREPO)
	rm -rf $(TMPREPO)/*
	cp -r docs/build/html/* $(TMPREPO)
	cd $(TMPREPO); \
	git add -A ; \
	git commit -a -m 'auto-updating docs' ; \
	git push

serve: 
	cd docs/build/html; \
	python -m SimpleHTTPServer
<commit_msg>added some - in Makefile to ignore fails<commit_after>TMPREPO=/tmp/docs/ffn

.PHONY: clean dist docs css pages serve

clean:
	- rm -rf dist
	- rm -rf ffn.egg-info

dist:
	python setup.py sdist upload

docs: css
	$(MAKE) -C docs/ clean
	$(MAKE) -C docs/ html

css:
	lessc --clean-css docs/source/_themes/klink/static/less/klink.less docs/source/_themes/klink/static/css/klink.css
	- cp docs/source/_themes/klink/static/css/klink.css docs/build/html/_static/css/klink.css;

pages: 
	- rm -rf $(TMPREPO)
	git clone -b gh-pages <EMAIL>:pmorissette/ffn.git $(TMPREPO)
	rm -rf $(TMPREPO)/*
	cp -r docs/build/html/* $(TMPREPO)
	cd $(TMPREPO); \
	git add -A ; \
	git commit -a -m 'auto-updating docs' ; \
	git push

serve: 
	cd docs/build/html; \
	python -m SimpleHTTPServer

{'fraction_non_alphanumeric': 0.14874436574372182, 'fraction_numerical': 0.0, 'mean_word_length': 3.132978723404255, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7067131', 'n_tokens_mistral': 676, 'n_tokens_neox': 648, 'n_words': 160}