<commit_before>.PHONY: coffee clean all

JS_DEPS =  js/jquery-1.8.2.js js/underscore-1.4.2.js

all: lib/js/literallycanvas.fat.js lib/js/literallycanvas.fat.min.js lib/js/literallycanvas.thin.js lib/js/literallycanvas.thin.min.js docs

clean:
	rm -f js/coffee/*.js
	rm -f js/gen/*.js
	rm -f lib/js/literallycanvas.*.js

watch-js:
	watch -n 2 make lib/js/literallycanvas.fat.js

coffee: coffee/*.coffee
	coffee -o js/coffee -c coffee

lib/js/literallycanvas.fat.js: coffee
	uglifyjs2 $(JS_DEPS) js/coffee/* -o lib/js/literallycanvas.fat.js --beautify

lib/js/literallycanvas.fat.min.js: coffee
	uglifyjs2 $(JS_DEPS) js/coffee/* -o lib/js/literallycanvas.fat.min.js --compress

lib/js/literallycanvas.thin.js: coffee
	uglifyjs2 js/coffee/* -o lib/js/literallycanvas.thin.js --beautify

lib/js/literallycanvas.thin.min.js: coffee
	uglifyjs2 js/coffee/* -o lib/js/literallycanvas.thin.min.js --compress

docs:
	python gen_html.py index.jinja2 -o index.html -s trac

serve:
	python -m SimpleHTTPServer 8000 .

update-gh-pages:
	git checkout gh-pages -f
	git merge master -m "Update gh-pages"
	make js/gen/literallycanvas.fat.js
	git commit -am "Update js in gh-pages"
	git push origin gh-pages
	git checkout master -f<commit_msg>update-gh-pages now just tracks master, no gitignore magic<commit_after>.PHONY: coffee clean all

JS_DEPS =  js/jquery-1.8.2.js js/underscore-1.4.2.js

all: lib/js/literallycanvas.fat.js lib/js/literallycanvas.fat.min.js lib/js/literallycanvas.thin.js lib/js/literallycanvas.thin.min.js docs

clean:
	rm -f js/coffee/*.js
	rm -f js/gen/*.js
	rm -f lib/js/literallycanvas.*.js

watch-js:
	watch -n 2 make lib/js/literallycanvas.fat.js

coffee: coffee/*.coffee
	coffee -o js/coffee -c coffee

lib/js/literallycanvas.fat.js: coffee
	uglifyjs2 $(JS_DEPS) js/coffee/* -o lib/js/literallycanvas.fat.js --beautify

lib/js/literallycanvas.fat.min.js: coffee
	uglifyjs2 $(JS_DEPS) js/coffee/* -o lib/js/literallycanvas.fat.min.js --compress

lib/js/literallycanvas.thin.js: coffee
	uglifyjs2 js/coffee/* -o lib/js/literallycanvas.thin.js --beautify

lib/js/literallycanvas.thin.min.js: coffee
	uglifyjs2 js/coffee/* -o lib/js/literallycanvas.thin.min.js --compress

docs: lib/js/literallycanvas.fat.js
	python gen_html.py index.jinja2 -o index.html -s trac

serve:
	python -m SimpleHTTPServer 8000 .

update-gh-pages: all
	git checkout gh-pages
	git merge master --ff-only
	git push origin gh-pages
	git checkout master -f
{'fraction_non_alphanumeric': 0.1333606893721789, 'fraction_numerical': 0.013130898645876077, 'mean_word_length': 3.582706766917293, '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': '3324223', 'n_tokens_mistral': 1050, 'n_tokens_neox': 977, 'n_words': 210}