<commit_before>.PHONY: toc test deps

toc:
	docker run --rm -it -v ${PWD}:/usr/src jorgeandrada/doctoc --github

test:
	staticcheck . ./protoscan
	PROT_CQL_ADDRS="localhost:9042" PROT_REDIS_URI="redis://localhost:6379/0" PROT_MEMCACHED_ADDRS="localhost:11211" go test -v -cpu 1,4 -run=. -bench=xxx . ./protoscan

deps:
	dep ensure -v
	go generate .
	go tool fix -force context -r context . || true
<commit_msg>tools > 'make deps' now makes sure 3rd-party tooling gets updated too<commit_after>.PHONY: toc test deps deps_external

toc:
	docker run --rm -it -v ${PWD}:/usr/src jorgeandrada/doctoc --github

test:
	staticcheck . ./protoscan
	PROT_CQL_ADDRS="localhost:9042" PROT_REDIS_URI="redis://localhost:6379/0" PROT_MEMCACHED_ADDRS="localhost:11211" go test -v -cpu 1,4 -run=. -bench=xxx . ./protoscan

deps_external:
	go get -u github.com/golang/dep/cmd/dep
	go get -u github.com/znly/linkname-gen
	go get -u golang.org/x/tools/cmd/stringer

deps: deps_external
	dep ensure -v
	go generate .
	go tool fix -force context -r context . || true

{'fraction_non_alphanumeric': 0.13218390804597702, 'fraction_numerical': 0.031609195402298854, 'mean_word_length': 3.815668202764977, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '1280387', 'n_tokens_mistral': 444, 'n_tokens_neox': 414, 'n_words': 107}