<commit_before>
.DEFAULT_GOAL := test

.PHONY: test
test:
	go test -v -race -cover ./...

.PHONY: bench
bench:
	go test -v -run - -bench . -benchmem ./...

.PHONY: lint
lint:
	# Ignore grep's exit code since no match returns 1.
	-golint ./... | grep --invert-match -E '^.*\.pb\.go'
	@
	@! (golint ./... |grep --invert-match -E '^.*\.pb\.go' | read dummy)

.PHONY: vet
vet:
	go vet ./...

.PHONY: example
<commit_msg>Ignore thrift generated files when executing `make lint`, in the same way that files generated from protos are ignored.<commit_after>
.DEFAULT_GOAL := test

.PHONY: test
test:
	go test -v -race -cover ./...

.PHONY: bench
bench:
	go test -v -run - -bench . -benchmem ./...

.PHONY: lint
lint:
	# Ignore grep's exit code since no match returns 1.
	-golint ./... | grep --invert-match -E '^.*\.pb\.go|^thrift'
	@
	@! (golint ./... | grep --invert-match -E '^.*\.pb\.go|^thrift' | read dummy)

.PHONY: vet
vet:
	go vet ./...

.PHONY: example

{'fraction_non_alphanumeric': 0.20104712041884817, 'fraction_numerical': 0.0020942408376963353, 'mean_word_length': 2.262798634812287, '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': '6103110', 'n_tokens_mistral': 407, 'n_tokens_neox': 384, 'n_words': 120}