<commit_before>COMPONENT_NAME = hashcash

CURRENT_GIT_REF = $(shell awk '{ print $$2 }' .git/HEAD)
VERSION = $(shell git describe --tags --always)
BUILD_TIME = $(shell date -u +'%Y%m%d-%H%M%S%z')
DIRTY = $(shell git diff --quiet --exit-code || echo '-dirty')

bin/$(COMPONENT_NAME): *.go .git/$(CURRENT_GIT_REF) Makefile
	godep go build -ldflags "-s -X main.Version=${VERSION}$(DIRTY) -X main.BuiltAt=${BUILD_TIME}" -o bin/$(COMPONENT_NAME) *.go

clean:
	rm -f ./bin/*

run:
	@make bin/$(COMPONENT_NAME)
	@./bin/$(COMPONENT_NAME)

setup:
	go get github.com/tools/godep
	go get golang.org/x/tools/cmd/cover
	godep get github.com/jteeuwen/go-bindata/...
	godep restore

test:
	godep go test -cover ./...

.DEFAULT_GOAL := bin/$(COMPONENT_NAME)
.PHONY: clean run setup test<commit_msg>Fixed up the makefile<commit_after>run:
	@go run examples/hashcash_example.go
	@go run examples/strongwork_example.go

setup:
	go get github.com/tools/godep
	godep restore

.DEFAULT_GOAL := run
.PHONY: run setup
{'fraction_non_alphanumeric': 0.16414904330312186, 'fraction_numerical': 0.0010070493454179255, 'mean_word_length': 4.0456852791878175, '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': '5570610', 'n_tokens_mistral': 404, 'n_tokens_neox': 388, 'n_words': 95}