<commit_before>DBPATH := test/db/redis

test: $(DBPATH) install-redis
		@LOG=test* ./node_modules/.bin/prok \
		--env test/env.test \
		--procfile test/Procfile.test \
		--root .

node_modules_test: package.json
	@npm install --dev
	@touch node_modules

$(DBPATH):
	@mkdir -p $@

install-redis:
ifeq (,$(shell which redis-server))
	@echo installing redis...
	@brew install redis
else
endif

.PHONY: test<commit_msg>add make install<commit_after>DBPATH := test/db/redis

test: $(DBPATH) install-redis
		@LOG=test* ./node_modules/.bin/prok \
		--env test/env.test \
		--procfile test/Procfile.test \
		--root .

install:
	@npm install

$(DBPATH):
	@mkdir -p $@

install-redis:
ifeq (,$(shell which redis-server))
	@echo installing redis...
	@brew install redis
else
endif

.PHONY: test
{'fraction_non_alphanumeric': 0.1583652618135377, 'fraction_numerical': 0.0, 'mean_word_length': 3.3798882681564244, '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': '6896646', 'n_tokens_mistral': 319, 'n_tokens_neox': 306, 'n_words': 71}