<commit_before>
VERSION:=$(shell grep VERSION src/jaabro.js | ruby -e "puts gets.match(/VERSION: '([\d\.]+)/)[1]")
SHA:=$(shell git log -1 --format="%h")
NOW:=$(shell date)


pkg_plain:
	mkdir -p pkg
	cp src/jaabro.js pkg/jaabro-$(VERSION).js
	echo "/* from commit $(SHA) on $(NOW) */" >> pkg/jaabro-$(VERSION).js

pkg_mini:
	mkdir -p pkg
	#java -jar tools/closure-compiler.jar --js src/jaabro.js > pkg/jaabro-$(VERSION).min.js
	printf "/* jaabro-$(VERSION).min.js | MIT license: http://github.com/jmettraux/jaabro/LICENSE.txt */" > pkg/jaabro-$(VERSION).min.js
	cat src/jaabro.js | jsmin >> pkg/jaabro-$(VERSION).min.js
	echo "/* minified from commit $(SHA) on $(NOW) */" >> pkg/jaabro-$(VERSION).min.js

pkg: pkg_plain pkg_mini

.PHONY: pkg
<commit_msg>get back to closure-compiler (eval issue fixed)<commit_after>
VERSION:=$(shell grep VERSION src/jaabro.js | ruby -e "puts gets.match(/VERSION: '([\d\.]+)/)[1]")

#SHA:=$(shell git log -1 --format="%H")
SHA:=$(shell git log -1 --format="%h")
NOW:=$(shell date)


pkg_plain:
	mkdir -p pkg
	cp src/jaabro.js pkg/jaabro-$(VERSION).js
	echo "/* from commit $(SHA) on $(NOW) */" >> pkg/jaabro-$(VERSION).js

pkg_mini:
	mkdir -p pkg
	printf "/* jaabro-$(VERSION).min.js | MIT license: http://github.com/jmettraux/jaabro/LICENSE.txt */" > pkg/jaabro-$(VERSION).min.js
	#cat src/jaabro.js | jsmin >> pkg/jaabro-$(VERSION).min.js
	java -jar tools/closure-compiler.jar --js src/jaabro.js >> pkg/jaabro-$(VERSION).min.js
	echo "/* minified from commit $(SHA) on $(NOW) */" >> pkg/jaabro-$(VERSION).min.js

pkg: pkg_plain pkg_mini

.PHONY: pkg

{'fraction_non_alphanumeric': 0.21626733921815888, 'fraction_numerical': 0.0031525851197982345, 'mean_word_length': 3.82370820668693, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, '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': '992052', 'n_tokens_mistral': 678, 'n_tokens_neox': 636, 'n_words': 139}