<commit_before># CUR_TAG is the last git tag plus the delta from the current commit to the tag
# e.g. v1.5.5-<nr of commits since>-g<current git sha>
CUR_TAG = $(shell git describe)

# LAST_TAG is the last git tag
# e.g. v1.5.5
LAST_TAG = $(shell git describe --abbrev=0)

# VERSION is the last git tag without the 'v'
# e.g. 1.5.5
VERSION = $(shell git describe --abbrev=0 | cut -c 2-)

# GO runs the go binary with garbage collection disabled for faster builds.
# Do not specify a full path for go since travis will fail.
GO = GOGC=off go

# GOFLAGS is the flags for the go compiler. Currently, only the version number is
# passed to the linker via the -ldflags.
GOFLAGS = -ldflags "-X main.version=$(CUR_TAG)"

# GOVERSION is the current go version, e.g. go1.9.2
GOVERSION = $(shell go version | awk '{print $$3;}')

# GORELEASER is the path to the goreleaser binary.
GORELEASER = $(shell which goreleaser)

# GOVENDOR is the path to the govendor binary.
GOVENDOR = $(shell which govendor)

# VENDORFMT is the path to the vendorfmt binary.
VENDORFMT = $(shell which vendorfmt)

# all is the default target
all: build test

# help prints a help screen
help:
	@echo "build     - go build"
	@echo "install   - go install"
	@echo "test      - go test"
	@echo "gofmt     - go fmt"
	@echo "vet       - go vet"
	@echo "linux     - go build linux/amd64"
	@echo "release   - build/release.sh"
	@echo "gorelease - goreleaser"
	@echo "homebrew  - build/homebrew.sh"
	@echo "buildpkg  - build/build.sh"
	@echo "pkg       - build, test and create pkg/fabio.tar.gz"
	@echo "clean     - remove temp files"

# build compiles fabio and the test dependencies
build: checkdeps vendorfmt vet gofmt
	$(GO) build -i $(GOFLAGS)
	$(GO) test -i ./...

# test runs the tests
test: checkdeps vendorfmt gofmt
	$(GO) test -v -test.timeout 15s `go list ./... | grep -v '/vendor/'`
<commit_msg>build: run vet on test like go1.10<commit_after># CUR_TAG is the last git tag plus the delta from the current commit to the tag
# e.g. v1.5.5-<nr of commits since>-g<current git sha>
CUR_TAG = $(shell git describe)

# LAST_TAG is the last git tag
# e.g. v1.5.5
LAST_TAG = $(shell git describe --abbrev=0)

# VERSION is the last git tag without the 'v'
# e.g. 1.5.5
VERSION = $(shell git describe --abbrev=0 | cut -c 2-)

# GO runs the go binary with garbage collection disabled for faster builds.
# Do not specify a full path for go since travis will fail.
GO = GOGC=off go

# GOFLAGS is the flags for the go compiler. Currently, only the version number is
# passed to the linker via the -ldflags.
GOFLAGS = -ldflags "-X main.version=$(CUR_TAG)"

# GOVERSION is the current go version, e.g. go1.9.2
GOVERSION = $(shell go version | awk '{print $$3;}')

# GORELEASER is the path to the goreleaser binary.
GORELEASER = $(shell which goreleaser)

# GOVENDOR is the path to the govendor binary.
GOVENDOR = $(shell which govendor)

# VENDORFMT is the path to the vendorfmt binary.
VENDORFMT = $(shell which vendorfmt)

# all is the default target
all: build test

# help prints a help screen
help:
	@echo "build     - go build"
	@echo "install   - go install"
	@echo "test      - go test"
	@echo "gofmt     - go fmt"
	@echo "vet       - go vet"
	@echo "linux     - go build linux/amd64"
	@echo "release   - build/release.sh"
	@echo "gorelease - goreleaser"
	@echo "homebrew  - build/homebrew.sh"
	@echo "buildpkg  - build/build.sh"
	@echo "pkg       - build, test and create pkg/fabio.tar.gz"
	@echo "clean     - remove temp files"

# build compiles fabio and the test dependencies
build: checkdeps vendorfmt gofmt
	$(GO) build -i $(GOFLAGS)
	$(GO) test -i ./...

# test runs the tests
test: checkdeps vendorfmt vet gofmt
	$(GO) test -v -test.timeout 15s `go list ./... | grep -v '/vendor/'`

{'fraction_non_alphanumeric': 0.11244337863042898, 'fraction_numerical': 0.01145750066613376, 'mean_word_length': 3.161862527716186, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1801879', 'n_tokens_mistral': 1314, 'n_tokens_neox': 1304, 'n_words': 532}