<commit_before>DEB_VERSION = $(shell dpkg-parsechangelog -S version)

all: clean gansoi

gansoi:
	CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o $@

dockerroot/etc/ssl/certs/ca-certificates.crt: /etc/ssl/certs/ca-certificates.crt
	cp -a $< $@

docker-image: clean gansoi dockerroot/etc/ssl/certs/ca-certificates.crt
	docker build -t abrander/gansoi .

docker-push: docker-image
	docker push abrander/gansoi

docker-run:
	docker run --rm -p 80:80 -p 443:443 -e DEBUG=* abrander/gansoi

deb:
	dpkg-buildpackage -uc -B
	rm ../gansoi_$(DEB_VERSION)_amd64.changes
	mv ../gansoi_$(DEB_VERSION)_amd64.deb ./

clean:
	rm -f gansoi dockerroot/etc/ssl/certs/ca-certificates.crt

test:
	go test ./...<commit_msg>Include -cover in make test.<commit_after>DEB_VERSION = $(shell dpkg-parsechangelog -S version)

all: clean gansoi

gansoi:
	CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o $@

dockerroot/etc/ssl/certs/ca-certificates.crt: /etc/ssl/certs/ca-certificates.crt
	cp -a $< $@

docker-image: clean gansoi dockerroot/etc/ssl/certs/ca-certificates.crt
	docker build -t abrander/gansoi .

docker-push: docker-image
	docker push abrander/gansoi

docker-run:
	docker run --rm -p 80:80 -p 443:443 -e DEBUG=* abrander/gansoi

deb:
	dpkg-buildpackage -uc -B
	rm ../gansoi_$(DEB_VERSION)_amd64.changes
	mv ../gansoi_$(DEB_VERSION)_amd64.deb ./

clean:
	rm -f gansoi dockerroot/etc/ssl/certs/ca-certificates.crt

test:
	go test -cover ./...
{'fraction_non_alphanumeric': 0.13604972375690608, 'fraction_numerical': 0.020718232044198894, 'mean_word_length': 3.7198697068403908, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1927294', 'n_tokens_mistral': 648, 'n_tokens_neox': 597, 'n_words': 127}