<commit_before>include default.mk

FEATURE_FILES = $(sort $(wildcard ../ruby/features/*.feature))
FEATURE_NDJSONS = $(patsubst ../ruby/features/%.feature,acceptance/%.ndjson,$(FEATURE_FILES))

.DELETE_ON_ERROR:

.tested: $(FEATURE_NDJSONS) acceptance/all.ndjson

acceptance/all.ndjson: $(FEATURE_FILES) .deps
	mkdir -p $$(dirname $@)
	pushd ../ruby && \
		../javascript/node_modules/@cucumber/fake-cucumber/bin/fake-cucumber \
		--format ndjson \
		--predictable-ids \
		--require ../javascript/features \
		$(patsubst ../ruby/%,%,$^) > \
		../javascript/$@ && \
		popd

acceptance/test_%.ndjson: ../ruby/features/test_%.feature .deps
	mkdir -p $$(dirname $@)
	pushd ../ruby && \
		../javascript/node_modules/@cucumber/fake-cucumber/bin/fake-cucumber \
		--format ndjson \
		--predictable-ids \
		--require ../javascript/features \
		$(patsubst ../ruby/%,%,$^) > \
		../javascript/$@ && \
		popd
<commit_msg>json-formatter: ensure JS ndjson are regenerated when changing step definitions<commit_after>include default.mk

FEATURE_FILES = $(sort $(wildcard ../ruby/features/*.feature))
FEATURE_NDJSONS = $(patsubst ../ruby/features/%.feature,acceptance/%.ndjson,$(FEATURE_FILES))
SUPPORT_CODE=$(wildcard ./features/step_definitions/*.ts)

.DELETE_ON_ERROR:

.tested: $(FEATURE_NDJSONS) acceptance/all.ndjson
.deps: $(SUPPORT_CODE)

acceptance/all.ndjson: $(FEATURE_FILES) .deps
	mkdir -p $$(dirname $@)
	pushd ../ruby && \
		../javascript/node_modules/@cucumber/fake-cucumber/bin/fake-cucumber \
		--format ndjson \
		--predictable-ids \
		--require ../javascript/features \
		$(patsubst ../ruby/%,%,$^) > \
		../javascript/$@ && \
		popd

acceptance/test_%.ndjson: ../ruby/features/test_%.feature .deps
	mkdir -p $$(dirname $@)
	pushd ../ruby && \
		../javascript/node_modules/@cucumber/fake-cucumber/bin/fake-cucumber \
		--format ndjson \
		--predictable-ids \
		--require ../javascript/features \
		$(patsubst ../ruby/%,%,$^) > \
		../javascript/$@ && \
		popd

{'fraction_non_alphanumeric': 0.2032603158430973, 'fraction_numerical': 0.0, 'mean_word_length': 3.2419006479481642, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '3291605', 'n_tokens_mistral': 783, 'n_tokens_neox': 700, 'n_words': 111}