<commit_before># Sourced from here https://gist.github.com/matthiasr/8333ae8536036614265a
# Which came from https://groups.google.com/forum/#!topic/google-containers/8CcyB6JEeaQ

KUBERNETES_VERSION ?= 1.1.8
KUBERNETES_SOURCE_URL = https://github.com/kubernetes/kubernetes/archive/v$(KUBERNETES_VERSION).tar.gz
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

client.tgz: src/6824/gfs/client/main.go src/vendor/k8s.io/kubernetes/.available src/vendor/k8s.io/kubernetes/.lifted_godeps
	rm -f $@
	cd src && env GOPATH=$(ROOT_DIR) go get 6824/gfs/...
	tar czf $@ \
		--exclude ./src/student \
		--exclude ./Makefile \
		--exclude ./bin \
		--exclude ./pkg \
		--exclude ./build \
		--exclude './*.tgz' \
		--exclude './*.tar.gz' \
		.

student.tgz: src/student/gfs/master/main.go src/student/gfs/worker/main.go
	rm -f $@
	cd src && env GOPATH=$(ROOT_DIR) go get student/gfs/...
	tar czf $@ \
		--exclude ./src/6824/gfs/client \
		--exclude ./src/vendor \
		--exclude ./Makefile \
		--exclude ./bin \
		--exclude ./pkg \
		--exclude ./build \
		--exclude './*.tgz' \
		--exclude './*.tar.gz' \
		.


# Lift a source tree into the vendor tree, skipping Godeps
src/vendor/%/.available: build/$(KUBERNETES_VERSION)/%/.available
	mkdir -p $(@D)
	rsync -a --exclude=Godeps $(<D)/ $(@D)

# For a given source tree, lift all its godeps into the vendor tree
src/vendor/%/.lifted_godeps: build/$(KUBERNETES_VERSION)/%/.available
	mkdir -p src/vendor/<commit_msg>Support more usernames<commit_after># Sourced from here https://gist.github.com/matthiasr/8333ae8536036614265a
# Which came from https://groups.google.com/forum/#!topic/google-containers/8CcyB6JEeaQ

KUBERNETES_VERSION ?= 1.1.8
KUBERNETES_SOURCE_URL = https://github.com/kubernetes/kubernetes/archive/v$(KUBERNETES_VERSION).tar.gz
ROOT_DIR:=$(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))

client.tgz: src/6824/gfs/client/main.go src/vendor/k8s.io/kubernetes/.available src/vendor/k8s.io/kubernetes/.lifted_godeps
	rm -f $@
	cd src && env GOPATH=$(ROOT_DIR) go get 6824/gfs/...
	tar czf $@ \
		--exclude './src/*/gfs/master' \
		--exclude './src/*/gfs/worker' \
		--exclude ./Makefile \
		--exclude ./bin \
		--exclude ./pkg \
		--exclude ./build \
		--exclude './*.tgz' \
		--exclude './*.tar.gz' \
		.

%.tgz: src/%/gfs/master/main.go src/%/gfs/worker/main.go
	rm -f $@
	cd src && env GOPATH=$(ROOT_DIR) go get $*/gfs/...
	tar czf $@ \
		--exclude ./src/6824/gfs/client \
		--exclude ./src/vendor \
		--exclude ./Makefile \
		--exclude ./bin \
		--exclude ./pkg \
		--exclude ./build \
		--exclude './*.tgz' \
		--exclude './*.tar.gz' \
		.


# Lift a source tree into the vendor tree, skipping Godeps
src/vendor/%/.available: build/$(KUBERNETES_VERSION)/%/.available
	mkdir -p $(@D)
	rsync -a --exclude=Godeps $(<D)/ $(@D)

# For a given source tree, lift all its godeps into the vendor tree
src/vendor/%/.lifted_godeps: build/$(KUBERNETES_VERSION)/%/.available
	mkdir -p src/vendor/
{'fraction_non_alphanumeric': 0.19197031039136303, 'fraction_numerical': 0.024291497975708502, 'mean_word_length': 2.870757180156658, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '4394653', 'n_tokens_mistral': 1278, 'n_tokens_neox': 1116, 'n_words': 233}