<commit_before>VERSION=$(patsubst "%",%,$(lastword $(shell grep "version\s*=\s" main.go)))
RELEASE_DIR=releases
ARTIFACTS_DIR=$(RELEASE_DIR)/artifacts/$(VERSION)
GOX_OPTS="$(RELEASE_DIR)/{{.OS}}/{{.Arch}}/{{.Dir}}"
GITHUB_USERNAME=matsumana
BUILD_GOLANG_VERSION=1.7.3

$(ARTIFACTS_DIR):
	@mkdir -p $(ARTIFACTS_DIR)

.PHONY : install-depends
install-depends:
	go get github.com/Masterminds/glide
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

.PHONY : fmt
fmt:
	go fmt ./...

build-with-docker:
	docker run --rm -v "$(PWD)":/go/src/github.com/matsumana/flink_exporter -w /go/src/github.com/matsumana/flink_exporter golang:$(BUILD_GOLANG_VERSION) bash -c 'make install-depends && glide install && make build-all'
<commit_msg>version up golang 1.10<commit_after>VERSION=$(patsubst "%",%,$(lastword $(shell grep "version\s*=\s" main.go)))
RELEASE_DIR=releases
ARTIFACTS_DIR=$(RELEASE_DIR)/artifacts/$(VERSION)
GOX_OPTS="$(RELEASE_DIR)/{{.OS}}/{{.Arch}}/{{.Dir}}"
GITHUB_USERNAME=matsumana
BUILD_GOLANG_VERSION=1.10

$(ARTIFACTS_DIR):
	@mkdir -p $(ARTIFACTS_DIR)

.PHONY : install-depends
install-depends:
	go get github.com/Masterminds/glide
	go get github.com/mitchellh/gox
	go get github.com/tcnksm/ghr

.PHONY : fmt
fmt:
	go fmt ./...

build-with-docker:
	docker run --rm -v "$(PWD)":/go/src/github.com/matsumana/flink_exporter -w /go/src/github.com/matsumana/flink_exporter golang:$(BUILD_GOLANG_VERSION) bash -c 'make install-depends && glide install && make build-all'

{'fraction_non_alphanumeric': 0.17876344086021506, 'fraction_numerical': 0.006048387096774193, 'mean_word_length': 5.256302521008403, 'pattern_counts': {'":': 2, '<': 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': '2778247', 'n_tokens_mistral': 654, 'n_tokens_neox': 610, 'n_words': 101}