<commit_before>pages := $(patsubst public/%.html,build/%.html,$(wildcard public/*.html))

default: clean site

clean:
	rm -rf node_modules public/index.html build esverify site.tar.gz

esverify:
	git clone https://github.com/levjj/esverify.git

public/index.html: esverify
	cat esverify/README.md | tail -n +3 | pandoc -f markdown -o $@

node_modules:
	npm install

build:
	mkdir build
	cp static/* build

build/ide.html: public/ide.html build
	head -n -1 templates/header.html | sed s/grid-lg/grid-xl/ | cat - $< templates/footer.html > $@

build/%.html: public/%.html build
	cat templates/header.html $< templates/footer.html > $@

build/style.css: node_modules
	node_modules/.bin/lessc src/style.less build/style.css

build/app.js: node_modules esverify
	npm run prod

dev: node_modules esverify $(pages) build/style.css
	npm run dev
	npm run serve

prod: build/index.html $(pages) build/style.css build/app.js
<commit_msg>fixed makefile<commit_after>pages := $(patsubst public/%.html,build/%.html,$(wildcard public/*.html))

default: clean prod

clean:
	rm -rf node_modules public/index.html build esverify site.tar.gz

esverify:
	git clone https://github.com/levjj/esverify.git

public/index.html: esverify
	cat esverify/README.md | tail -n +3 | pandoc -f markdown -o $@

node_modules:
	npm install

build:
	mkdir build
	cp static/* build

build/ide.html: public/ide.html build
	head -n -1 templates/header.html | sed s/grid-lg/grid-xl/ | cat - $< templates/footer.html > $@

build/%.html: public/%.html build
	cat templates/header.html $< templates/footer.html > $@

build/style.css: node_modules
	node_modules/.bin/lessc src/style.less build/style.css

build/app.js: node_modules esverify
	npm run prod

dev: build/index.html node_modules esverify $(pages) build/style.css
	npm run dev
	npm run serve

prod: build/index.html $(pages) build/style.css build/app.js

{'fraction_non_alphanumeric': 0.13262032085561498, 'fraction_numerical': 0.0021390374331550803, 'mean_word_length': 3.910761154855643, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '1574447', 'n_tokens_mistral': 674, 'n_tokens_neox': 651, 'n_words': 168}