<commit_before>UID = $(shell id -u)
GID = $(shell id -g)
PKGNAME = "github.com/simonpahl/s3uploader"
PKGPATH = "/go/src/$(PKGNAME)"
GOCACHE = ".gocache"
GOLANGIMAGE = "golang:1.9"
GOEXEC = docker run -it -u $(UID):$(GID) -v $(PWD)/$(GOCACHE):/go --rm -v $(PWD):$(PKGPATH) -w $(PKGPATH) $(GOLANGIMAGE)

build: ensure
	@-$(GOEXEC) go build -v

console: tools
	@-$(GOEXEC) bash

ensure: tools
	@-$(GOEXEC) dep ensure

tools:
	@-mkdir -p .gocache/src/$(PKGNAME)
	@-$(GOEXEC) go get -u github.com/golang/dep/cmd/dep

clean:
	@-rm -rf .gocache vendor
	@-rm -f s3uploader<commit_msg>optimizes binary size<commit_after>UID = $(shell id -u)
GID = $(shell id -g)
PKGNAME = "github.com/simonpahl/s3uploader"
PKGPATH = "/go/src/$(PKGNAME)"
GOCACHE = ".gocache"
GOLANGIMAGE = "golang:1.9"
GOEXEC = docker run -it -u $(UID):$(GID) -v $(PWD)/$(GOCACHE):/go --rm -v $(PWD):$(PKGPATH) -w $(PKGPATH) $(GOLANGIMAGE)

build: ensure
	@-$(GOEXEC) go build -v -ldflags="-s -w"

console: tools
	echo "Opening Console"
	@-$(GOEXEC) bash

ensure: tools
	echo "Ensuring dependencies are installed"
	@-$(GOEXEC) dep ensure

tools:
	echo "Ensuring dependencies are installed"
	@-mkdir -p .gocache/src/$(PKGNAME)
	@-$(GOEXEC) go get -u github.com/golang/dep/cmd/dep

clean:
	@-rm -rf .gocache vendor
	@-rm -f s3uploader
{'fraction_non_alphanumeric': 0.19860356865787432, 'fraction_numerical': 0.0062063615205585725, 'mean_word_length': 3.8863636363636362, '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': '2901046', 'n_tokens_mistral': 572, 'n_tokens_neox': 563, 'n_words': 140}