<commit_before>.PHONY: test build clean $(PKGS)
SHELL := /bin/bash
PKG = github.com/Clever/marathon-stats
PKGS := $(PKG)

test: $(PKGS)

$(GOPATH)/bin/golint:
	@go get github.com/golang/lint/golint

$(GOPATH)/bin/errcheck:
	@go get github.com/kisielk/errcheck

$(PKGS): $(GOPATH)/bin/golint $(GOPATH)/bin/errcheck
	@echo ""
	@echo "FORMATTING $@..."
	@go get -d -t $@
	@gofmt -w=true $(GOPATH)/src/$@/*.go
	@echo ""
	@echo "LINTING $@..."
	@$(GOPATH)/bin/golint $(GOPATH)/src/$@/*.go
	@echo ""
ifeq ($(COVERAGE),1)
	@echo "TESTING COVERAGE $@..."
	@go test -cover -coverprofile=$(GOPATH)/src/$@/c.out $@ -test.v
	@go tool cover -html=$(GOPATH)/src/$@/c.out
else
	@echo "TESTING $@..."
	@go test -v $@
endif
	@$(GOPATH)/bin/errcheck $@

build:
	@go build -ldflags "-X main.Version=$(cat VERSION)"<commit_msg>Now ark compatible.<commit_after>.PHONY: test build clean $(PKGS)
SHELL := /bin/bash
PKG = github.com/Clever/marathon-stats
PKGS := $(PKG)

test: $(PKGS)

$(GOPATH)/bin/golint:
	@go get github.com/golang/lint/golint

$(GOPATH)/bin/errcheck:
	@go get github.com/kisielk/errcheck

$(PKGS): $(GOPATH)/bin/golint $(GOPATH)/bin/errcheck
	@echo ""
	@echo "FORMATTING $@..."
	@go get -d -t $@
	@gofmt -w=true $(GOPATH)/src/$@/*.go
	@echo ""
	@echo "LINTING $@..."
	@$(GOPATH)/bin/golint $(GOPATH)/src/$@/*.go
	@echo ""
ifeq ($(COVERAGE),1)
	@echo "TESTING COVERAGE $@..."
	@go test -cover -coverprofile=$(GOPATH)/src/$@/c.out $@ -test.v
	@go tool cover -html=$(GOPATH)/src/$@/c.out
else
	@echo "TESTING $@..."
	@go test -v $@
endif
	@$(GOPATH)/bin/errcheck $@

build:
	@go build -ldflags "-X main.Version=$(cat VERSION)"

run: build
	HOST=localhost PORT=8082 ./marathon-stats
{'fraction_non_alphanumeric': 0.23582089552238805, 'fraction_numerical': 0.003582089552238806, 'mean_word_length': 3.7344632768361583, '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': '5030531', 'n_tokens_mistral': 767, 'n_tokens_neox': 726, 'n_words': 144}