<commit_before>all:
	rm -rf dist node_modules package-lock.json 2> /dev/null
	mkdir dist node_modules

	npm install

	webpack --output-library-target var --output-library simplebtc simplebtc.js dist/simplebtc.js
	echo " \
		if (typeof module !== 'undefined' && module.exports) { \
			module.exports		= simplebtc; \
		} \
		else { \
			self.simplebtc	= simplebtc; \
		} \
	" >> dist/simplebtc.js
	uglifyjs dist/simplebtc.js -cmo dist/simplebtc.js

	rm -rf node_modules package-lock.json

clean:<commit_msg>Makefile updates<commit_after>all:
	rm -rf dist node_modules package-lock.json 2> /dev/null
	mkdir dist node_modules

	npm install

	webpack --mode none --output-library-target var --output-library simplebtc simplebtc.js -o dist/simplebtc.js

	echo " \
		if (typeof module !== 'undefined' && module.exports) { \
			module.exports	= simplebtc; \
		} \
		else { \
			self.simplebtc	= simplebtc; \
		} \
	" >> dist/simplebtc.js
	terser dist/simplebtc.js -cmo dist/simplebtc.js

	rm -rf node_modules package-lock.json

clean:
{'fraction_non_alphanumeric': 0.12378167641325535, 'fraction_numerical': 0.001949317738791423, 'mean_word_length': 3.1411290322580645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '3444832', 'n_tokens_mistral': 400, 'n_tokens_neox': 370, 'n_words': 85}