<commit_before>ifndef VENDOR_IGNORE_DIRS
	VENDOR_IGNORE_DIRS = go.pedge.io
endif

TMP_VENDORIZE_CLIENT_DIR = $(GOPATH)/src/github.com/pachyderm/tmp_vendorize_client

vendor-client:
	rm -rf $(TMP_VENDORIZE_CLIENT_DIR)
	mkdir -p $(TMP_VENDORIZE_CLIENT_DIR)
	cp tmp_vendorize_client_go $(TMP_VENDORIZE_CLIENT_DIR)/tmp_vendorize_client.go
	cd $(TMP_VENDORIZE_CLIENT_DIR) && govendor init && govendor add +external
	cp -R $(TMP_VENDORIZE_CLIENT_DIR)/vendor/github.com/pachyderm/pachyderm vendor/

vendor-update:
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=0 go get -d -v -t -u -f ./src/... ./.

vendor-without-update:
	go get -v github.com/kardianos/govendor
	rm -rf vendor || echo "no existing vendor directory"
	govendor init
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 govendor add +external
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 govendor update +vendor
	$(foreach vendor_dir, $(VENDOR_IGNORE_DIRS), rm -rf vendor/$(vendor_dir) || exit; git checkout vendor/$(vendor_dir) || exit;)

vendor: vendor-update vendor-without-update<commit_msg>Just pull out the client code when vendorizing<commit_after>ifndef VENDOR_IGNORE_DIRS
	VENDOR_IGNORE_DIRS = go.pedge.io
endif

TMP_VENDORIZE_CLIENT_DIR = $(GOPATH)/src/github.com/pachyderm/tmp_vendorize_client

vendor-client:
	rm -rf $(TMP_VENDORIZE_CLIENT_DIR)
	mkdir -p $(TMP_VENDORIZE_CLIENT_DIR)
	cp tmp_vendorize_client_go $(TMP_VENDORIZE_CLIENT_DIR)/tmp_vendorize_client.go
	cd $(TMP_VENDORIZE_CLIENT_DIR) && govendor init && govendor add +external
	mkdir -p vendor/github.com/pachyderm/pachyderm/src/
	cp -R $(TMP_VENDORIZE_CLIENT_DIR)/vendor/github.com/pachyderm/pachyderm/src/client vendor/github.com/pachyderm/pachyderm/src

vendor-update:
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 GO15VENDOREXPERIMENT=0 go get -d -v -t -u -f ./src/... ./.

vendor-without-update:
	go get -v github.com/kardianos/govendor
	rm -rf vendor || echo "no existing vendor directory"
	govendor init
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 govendor add +external
	CGO_ENABLED=1 GOOS=linux GOARCH=amd64 govendor update +vendor
	$(foreach vendor_dir, $(VENDOR_IGNORE_DIRS), rm -rf vendor/$(vendor_dir) || exit; git checkout vendor/$(vendor_dir) || exit;)

vendor: vendor-update vendor-without-update
{'fraction_non_alphanumeric': 0.10921348314606742, 'fraction_numerical': 0.010786516853932584, 'mean_word_length': 5.684684684684685, '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': '766961', 'n_tokens_mistral': 862, 'n_tokens_neox': 886, 'n_words': 173}