<commit_before>default: test

test: unit-test
	mkdir -p reports/cov reports/unit
	godep go test -coverprofile reports/gocumber.cov -v . > reports/gocumber.txt
	[ ! -f reports/gocumber.cov ] || gocov convert reports/gocumber.cov | gocov-xml > reports/cov/gocumber.xml
	[ ! -f reports/gocumber.cov ] || gocov convert reports/gocumber.cov | gocov-html > reports/cov/gocumber.html
	[ ! -f reports/gocumber.txt ] || go-junit-report < reports/gocumber.txt > reports/unit/gocumber.xml

unit-test: .godep-install
	godep go test -cover .

.godep-install: Godeps/Godeps.json
	command -v godep > /dev/null || go get github.com/tools/godep
	godep restore
	touch .godep-install

setup: .godep-install
	command -v gocov > /dev/null || go get github.com/axw/gocov/...
	command -v gocov-xml > /dev/null || go get github.com/AlekSi/gocov-xml
	command -v gocov-html > /dev/null || go get gopkg.in/matm/v1/gocov-html
	command -v go-junit-report > /dev/null || go get github.com/wancw/go-junit-report

clean:
	rm -rf reports<commit_msg>Add .PHONY target in Makefile<commit_after>default: test

test: unit-test
	mkdir -p reports/cov reports/unit
	godep go test -coverprofile reports/gocumber.cov -v . > reports/gocumber.txt
	[ ! -f reports/gocumber.cov ] || gocov convert reports/gocumber.cov | gocov-xml > reports/cov/gocumber.xml
	[ ! -f reports/gocumber.cov ] || gocov convert reports/gocumber.cov | gocov-html > reports/cov/gocumber.html
	[ ! -f reports/gocumber.txt ] || go-junit-report < reports/gocumber.txt > reports/unit/gocumber.xml

unit-test: .godep-install
	godep go test -cover .

.godep-install: Godeps/Godeps.json
	command -v godep > /dev/null || go get github.com/tools/godep
	godep restore
	touch .godep-install

setup: .godep-install
	command -v gocov > /dev/null || go get github.com/axw/gocov/...
	command -v gocov-xml > /dev/null || go get github.com/AlekSi/gocov-xml
	command -v gocov-html > /dev/null || go get gopkg.in/matm/v1/gocov-html
	command -v go-junit-report > /dev/null || go get github.com/wancw/go-junit-report

clean:
	rm -rf reports

.PHONY: clean default setup test unit-test
{'fraction_non_alphanumeric': 0.13766730401529637, 'fraction_numerical': 0.0009560229445506692, 'mean_word_length': 3.3695198329853864, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 10}, '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': '543028', 'n_tokens_mistral': 843, 'n_tokens_neox': 808, 'n_words': 183}