<commit_before>VERSION := $(shell git describe --tags --always --dirty)
REVISION := $(shell git rev-parse --sq HEAD)
COVERAGEOUT := coverage.out
.DEFAULT_GOAL := check

ifndef GOBIN
GOBIN := $(shell echo "$${GOPATH%%:*}/bin")
endif

LINT := $(GOBIN)/golint

$(LINT): ; @go get -v github.com/golang/lint/golint

.PHONY: build
build:
	@go build -ldflags "-X main.VersionString $(VERSION) -X main.RevisionString $(REVISION)" ./...

.PHONY: install
install:
	@go install -ldflags "-X main.VersionString $(VERSION) -X main.RevisionString $(REVISION)" ./...

.PHONY: clean
clean:
	@go clean -i ./...
	@rm -f $(COVERAGEOUT)

.PHONY: vet
vet:
	@go vet ./...

.PHONY: lint
lint: $(LINT)
	@exit $$($(LINT) ./... | tee /dev/tty | wc -l)

.PHONY: cover
cover:
	@go test -coverprofile=$(COVERAGEOUT)
	@go tool cover -html=$(COVERAGEOUT)

.PHONY: test
test:
	@go test

.PHONY: check
check: vet lint test
<commit_msg>Make fetching of golint silent<commit_after>VERSION := $(shell git describe --tags --always --dirty)
REVISION := $(shell git rev-parse --sq HEAD)
COVERAGEOUT := coverage.out
.DEFAULT_GOAL := check

ifndef GOBIN
GOBIN := $(shell echo "$${GOPATH%%:*}/bin")
endif

LINT := $(GOBIN)/golint

$(LINT): ; @go get github.com/golang/lint/golint

.PHONY: build
build:
	@go build -ldflags "-X main.VersionString $(VERSION) -X main.RevisionString $(REVISION)" ./...

.PHONY: install
install:
	@go install -ldflags "-X main.VersionString $(VERSION) -X main.RevisionString $(REVISION)" ./...

.PHONY: clean
clean:
	@go clean -i ./...
	@rm -f $(COVERAGEOUT)

.PHONY: vet
vet:
	@go vet ./...

.PHONY: lint
lint: $(LINT)
	@exit $$($(LINT) ./... | tee /dev/tty | wc -l)

.PHONY: cover
cover:
	@go test -coverprofile=$(COVERAGEOUT)
	@go tool cover -html=$(COVERAGEOUT)

.PHONY: test
test:
	@go test

.PHONY: check
check: vet lint test

{'fraction_non_alphanumeric': 0.19196919691969197, 'fraction_numerical': 0.0, 'mean_word_length': 3.4692874692874693, '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': '1802067', 'n_tokens_mistral': 737, 'n_tokens_neox': 718, 'n_words': 203}