<commit_before>export GOPATH := $(CURDIR)

all: test

.PHONY: test

test: install-dependencies
	go test -v

install-dependencies:
	go get github.com/onsi/ginkgo
	go get github.com/onsi/gomega
	go get github.com/streadway/amqp<commit_msg>Add tests coverage<commit_after>export GOPATH := $(CURDIR)

COVER_FILE := coverage

all: test

.PHONY: test

test: install-dependencies
	go test -v

cover: install-dependencies install-cover
	go test -v -test.coverprofile="$(COVER_FILE).prof"
	sed -i.bak 's|_'$(GOPATH)'|.|g' $(COVER_FILE).prof
	go tool cover -html=$(COVER_FILE).prof -o $(COVER_FILE).html
	rm $(COVER_FILE).prof*

install-cover:
	go get code.google.com/p/go.tools/cmd/cover

install-dependencies:
	go get github.com/onsi/ginkgo
	go get github.com/onsi/gomega
	go get github.com/streadway/amqp
{'fraction_non_alphanumeric': 0.1342534504391468, 'fraction_numerical': 0.0, 'mean_word_length': 4.465753424657534, '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': '4237910', 'n_tokens_mistral': 321, 'n_tokens_neox': 304, 'n_words': 70}