<commit_before># Broadly inspired (copied at the outset) by Makefile at:
#   https://github.com/KirinDave/public-website/blob/master/Makefile

site: _site

Main: site.hs
	ghc --make site -optl -w

_site: Main css/*.css posts/*
	./site rebuild

preview: _site
	./site watch

sync: _site
	s3cmd -P sync _site/ s3://mesokurtosis.com/

analytics:
	s3cmd sync s3://logs.mesokurtosis.com/root/ logs/
	./analytics.py

stage:
	cp -r ~/Dropbox/mesokurtosis/posts .
	cp -r ~/Dropbox/mesokurtosis/images .
	cp -r ~/Dropbox/mesokurtosis/links .

unstage:
	rm -rf posts/
	rm -rf images/
	rm -rf links/

clean: unstage
	find . -name '*~' | xargs rm
	find . -name '#*#' | xargs rm
	find . -name '*.o' | xargs rm
	rm site.hi<commit_msg>Use rsync for staging<commit_after># Broadly inspired (copied at the outset) by Makefile at:
#   https://github.com/KirinDave/public-website/blob/master/Makefile

site: _site

Main: site.hs
	ghc --make site -optl -w

_site: Main css/*.css posts/*
	./site rebuild

preview: _site
	./site watch

sync: _site
	s3cmd -P sync _site/ s3://mesokurtosis.com/

analytics:
	s3cmd sync s3://logs.mesokurtosis.com/root/ logs/
	./analytics.py

stage:
	rsync -avzh --exclude '.DS_Store' ~/Dropbox/mesokurtosis/* .

unstage:
	rm -rf posts/
	rm -rf images/
	rm -rf links/

clean: unstage
	find . -name '*~' | xargs rm
	find . -name '#*#' | xargs rm
	find . -name '*.o' | xargs rm
	rm site.hi
{'fraction_non_alphanumeric': 0.14767025089605734, 'fraction_numerical': 0.005734767025089606, 'mean_word_length': 2.910364145658263, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2285461', 'n_tokens_mistral': 583, 'n_tokens_neox': 568, 'n_words': 158}