<commit_before>export ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

all: test

bins:
	go build
	npm install
	npm run minify

bin/hadolint:
	curl -sL https://github.com/hadolint/hadolint/releases/download/v1.17.3/hadolint-Linux-x86_64 > bin/hadolint && chmod +x bin/hadolint

test: bins bin/hadolint
	./bin/test.sh
	npm test
	git ls-files | grep -e \.sh$ | xargs shellcheck
	bin/hadolint Dockerfile --ignore=DL3008 --ignore=DL3009 --ignore=DL4006 --ignore=SC2046 --ignore=SC2006

serve: bins
	npm run minify
	./reaction-pics<commit_msg>No need to double minify on make serve<commit_after>export ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

all: test

bins:
	go build
	npm install
	npm run minify

bin/hadolint:
	curl -sL https://github.com/hadolint/hadolint/releases/download/v1.17.3/hadolint-Linux-x86_64 > bin/hadolint && chmod +x bin/hadolint

test: bins bin/hadolint
	./bin/test.sh
	npm test
	git ls-files | grep -e \.sh$ | xargs shellcheck
	bin/hadolint Dockerfile --ignore=DL3008 --ignore=DL3009 --ignore=DL4006 --ignore=SC2046 --ignore=SC2006

serve: bins
	./reaction-pics
{'fraction_non_alphanumeric': 0.13333333333333333, 'fraction_numerical': 0.049777777777777775, 'mean_word_length': 4.118181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5333093', 'n_tokens_mistral': 492, 'n_tokens_neox': 432, 'n_words': 103}