<commit_before>TOKEN = `cat .token`
REPO := envplate
USER := kreuzwerker
VERSION := "v0.0.5"

build: darwin linux

darwin:
	mkdir -p out/darwin
	GOOS=darwin go build -o out/darwin/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
linux:
	mkdir -p out/linux
	GOOS=linux go build -o out/linux/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
clean:
	rm -rf out

release:
	github-release release --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN)
	github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-osx --file out/darwin/ep
	github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-linux --file out/linux/ep

test:
	DATABASE=db.example.com MODE=debug go test -cover<commit_msg>Release 0.0.6.<commit_after>TOKEN = `cat .token`
REPO := envplate
USER := kreuzwerker
VERSION := "v0.0.6"

build: darwin linux

darwin:
	mkdir -p out/darwin
	GOOS=darwin go build -o out/darwin/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
linux:
	mkdir -p out/linux
	GOOS=linux go build -o out/linux/ep -ldflags "-X main.build `git rev-parse --short HEAD`" bin/envplate.go
clean:
	rm -rf out

release:
	github-release release --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN)
	github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-osx --file out/darwin/ep
	github-release upload --user $(USER) --repo $(REPO) --tag $(VERSION) -s $(TOKEN) --name ep-linux --file out/linux/ep

test:
	DATABASE=db.example.com MODE=debug go test -cover
{'fraction_non_alphanumeric': 0.1748599875544493, 'fraction_numerical': 0.005600497822028625, 'mean_word_length': 3.3577235772357725, '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': '1703063', 'n_tokens_mistral': 613, 'n_tokens_neox': 603, 'n_words': 190}