<commit_before>TEST?=./...

default: test

bin: config/y.go
	@sh -c "'$(CURDIR)/scripts/build.sh'"

dev: config/y.go
	@TF_DEV=1 sh -c "'$(CURDIR)/scripts/build.sh'"

test: config/y.go
	TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4

testacc: config/y.go
	@if [ "$(TEST)" = "./..." ]; then \
		echo "ERROR: Set TEST to a specific package"; \
		exit 1; \
	fi
	TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 45m

testrace: config/y.go
	TF_ACC= go test -race $(TEST) $(TESTARGS)

updatedeps: config/y.go
	@if [ $(shell go version | cut -f3 -d" " | cut -f2 -d.) -lt 4 ]; then \
		go get -u -v ./...; \
	else \
		go get -f -u -v ./...; \
	fi

config/y.go: config/expr.y
	cd config/ && \
		go tool yacc -p "expr" expr.y

clean:
	rm config/y.go

.PHONY: bin clean default test updatedeps<commit_msg>Update Makefile<commit_after>TEST?=./...

default: test

bin: config/y.go
	@sh -c "'$(CURDIR)/scripts/build.sh'"

dev: config/y.go
	@TF_DEV=1 sh -c "'$(CURDIR)/scripts/build.sh'"

test: config/y.go
	TF_ACC= go test $(TEST) $(TESTARGS) -timeout=10s -parallel=4

testacc: config/y.go
	@if [ "$(TEST)" = "./..." ]; then \
		echo "ERROR: Set TEST to a specific package"; \
		exit 1; \
	fi
	TF_ACC=1 go test $(TEST) -v $(TESTARGS) -timeout 45m

testrace: config/y.go
	TF_ACC= go test -race $(TEST) $(TESTARGS)

updatedeps: config/y.go
	# Go 1.4 changed the format of `go get` a bit by requiring the
	# canonical full path. We work around this and just force.
	@if [ $(shell go version | cut -f3 -d" " | cut -f2 -d.) -lt 4 ]; then \
		go get -u -v ./...; \
	else \
		go get -f -u -v ./...; \
	fi

config/y.go: config/expr.y
	cd config/ && \
		go tool yacc -p "expr" expr.y

clean:
	rm config/y.go

.PHONY: bin clean default test updatedeps
{'fraction_non_alphanumeric': 0.19137931034482758, 'fraction_numerical': 0.013793103448275862, 'mean_word_length': 2.612033195020747, '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': '3117984', 'n_tokens_mistral': 741, 'n_tokens_neox': 713, 'n_words': 223}