<commit_before>all: install

fmt:
	go fmt ./...

install: fmt
	go install ./...

test: install
	go test -short ./...

test-long: install
	go test -v ./...

test-race: install
	go test -v -race ./...

# run twice to ensure references are updated properly
whitepaper:
	@pdflatex whitepaper.tex > /dev/null
	pdflatex whitepaper.tex

race-libs:
	go install -race std

dependencies: race-libs
	go get -u code.google.com/p/gcfg
	go get -u github.com/mitchellh/go-homedir
	go get -u github.com/spf13/cobra

clean:
	rm -rf release whitepaper.aux whitepaper.log whitepaper.pdf

# Cross Compile - makes binaries for windows, linux, and mac, 32 and 64 bit.
xc:
	go get -u github.com/laher/goxc
	goxc -arch="386 amd64" -bc="linux,!arm windows darwin" -d=release -pv=0.1.0 -pr=beta -include=style/,config,LICENSE*,README* -tasks-=deb,deb-dev,deb-source

.PHONY: all fmt install test test-long test-long-race whitepaper race-libs dependencies distribution clean xc<commit_msg>add host dir to make clean<commit_after>all: install

fmt:
	go fmt ./...

install: fmt
	go install ./...

test: install
	go test -short ./...

test-long: install
	go test -v ./...

test-race: install
	go test -v -race ./...

# run twice to ensure references are updated properly
whitepaper:
	@pdflatex whitepaper.tex > /dev/null
	pdflatex whitepaper.tex

race-libs:
	go install -race std

dependencies: race-libs
	go get -u code.google.com/p/gcfg
	go get -u github.com/mitchellh/go-homedir
	go get -u github.com/spf13/cobra

clean:
	rm -rf host release whitepaper.aux whitepaper.log whitepaper.pdf

# Cross Compile - makes binaries for windows, linux, and mac, 32 and 64 bit.
xc:
	go get -u github.com/laher/goxc
	goxc -arch="386 amd64" -bc="linux,!arm windows darwin" -d=release -pv=0.1.0 -pr=beta -include=style/,config,LICENSE*,README* -tasks-=deb,deb-dev,deb-source

.PHONY: all fmt install test test-long test-long-race whitepaper race-libs dependencies distribution clean xc
{'fraction_non_alphanumeric': 0.12564366632337795, 'fraction_numerical': 0.014418125643666324, 'mean_word_length': 3.3467561521252795, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7067044', 'n_tokens_mistral': 751, 'n_tokens_neox': 716, 'n_words': 219}