<commit_before>
all: test build

build:
	go build cmd/teleproxy/teleproxy.go && sudo chown root:wheel ./teleproxy && sudo chmod u+s ./teleproxy

test:
	go test -v -exec sudo github.com/datawire/teleproxy/internal/pkg/nat/

KUBECONFIG ?= ~/.kube/config

run: build
	./teleproxy -kubeconfig ${KUBECONFIG} -dns $(shell fgrep nameserver /etc/resolv.conf | head -1 | awk '{ print $$2 }') -remote $(shell kubectl get svc teleproxy -o go-template='{{with index .status.loadBalancer.ingress 0}}{{or .ip .hostname}}{{end}}')<commit_msg>Add dependency get to makefile.<commit_after>
all: test build

build:
	go build cmd/teleproxy/teleproxy.go && sudo chown root:wheel ./teleproxy && sudo chmod u+s ./teleproxy

get:
	go get -t -d ./...

test: get
	go test -v -exec sudo github.com/datawire/teleproxy/internal/pkg/nat/

KUBECONFIG ?= ~/.kube/config

run: build
	./teleproxy -kubeconfig ${KUBECONFIG} -dns $(shell fgrep nameserver /etc/resolv.conf | head -1 | awk '{ print $$2 }') -remote $(shell kubectl get svc teleproxy -o go-template='{{with index .status.loadBalancer.ingress 0}}{{or .ip .hostname}}{{end}}')
{'fraction_non_alphanumeric': 0.1588021778584392, 'fraction_numerical': 0.0054446460980036296, 'mean_word_length': 3.924107142857143, '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': '4449043', 'n_tokens_mistral': 405, 'n_tokens_neox': 400, 'n_words': 115}