<commit_before>#!/usr/bin/make

PKG := .
BIN := $(shell basename `pwd`)

DEPS      := $(shell ./go list -f '{{join .Deps "\n"}}' $(PKG) | grep -v "^_")
TEST_DEPS := $(DEPS) $(shell ./go list -f '{{join .TestImports "\n"}}' $(PKG) | grep -v "^_")

.PHONY: default all vet test deps lint

default: test

all: build
build: deps
	./go build -v $(PKG)
lint: vet
vet: deps
	./go vet $(PKG)
fmt:
	./go fmt $(PKG)
test: test-deps
	./go test $(PKG)
cover: test-deps
	./go test -cover $(PKG)
clean:
	./go clean $(PKG)
deps:
	./go get -d $(PKG)
	./go install $(DEPS)
test-deps:
	./go get -d -t $(PKG)
	./go install $(TEST_DEPS)
run: all
	./$(BIN)

<commit_msg>Replace ./go script reference with a variable.<commit_after>#!/usr/bin/make

PKG := .
BIN := $(shell basename `pwd`)
GO  := ./go

DEPS      := $(shell $(GO) list -f '{{join .Deps "\n"}}' $(PKG) | grep -v "^_")
TEST_DEPS := $(DEPS) $(shell $(GO) list -f '{{join .TestImports "\n"}}' $(PKG) | grep -v "^_")

.PHONY: default all vet test deps lint

default: test

all: build
build: deps
	$(GO) build -v $(PKG)
lint: vet
vet: deps
	$(GO) vet $(PKG)
fmt:
	$(GO) fmt $(PKG)
test: test-deps
	$(GO) test $(PKG)
cover: test-deps
	$(GO) test -cover $(PKG)
clean:
	$(GO) clean $(PKG)
deps:
	$(GO) get -d $(PKG)
	$(GO) install $(DEPS)
test-deps:
	$(GO) get -d -t $(PKG)
	$(GO) install $(TEST_DEPS)
run: all
	./$(BIN)


{'fraction_non_alphanumeric': 0.23542435424354244, 'fraction_numerical': 0.0, 'mean_word_length': 3.0843373493975905, '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': '543164', 'n_tokens_mistral': 616, 'n_tokens_neox': 600, 'n_words': 192}