<commit_before>REPO=tquach
APP_NAME=golang-rest-server
TAG=latest

deps:
	@go get -u github.com/tools/godep
	@go get -u github.com/alecthomas/gometalinter
	@gometalinter --install --update

all: $(APP_NAME)

$(APP_NAME): test
	@echo "Running tests..."
	@godep go build .

build: test
	@echo "Building ${APP_NAME}/${APP_NAME}:${TAG} ..."
	docker build -t $(REPO)/$(APP_NAME):$(TAG) .

start: build
	docker run -it --rm --name $(APP_NAME) -p 9000:9000 $(REPO)/$(APP_NAME) golang-rest-server --hostname localhost:9000

test: deps lint
	@godep go test ./... 

lint: 
	@gometalinter --vendor --disable gotype --fast ./...

clean:
	@rm -f $(APP_NAME)

deploy: build
	docker push $(REPO)/$(APP_NAME):$(TAG) 

.PHONY:
	start clean test build deploy lint deps<commit_msg>gometalinter: only fail on errors<commit_after>REPO=tquach
APP_NAME=golang-rest-server
TAG=latest

deps:
	@go get -u github.com/tools/godep
	@go get -u github.com/alecthomas/gometalinter
	@gometalinter --install --update

all: $(APP_NAME)

$(APP_NAME): test
	@echo "Running tests..."
	@godep go build .

build: test
	@echo "Building ${APP_NAME}/${APP_NAME}:${TAG} ..."
	docker build -t $(REPO)/$(APP_NAME):$(TAG) .

start: build
	docker run -it --rm --name $(APP_NAME) -p 9000:9000 $(REPO)/$(APP_NAME) golang-rest-server --hostname localhost:9000

test: deps lint
	@godep go test ./... 

lint: 
	@gometalinter --vendor --disable gotype --fast --errors ./...

clean:
	@rm -f $(APP_NAME)

deploy: build
	docker push $(REPO)/$(APP_NAME):$(TAG) 

.PHONY:
	start clean test build deploy lint deps
{'fraction_non_alphanumeric': 0.17450096587250483, 'fraction_numerical': 0.015453960077269801, 'mean_word_length': 3.680722891566265, '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': '385572', 'n_tokens_mistral': 651, 'n_tokens_neox': 604, 'n_words': 158}