<commit_before>HERE = $(shell pwd)
BIN = $(HERE)/bin
GODIR = $(HERE)/go
GODEP = $(BIN)/godep
DEPS = $(HERE)/Godeps/_workspace
GOPATH = $(DEPS):$(HERE):$GOPATH
GOBIN = $(BIN)

SYSTEMGO = $(BIN)/go

SIMPLETEST = $(HERE)/simplepush_test/run_all.py
PLATFORM=$(shell uname)

# Setup commands and env vars if there is no system go linked into bin/go
ifeq ("$(wildcard $(SYSTEMGO))", "")
GO = $(HERE)/go/bin/go
GODEPCMD = GOROOT=$(HERE)/go GOPATH=$(GOPATH) $(GODEP)
GOCMD = GOROOT=$(HERE)/go GOPATH=$(GOPATH) $(GO)
USESYSTEM = 0
else
GO = $(SYSTEMGO)
GODEPCMD = $(GODEP)
GOCMD = $(GO)
USESYSTEM = 1
endif

.PHONY: all build clean test simplepush

all: build

$(GODIR):
ifeq ($(PLATFORM),Darwin)
	curl -O https://storage.googleapis.com/golang/go1.3.1.darwin-amd64-osx10.8.tar.gz
else
	curl -O https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz
endif
	tar xzvf go1.3.1.*.tar.gz
	rm go1.3.1*.tar.gz

# Download go if we're not using the system go that someone linked as bin/go
ifeq ($(USESYSTEM), 0)<commit_msg>Add go binary to path for use by godep.<commit_after>HERE = $(shell pwd)
BIN = $(HERE)/bin
GODIR = $(HERE)/go
GODEP = $(BIN)/godep
DEPS = $(HERE)/Godeps/_workspace
GOPATH = $(DEPS):$(HERE):$GOPATH
GOBIN = $(BIN)

SYSTEMGO = $(BIN)/go

SIMPLETEST = $(HERE)/simplepush_test/run_all.py
PLATFORM=$(shell uname)

# Setup commands and env vars if there is no system go linked into bin/go
ifeq ("$(wildcard $(SYSTEMGO))", "")
GO = $(HERE)/go/bin/go
GODEPCMD = GOROOT=$(HERE)/go GOPATH=$(GOPATH) $(GODEP)
GOCMD = GOROOT=$(HERE)/go GOPATH=$(GOPATH) $(GO)
PATH += $(HERE)/go/bin
USESYSTEM = 0
else
GO = $(SYSTEMGO)
GODEPCMD = $(GODEP)
GOCMD = $(GO)
USESYSTEM = 1
endif

.PHONY: all build clean test simplepush

all: build

$(GODIR):
ifeq ($(PLATFORM),Darwin)
	curl -O https://storage.googleapis.com/golang/go1.3.1.darwin-amd64-osx10.8.tar.gz
else
	curl -O https://storage.googleapis.com/golang/go1.3.1.linux-amd64.tar.gz
endif
	tar xzvf go1.3.1.*.tar.gz
	rm go1.3.1*.tar.gz

# Download go if we're not using the system go that someone linked as bin/go
ifeq ($(USESYSTEM), 0)
{'fraction_non_alphanumeric': 0.17989417989417988, 'fraction_numerical': 0.021164021164021163, 'mean_word_length': 4.402597402597403, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3641502', 'n_tokens_mistral': 888, 'n_tokens_neox': 866, 'n_words': 211}