<commit_before>PREFIX := $(GOPATH)
BINDIR := $(PREFIX)/bin
SOURCE := *.go router/*.go middleware/*.go middleware/*/*.go backend/*.go backend/*/*.go

all: fmt mohawk

mohawk: $(SOURCE)
	go build -o mohawk *.go

.PHONY: fmt
fmt: $(SOURCE)
	gofmt -s -l -w $(SOURCE)

.PHONY: clean
clean:
	$(RM) mohawk

.PHONY: test
test:
	bats test/mohawk.bats

.PHONY: secret
secret:
	openssl ecparam -genkey -name secp384r1 -out server.key
	openssl req -new -x509 -sha256 -key server.key -out server.pem -days 3650 -subj /C=US/ST=name/O=comp

.PHONY: container
container:
	# systemctl start docker
	docker build -t yaacov/mohawk ./
	docker tag yaacov/mohawk docker.io/yaacov/mohawk
	# docker push docker.io/yaacov/mohawk
	# docker run --name mohawk  -e HAWKULAE_BACKEND="memory" -v $(readlink -f ./):/root/ssh:Z yaacov/mohawk

.PHONY: install
install: fmt mohawk
	install -D -m0755 mohawk $(DESTDIR)$(BINDIR)/mohawk<commit_msg>remove extra space in makefile<commit_after>PREFIX := $(GOPATH)
BINDIR := $(PREFIX)/bin
SOURCE := *.go router/*.go middleware/*.go middleware/*/*.go backend/*.go backend/*/*.go

all: fmt mohawk

mohawk: $(SOURCE)
	go build -o mohawk *.go

.PHONY: fmt
fmt: $(SOURCE)
	gofmt -s -l -w $(SOURCE)

.PHONY: clean
clean:
	$(RM) mohawk

.PHONY: test
test:
	bats test/mohawk.bats

.PHONY: secret
secret:
	openssl ecparam -genkey -name secp384r1 -out server.key
	openssl req -new -x509 -sha256 -key server.key -out server.pem -days 3650 -subj /C=US/ST=name/O=comp

.PHONY: container
container:
	# systemctl start docker
	docker build -t yaacov/mohawk ./
	docker tag yaacov/mohawk docker.io/yaacov/mohawk
	# docker push docker.io/yaacov/mohawk
	# docker run --name mohawk -e HAWKULAE_BACKEND="memory" -v $(readlink -f ./):/root/ssh:Z yaacov/mohawk

.PHONY: install
install: fmt mohawk
	install -D -m0755 mohawk $(DESTDIR)$(BINDIR)/mohawk
{'fraction_non_alphanumeric': 0.14923747276688454, 'fraction_numerical': 0.0196078431372549, 'mean_word_length': 3.6624365482233503, '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': '6728168', 'n_tokens_mistral': 807, 'n_tokens_neox': 762, 'n_words': 205}