<commit_before>
.PHONY: setup
setup: bower_components/parsimmon/build/parsimmon.commonjs.js

bower_components/parsimmon/Makefile:
	bower install

bower_components/parsimmon/build/parsimmon.commonjs.js: bower_components/parsimmon/Makefile
	(cd bower_components/parsimmon; make build/parsimmon.commonjs.js)



test: parser.js input.model.js
	node parser.js >output.json 2>&1 || echo Exit status $$? >>output.json
	git diff -w --exit-code output.json<commit_msg>Add make format target<commit_after># empty string to terminate multi-line lists
NULL=

.PHONY: setup
setup: bower_components/parsimmon/build/parsimmon.commonjs.js \
       node_modules/jsfmt/bin/jsfmt \
       $(NULL)

node_modules/jsfmt/bin/jsfmt:
	mkdir -p node_modules
	npm install jsfmt

bower_components/parsimmon/Makefile:
	bower install

bower_components/parsimmon/build/parsimmon.commonjs.js: bower_components/parsimmon/Makefile
	(cd bower_components/parsimmon; make build/parsimmon.commonjs.js)



test: parser.js input.model.js
	node parser.js >output.json 2>&1 || echo Exit status $$? >>output.json
	git diff -w --exit-code output.json


.PHONY: format
format: parser.js
	./node_modules/jsfmt/bin/jsfmt --write $^
{'fraction_non_alphanumeric': 0.11064189189189189, 'fraction_numerical': 0.0033783783783783786, 'mean_word_length': 4.669856459330144, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '542753', 'n_tokens_mistral': 434, 'n_tokens_neox': 420, 'n_words': 84}