<commit_before>RELEASE_PLATFORMS := linux darwin
VERSION := `git describe --tags`

build:
	go build -ldflags "-X main.sdlVersion=`git describe --tags`" -o bin/sdl ./src/main/*

deps:
	go get gopkg.in/alecthomas/kingpin.v2
	go get github.com/fatih/color
	go get gopkg.in/yaml.v2
	go get github.com/mitchellh/gox

verify:
	./test/test.pre.sh
	./test/test.sh
	./test/test.post.sh

release: deps build verify
	echo -n "" > SHA256SUMS
	${GOPATH}/bin/gox -ldflags="-X main.sdlVersion=`git describe --tags`" -osarch="linux/amd64" -osarch="darwin/amd64" -output="sdl_${VERSION}_{{.OS}}_{{.Arch}}" ./src/main/
	for platform in $(RELEASE_PLATFORMS); do\
		zip sdl_${VERSION}_$${platform}_amd64.zip sdl_${VERSION}_$${platform}_amd64; \
		sha256sum sdl_${VERSION}_$${platform}_amd64.zip >> SHA256SUMS; \
		rm sdl_${VERSION}_$${platform}_amd64; \
	done

clean:
	rm -f test/prod-bar || true
	rm -f test/prod-foo || true
	rm -f test/vault_pid || true<commit_msg>Zip sdl instead of sdl_version_... (#22)<commit_after>RELEASE_PLATFORMS := linux darwin
VERSION := `git describe --tags`

build:
	go build -ldflags "-X main.sdlVersion=`git describe --tags`" -o bin/sdl ./src/main/*

deps:
	go get gopkg.in/alecthomas/kingpin.v2
	go get github.com/fatih/color
	go get gopkg.in/yaml.v2
	go get github.com/mitchellh/gox

verify:
	./test/test.pre.sh
	./test/test.sh
	./test/test.post.sh

release: deps build verify
	echo -n "" > SHA256SUMS
	${GOPATH}/bin/gox -ldflags="-X main.sdlVersion=`git describe --tags`" -osarch="linux/amd64" -osarch="darwin/amd64" -output="sdl_${VERSION}_{{.OS}}_{{.Arch}}" ./src/main/
	for platform in $(RELEASE_PLATFORMS); do\
		mv sdl_${VERSION}_$${platform}_amd64 sdl; \
		zip sdl_${VERSION}_$${platform}_amd64.zip sdl; \
		sha256sum sdl_${VERSION}_$${platform}_amd64.zip >> SHA256SUMS; \
		rm sdl; \
	done

clean:
	rm -f test/prod-bar || true
	rm -f test/prod-foo || true
	rm -f test/vault_pid || true
{'fraction_non_alphanumeric': 0.17671735710540115, 'fraction_numerical': 0.024121657052962767, 'mean_word_length': 3.8923076923076922, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '385808', 'n_tokens_mistral': 826, 'n_tokens_neox': 763, 'n_words': 163}