<commit_before>OK_COLOR=\033[32;01m
NO_COLOR=\033[0m

BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g')

.PHONY: all

all: clean format deps build

help:
	@echo ""
	@echo "Task                 : Description"
	@echo "-----------------    : -------------------"
	@echo "make setup           : Install all necessary dependencies"
	@echo "make test            : Run tests"
	@echo "make format          : formater code"
	@echo "make build           : Generate production build for current OS"
	@echo "make release         : Generate binaries for all supported OSes"
	@echo "make clean           : Remove all build files and reset assets"
	@echo ""

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

format:	
	go fmt ./...
	
archive:
	@echo "$(OK_COLOR)==> Building Tarball...$(NO_COLOR)"
	tar -cvzf dist/kaman.tar.gz config/production.ini config/staging.ini bin/kaman

deps:
	@echo "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
	@go get -d -v ./...
	@go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d

build: 
	$(eval SHA := $(shell git rev-parse --short=5 HEAD))
	@echo "$(OK_COLOR)==> Compiling binary$(NO_COLOR)"	
	godep go build -ldflags "-X main.gitVersion='$(SHA)'" -o bin/kaman
<commit_msg>update makefile<commit_after>OK_COLOR=\033[32;01m
NO_COLOR=\033[0m

BINDATA_IGNORE = $(shell git ls-files -io --exclude-standard $< | sed 's/^/-ignore=/;s/[.]/[.]/g')
BUILD_TAG = $(shell git log --pretty=format:'%h' -n 1)
BUILD_DATE = $(shell date -u +%Y-%m-%dT%H:%M:%SZ)

.PHONY: all

all: clean format deps build

help:
	@echo ""
	@echo "Task                 : Description"
	@echo "-----------------    : -------------------"
	@echo "make setup           : Install all necessary dependencies"
	@echo "make test            : Run tests"
	@echo "make format          : formater code"
	@echo "make build           : Generate production build for current OS"
	@echo "make release         : Generate binaries for all supported OSes"
	@echo "make clean           : Remove all build files and reset assets"
	@echo ""

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

format:	
	go fmt ./...
	
archive:
	@echo -e "$(OK_COLOR)==> Building Tarball...$(NO_COLOR)"
	tar -cvzf dist/kaman.tar.gz config/production.ini config/staging.ini bin/kaman

deps:
	@echo -e "$(OK_COLOR)==> Installing dependencies$(NO_COLOR)"
	@go get -d -v ./...
	@go list -f '{{range .TestImports}}{{.}} {{end}}' ./... | xargs -n1 go get -d

build: 
	@echo -e "$(OK_COLOR)==> Compiling binary$(NO_COLOR)"	
	godep go build -ldflags "-X main.gitVersion='$(BUILD_TAG)'" -o bin/kaman

{'fraction_non_alphanumeric': 0.1937354988399072, 'fraction_numerical': 0.010054137664346482, 'mean_word_length': 2.514945652173913, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '6280019', 'n_tokens_mistral': 933, 'n_tokens_neox': 880, 'n_words': 265}