<commit_before>all: build

TAG?=dev
FLAGS=
ENVVAR=

deps:
	go get github.com/tools/godep

build: clean deps
	$(ENVVAR) godep go build ./...
	$(ENVVAR) godep go build -o cluster-autoscaler 

test-unit: clean deps build
	$(ENVVAR) godep go test --test.short -race ./... $(FLAGS)

release: build

ifndef REGISTRY
    $(error REGISTRY is undefined)
endif
	docker build -t ${REGISTRY}/cluster-autoscaler:${TAG} .
	gcloud docker push ${REGISTRY}/cluster-autoscaler:${TAG}

clean:
	rm -f cluster-autoscaler

.PHONY: all deps build test-unit clean release<commit_msg>Fix makefile so that it doesn't require REGISTRY to be set for every rule<commit_after>all: build

TAG?=dev
FLAGS=
ENVVAR=

deps:
	go get github.com/tools/godep

build: clean deps
	$(ENVVAR) godep go build ./...
	$(ENVVAR) godep go build -o cluster-autoscaler 

test-unit: clean deps build
	$(ENVVAR) godep go test --test.short -race ./... $(FLAGS)

release: build
ifndef REGISTRY
	ERR = $(error REGISTRY is undefined)
	$(ERR)
endif
	docker build -t ${REGISTRY}/cluster-autoscaler:${TAG} .
	gcloud docker push ${REGISTRY}/cluster-autoscaler:${TAG}

clean:
	rm -f cluster-autoscaler

.PHONY: all deps build test-unit clean release
{'fraction_non_alphanumeric': 0.1271043771043771, 'fraction_numerical': 0.0, 'mean_word_length': 3.9541666666666666, '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': '3714747', 'n_tokens_mistral': 464, 'n_tokens_neox': 427, 'n_words': 136}