<commit_before>VERSION := $(shell go run cmd/monkfish/monkfish.go -version | sed 's/Version: //')
CMDDIR  := ./cmd/monkfish
.PHONY: test setup clean-zip all compress release

monkfish: test
	go build $(CMDDIR)

test:
	go test ./...

setup:
	which gox || go get github.com/mitchellh/gox
	which ghr || go get github.com/tcnksm/ghr

clean-zip:
	find pkg -name '*.zip' | xargs rm

all: setup test
	gox \
	    -os="linux" \
	    -arch="amd64" \
	    -output "pkg/{{.Dir}}_$(VERSION)-{{.OS}}-{{.Arch}}" \
	    $(CMDDIR)

compress: all clean-zip
	cd pkg && ( find . -perm -u+x -type f -name 'monkfish*' | gxargs -i zip -m {}.zip {} )

release: compress
	git push origin master<commit_msg>Can build but cannot install...<commit_after>VERSION := $(shell go run cmd/monkfish/monkfish.go -version | sed 's/Version: //')
CMDDIR  := ./cmd/monkfish
.PHONY: install test setup clean-zip all compress release

monkfish: test
	go build $(CMDDIR)

install: monkfish
	install monkfish /usr/local/bin

test:
	go test ./...

setup:
	which gox || go get github.com/mitchellh/gox
	which ghr || go get github.com/tcnksm/ghr

clean-zip:
	find pkg -name '*.zip' | xargs rm

all: setup test
	gox \
	    -os="linux" \
	    -arch="amd64" \
	    -output "pkg/{{.Dir}}_$(VERSION)-{{.OS}}-{{.Arch}}" \
	    $(CMDDIR)

compress: all clean-zip
	cd pkg && ( find . -perm -u+x -type f -name 'monkfish*' | gxargs -i zip -m {}.zip {} )

release: compress
	git push origin master
{'fraction_non_alphanumeric': 0.17152777777777778, 'fraction_numerical': 0.002777777777777778, 'mean_word_length': 2.884097035040431, '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': '839538', 'n_tokens_mistral': 572, 'n_tokens_neox': 555, 'n_words': 160}