<commit_before>.PHONY: setup compile test test-int test-ci dev-up dev-down prod-up prod-down

VM=192.168.99.106

setup:
	mkdir ./assets/tls/ && mkcert -cert-file ./assets/tls/cert.pem -key-file ./assets/tls/key.pem localhost ${VM} && chmod +r ./assets/tls/key.pem

compile:
	CGO_ENABLED=0 go build -ldflags='-s -w'

test:
	go test -v -race -cover ./...

test-int:
	go test -v -race -cover -tags=integration ./...

test-ci:
	go test -v -race -tags=integration -failfast -coverprofile=coverage.txt -covermode=atomic ./...

dev-up:
	docker-compose --file ./build/dev/docker-compose.yml up -d --build

dev-down:
	docker-compose --file ./build/dev/docker-compose.yml down --rmi all -v

prod-up:
	docker-compose --file ./build/prod/docker-compose.yml up -d --build

prod-down:
	docker-compose --file ./build/prod/docker-compose.yml down --rmi all -v<commit_msg>Execute every test at least once<commit_after>.PHONY: setup compile test test-int test-ci dev-up dev-down prod-up prod-down

VM=192.168.99.106

setup:
	mkdir ./assets/tls/ && mkcert -cert-file ./assets/tls/cert.pem -key-file ./assets/tls/key.pem localhost ${VM} && chmod +r ./assets/tls/key.pem

compile:
	CGO_ENABLED=0 go build -ldflags='-s -w'

test:
	go test -v -race -count=1 -cover ./...

test-int:
	go test -v -race -count=1 -cover -tags=integration ./...

test-ci:
	go test -v -race -count=1 -tags=integration -failfast -coverprofile=coverage.txt -covermode=atomic ./...

dev-up:
	docker-compose --file ./build/dev/docker-compose.yml up -d --build

dev-down:
	docker-compose --file ./build/dev/docker-compose.yml down --rmi all -v

prod-up:
	docker-compose --file ./build/prod/docker-compose.yml up -d --build

prod-down:
	docker-compose --file ./build/prod/docker-compose.yml down --rmi all -v
{'fraction_non_alphanumeric': 0.17312072892938496, 'fraction_numerical': 0.015375854214123007, 'mean_word_length': 2.8195652173913044, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '1228095', 'n_tokens_mistral': 718, 'n_tokens_neox': 669, 'n_words': 171}