<commit_before>all: target/parser.min.js target/generate-validator-collection.min.js

OBJS+= target/parser.js
target/parser.js: src/parser/regjson.jison src/parser/regjson.jisonlex
	jison -o $@ -m amd $^

OBJS+= target/parser.min.js
target/parser.min.js: target/parser.js
	uglifyjs -o $@ $^

OBJS+= target/generate-validator-collection.min.js
target/%.min.js: src/%.js
	uglifyjs -o $@ $^

test: all
	@echo -n Testing...
	@set -e; \
	for fn in test/*; do \
		if [ -d "$$fn" ]; then \
			node test/test.js "$$fn"; \
		fi; \
	done
	@echo ' done.'
clean:
	-rm -f $(OBJS)
.PHONY: all clean<commit_msg>add more tests<commit_after>all: target/parser.min.js target/generate-validator-collection.min.js

OBJS+= target/parser.js
target/parser.js: src/parser/regjson.jison src/parser/regjson.jisonlex
	jison -o $@ -m amd $^

OBJS+= target/parser.min.js
target/parser.min.js: target/parser.js
	uglifyjs -o $@ $^

OBJS+= target/generate-validator-collection.min.js
target/%.min.js: src/%.js
	uglifyjs -o $@ $^

test: all
	@echo -n Testing...
	@set -e; \
	for fn in test/*; do \
		if [ -d "$$fn" ]; then \
			node test/test.js "$$fn"; \
		fi; \
	done
	@node test/selfCheck.js test/*/schema.rjsd src/regjsonSchema.rjsd
	@echo ' done.'
clean:
	-rm -f $(OBJS)
.PHONY: all clean
{'fraction_non_alphanumeric': 0.18492063492063493, 'fraction_numerical': 0.0, 'mean_word_length': 3.134426229508197, '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': '577552', 'n_tokens_mistral': 538, 'n_tokens_neox': 519, 'n_words': 113}