<commit_before>#!/usr/bin/make

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

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

.PHONY: %

default: test

all: build
build: deps
	$(GO) build $(PKG)
lint: vet
vet: deps
	$(GO) get code.google.com/p/go.tools/cmd/vet
	$(GO) vet $(PKG)
fmt:
	$(GO) fmt $(PKG)
test: test-deps
	$(GO) test $(PKG)
cover: test-deps
	$(GO) test -cover $(PKG)
clean:
	$(GO) clean -i $(PKG)
clean-all:
	$(GO) clean -i -r $(PKG)
deps:
	$(GO) get -d $(PKG)
	$(GO) install $(DEPS)
test-deps: deps
	$(GO) get -d -t $(PKG)
	$(GO) test -i $(PKG)
run: all
	./$(BIN)
<commit_msg>Adds tdd target with screen clearing when repeatedly ran<commit_after>#!/usr/bin/make

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

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

.PHONY: %

default: test

all: build
build: deps
	$(GO) build $(PKG)
lint: vet
vet: deps
	$(GO) get code.google.com/p/go.tools/cmd/vet
	$(GO) vet $(PKG)
fmt:
	$(GO) fmt $(PKG)
test: test-deps
	$(GO) test $(PKG)
tdd: test-deps
	clear
	date
	@$(GO) test $(PKG)
cover: test-deps
	$(GO) test -cover $(PKG)
clean:
	$(GO) clean -i $(PKG)
clean-all:
	$(GO) clean -i -r $(PKG)
deps:
	$(GO) get -d $(PKG)
	$(GO) install $(DEPS)
test-deps: deps
	$(GO) get -d -t $(PKG)
	$(GO) test -i $(PKG)
run: all
	./$(BIN)

{'fraction_non_alphanumeric': 0.24088634739099357, 'fraction_numerical': 0.0, 'mean_word_length': 3.268292682926829, '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': '6007242', 'n_tokens_mistral': 666, 'n_tokens_neox': 657, 'n_words': 195}