<commit_before>DROPLAN_VERSION ?= latest

test:
	go test . -cover

build:
	go build .

build-amd64:
	@env GOOS=linux GOARCH=amd64 go build -ldflags="-X main.appVersion=${DROPLAN_VERSION}" -o droplan

build-i386:
	@env GOOS=linux GOARCH=386 go build -ldflags="-X main.appVersion=${DROPLAN_VERSION}" -o droplan_i386

release: build-amd64 build-i386
	@zip droplan_${DROPLAN_VERSION}_linux_amd64.zip droplan
	@tar -cvzf droplan_${DROPLAN_VERSION}_linux_amd64.tar.gz droplan
	@rm droplan

	@mv droplan_i386 droplan
	@zip droplan_${DROPLAN_VERSION}_linux_386.zip droplan
	@tar -cvzf droplan_${DROPLAN_VERSION}_linux_386.tar.gz droplan
	@rm droplan

docker: build-amd64 docker-image clean

docker-image:
	@docker build -t tam7t/droplan:${DROPLAN_VERSION} .

clean:
	@rm -f droplan
	@rm -rf droplan_*.zip
	@rm -rf droplan_*.tar.gz<commit_msg>makefile: build releases inside a docker container<commit_after>DROPLAN_VERSION ?= latest

test:
	go test . -cover

build:
	go build .

build-amd64:
	@docker run -it --rm -v `pwd`:/go/src/github.com/tam7t/droplan -w /go/src/github.com/tam7t/droplan golang:latest env GOOS=linux GOARCH=amd64 go build -ldflags="-X main.appVersion=${DROPLAN_VERSION}" -o droplan

build-i386:
	@docker run -it --rm -v `pwd`:/go/src/github.com/tam7t/droplan -w /go/src/github.com/tam7t/droplan golang:latest env GOOS=linux GOARCH=386 go build -ldflags="-X main.appVersion=${DROPLAN_VERSION}" -o droplan_i386

release: build-amd64 build-i386
	@zip droplan_${DROPLAN_VERSION}_linux_amd64.zip droplan
	@tar -cvzf droplan_${DROPLAN_VERSION}_linux_amd64.tar.gz droplan
	@rm droplan

	@mv droplan_i386 droplan
	@zip droplan_${DROPLAN_VERSION}_linux_386.zip droplan
	@tar -cvzf droplan_${DROPLAN_VERSION}_linux_386.tar.gz droplan
	@rm droplan

docker: build-amd64 docker-image clean

docker-image:
	@docker build -t tam7t/droplan:${DROPLAN_VERSION} .

clean:
	@rm -f droplan
	@rm -rf droplan_*.zip
	@rm -rf droplan_*.tar.gz
{'fraction_non_alphanumeric': 0.12286158631415241, 'fraction_numerical': 0.03732503888024884, 'mean_word_length': 4.902140672782875, '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': '3444815', 'n_tokens_mistral': 842, 'n_tokens_neox': 786, 'n_words': 167}