<commit_before>all: server client css

.PHONY: client

install_deps:
	go get -v -u github.com/valyala/quicktemplate/qtc
	npm update

server:
	go generate ./...
	go build -v

client:
	mkdir -p www/js
	node_modules/.bin/tsc -p client --outdir www/js
	$(foreach i, $(wildcard www/js/*), node_modules/.bin/uglifyjs -o $i $i)

css:
	$(MAKE) -C less
<commit_msg>Remove old template code on rebuild<commit_after>all: server client css

.PHONY: client

install_deps:
	go get -v -u github.com/valyala/quicktemplate/qtc
	npm update

server:
	rm -f templates/*.qtpl.go
	go generate ./...
	go build -v

client:
	mkdir -p www/js
	node_modules/.bin/tsc -p client --outdir www/js
	$(foreach i, $(wildcard www/js/*), node_modules/.bin/uglifyjs -o $i $i)

css:
	$(MAKE) -C less

{'fraction_non_alphanumeric': 0.14323258869908015, 'fraction_numerical': 0.0, 'mean_word_length': 3.1868131868131866, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, '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': '5535488', 'n_tokens_mistral': 317, 'n_tokens_neox': 305, 'n_words': 90}