<commit_before>.PHONY: \
	all \
	deps \
	update-deps \
	test-deps \
	update-test-deps \
	build \
	install \
	lint \
	vet \
	errcheck \
	pretest \
	test \
	test-short \
	bench \
	clean \
	container-build \
	container-shell \
	container-launch \
	container-test \
	container-test-short \
	container-clean

include etc/env/pfs.env

BENCH_TIMEOUT = "20m"

all: test

print-%:
	@echo $* = $($*)

deps:
	go get -d -v ./...

update-deps:
	go get -d -v -u -f ./...

test-deps:
	go get -d -v -t ./...

update-test-deps:
	go get -d -v -t -u -f ./...

build: deps
	go build ./...

install: deps
	go install ./...

lint:
	go get -v github.com/golang/lint/golint
	golint ./...

vet:
	go get -v golang.org/x/tools/cmd/vet
	go vet ./...

errcheck:
	errcheck ./...

pretest: lint vet errcheck

# TODO(pedge): add pretest when fixed
test: test-deps
	go test ./...

# TODO(pedge): add pretest when fixed
test-short: test-deps
	go test -test.short ./...

bench: test-deps
	go test ./... -bench . -timeout $(BENCH_TIMEOUT)

clean:
	go clean -i ./...

container-build:
	docker build -t $(PFS_IMAGE) .<commit_msg>comment out go get of go vet in Makefile<commit_after>.PHONY: \
	all \
	deps \
	update-deps \
	test-deps \
	update-test-deps \
	build \
	install \
	lint \
	vet \
	errcheck \
	pretest \
	test \
	test-short \
	bench \
	clean \
	container-build \
	container-shell \
	container-launch \
	container-test \
	container-test-short \
	container-clean

include etc/env/pfs.env

BENCH_TIMEOUT = "20m"

all: test

print-%:
	@echo $* = $($*)

deps:
	go get -d -v ./...

update-deps:
	go get -d -v -u -f ./...

test-deps:
	go get -d -v -t ./...

update-test-deps:
	go get -d -v -t -u -f ./...

build: deps
	go build ./...

install: deps
	go install ./...

lint:
	go get -v github.com/golang/lint/golint
	golint ./...

vet:
	#go get -v golang.org/x/tools/cmd/vet
	go vet ./...

errcheck:
	errcheck ./...

pretest: lint vet errcheck

# TODO(pedge): add pretest when fixed
test: test-deps
	go test ./...

# TODO(pedge): add pretest when fixed
test-short: test-deps
	go test -test.short ./...

bench: test-deps
	go test ./... -bench . -timeout $(BENCH_TIMEOUT)

clean:
	go clean -i ./...

container-build:
	docker build -t $(PFS_IMAGE) .
{'fraction_non_alphanumeric': 0.1751131221719457, 'fraction_numerical': 0.0018099547511312218, 'mean_word_length': 2.024623803009576, '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': '6751122', 'n_tokens_mistral': 953, 'n_tokens_neox': 940, 'n_words': 244}