<commit_before>js-build/todo.min.js: js-build/todo.js
	closure --compilation_level=ADVANCED_OPTIMIZATIONS js-build/todo.js > js-build/todo.min.js

js-build/todo.js: ../../dist/build/todo/todo.jsexe/all.js
	mkdir -p js-build
	echo "(function(global,React,ReactDOM) {" > js-build/todo.js
	cat ../../dist/build/todo/todo.jsexe/all.js >> js-build/todo.js
	echo "})(window, window['React'], window['ReactDOM']);" >> js-build/todo.js
	sed -i 's/goog.provide.*//' js-build/todo.js
	sed -i 's/goog.require.*//' js-build/todo.js
	# https://github.com/ghcjs/shims/issues/21
	sed -i 's/final\([^a-z]\)/final0\1/g' js-build/todo.js

clean:
	rm -rf js-build<commit_msg>Remove workaround for ghcjs shim issue 21, it is now fixed upstream<commit_after>js-build/todo.min.js: js-build/todo.js
	closure --compilation_level=ADVANCED_OPTIMIZATIONS js-build/todo.js > js-build/todo.min.js

js-build/todo.js: ../../dist/build/todo/todo.jsexe/all.js
	mkdir -p js-build
	echo "(function(global,React,ReactDOM) {" > js-build/todo.js
	cat ../../dist/build/todo/todo.jsexe/all.js >> js-build/todo.js
	echo "})(window, window['React'], window['ReactDOM']);" >> js-build/todo.js
	sed -i 's/goog.provide.*//' js-build/todo.js
	sed -i 's/goog.require.*//' js-build/todo.js

clean:
	rm -rf js-build
{'fraction_non_alphanumeric': 0.20853080568720378, 'fraction_numerical': 0.004739336492890996, 'mean_word_length': 3.49290780141844, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 15, 'https://': 1, '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': '6398452', 'n_tokens_mistral': 564, 'n_tokens_neox': 545, 'n_words': 83}