<commit_before>NAME = fid

COMMIT = $(shell git rev-parse --short HEAD)

VERSION = $(shell git describe 2> /dev/null || echo "0.0.0-$(COMMIT)")
BUILDTIME = $(shell date +%Y-%m-%dT%T%z)

BUILD_CMD = CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo
LD_OPTS = -ldflags="-X main.version=$(VERSION) -X main.buildtime=$(BUILDTIME) -w"
SRC_FILES = ./example/*.go

clean:
	go clean -i ./...
	rm -f $(NAME)
	rm -rf dist
	rm -rf tmp/*

# Local platform build
$(NAME):
	go build $(LD_OPTS) -o $(NAME) $(SRC_FILES)

deps:
	go get -d ./...

test:
	go test -cover $(shell go list ./... | grep -v /vendor/)

show-version:
	@echo $(VERSION)

# Build all
dist: dist/$(NAME)-windows.zip
	for os in linux darwin; do \
		GOOS=$${os} $(BUILD_CMD) $(LD_OPTS) -o dist/$(NAME) $(SRC_FILES) && \
		tar -C dist -czf dist/$(NAME)-$${os}.tgz $(NAME); rm -f dist/$(NAME); \
	done;

# Build windows
dist/$(NAME)d-windows.zip:
	GOOS=windows $(BUILD_CMD) $(LD_OPTS) -o dist/$(NAME).exe $(SRC_FILES) && \
	cd dist && zip $(NAME)-windows.zip $(NAME).exe; rm -f dist/$(NAME)d.exe

protoc:
	protoc rpc.proto -I ./ -I ../../../ -I ../../../github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --go_out=plugins=grpc:.

protoc-reverse-proxy:
	protoc rpc.proto -I ./ -I ../../../ -I ../../../github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis --grpc-gateway_out=logtostderr=true:.
<commit_msg>Fix dist<commit_after>NAME = fid

COMMIT = $(shell git rev-parse --short HEAD)

VERSION = $(shell git describe 2> /dev/null || echo "0.0.0-$(COMMIT)")
BUILDTIME = $(shell date +%Y-%m-%dT%T%z)

BUILD_CMD = CGO_ENABLED=0 go build -a -tags netgo -installsuffix netgo
LD_OPTS = -ldflags="-X main.version=$(VERSION) -X main.buildtime=$(BUILDTIME) -w"
SRC_FILES = ./example/*.go

clean:
	go clean -i ./...
	rm -f $(NAME)
	rm -rf dist
	rm -rf tmp/*

# Local platform build
$(NAME):
	go build $(LD_OPTS) -o $(NAME) $(SRC_FILES)

deps:
	go get -d ./...

test:
	go test -cover $(shell go list ./... | grep -v /vendor/)

show-version:
	@echo $(VERSION)

# Build all
dist: dist/$(NAME)-windows.zip
	for os in linux darwin; do \
		GOOS=$${os} $(BUILD_CMD) $(LD_OPTS) -o dist/$(NAME) $(SRC_FILES) && \
		tar -C dist -czf dist/$(NAME)-$${os}.tgz $(NAME); rm -f dist/$(NAME); \
	done;

# Build windows
dist/$(NAME)-windows.zip:
	GOOS=windows $(BUILD_CMD) $(LD_OPTS) -o dist/$(NAME).exe $(SRC_FILES) && \
	cd dist && zip $(NAME)-windows.zip $(NAME).exe; rm -f dist/$(NAME).exe

protoc:
	protoc rpc.proto -I ./ -I ../../../ -I --go_out=plugins=grpc:.


{'fraction_non_alphanumeric': 0.2205005959475566, 'fraction_numerical': 0.003972983710766786, 'mean_word_length': 3.0678513731825525, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '1382452', 'n_tokens_mistral': 1035, 'n_tokens_neox': 1017, 'n_words': 264}