<commit_before>LOCAL_BINARY=build/local/gen-etcd-discovery-params
LINUX_BINARY=build/linux/gen-etcd-discovery-params

all: $(LINUX_BINARY) $(LOCAL_BINARY)

clean:
	rm -R build

docker: $(LINUX_BINARY)
	docker build -t obmarg/gen-etcd-discovery-params .

$(LINUX_BINARY): build/ main.go
	docker run --rm -it -v"$(CURDIR)":/usr/src/ golang:1.7.4 /bin/bash -c "cd /usr/src/ && go get ; CGO_ENABLED=0 go build -ldflags \"-s\" -o $(LINUX_BINARY)"

$(LOCAL_BINARY): build/ main.go
	go build -o $(LOCAL_BINARY)

build/:
	mkdir -p build/linux
	mkdir -p build/local<commit_msg>Push image to docker hub after build.<commit_after>LOCAL_BINARY=build/local/gen-etcd-discovery-params
LINUX_BINARY=build/linux/gen-etcd-discovery-params

all: $(LINUX_BINARY) $(LOCAL_BINARY)

clean:
	rm -R build

docker: $(LINUX_BINARY)
	docker build -t obmarg/gen-etcd-discovery-params .
	docker push obmarg/gen-etcd-discovery-params

$(LINUX_BINARY): build/ main.go
	docker run --rm -it -v"$(CURDIR)":/usr/src/ golang:1.7.4 /bin/bash -c "cd /usr/src/ && go get ; CGO_ENABLED=0 go build -ldflags \"-s\" -o $(LINUX_BINARY)"

$(LOCAL_BINARY): build/ main.go
	go build -o $(LOCAL_BINARY)

build/:
	mkdir -p build/linux
	mkdir -p build/local
{'fraction_non_alphanumeric': 0.16003316749585406, 'fraction_numerical': 0.006633499170812604, 'mean_word_length': 4.029166666666667, 'pattern_counts': {'":': 2, '<': 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': '2995540', 'n_tokens_mistral': 504, 'n_tokens_neox': 488, 'n_words': 110}