<commit_before>BTIME     ?= $(shell date '+%Y%m%d%H%M%S')
BTIME_H   ?= $(shell date '+%Y-%m-%dT%H:%M:%S')
VERSION   = $(shell git log --pretty=format:%h --abbrev=10 | head -1)
GOFLAGS   = GOOS=$(GOOS) GOARCH=$(GOARCH)
GOLDFLAGS += -X main.VERSION=$(VERSION)
GOLDFLAGS += -X main.BUILDTIME=$(BTIME_H)
GOOPTS    = -ldflags "$(GOLDFLAGS)"

.PHONY: linux
linux:
	@GOOS=linux GOARCH=amd64 go build $(GOOPTS) -o fam100<commit_msg>add tag in version info with sed shazaam.<commit_after>BTIME     ?= $(shell date '+%Y%m%d%H%M%S')
BTIME_H   ?= $(shell date '+%Y-%m-%dT%H:%M:%S')
VERSION   = $(shell git log --pretty=format:'%h %D' --abbrev=10 | head -1 | sed -e 's/\(\w\) .*tag: \([^,]\+\),.*/\1_(\2)/')
GOFLAGS   = GOOS=$(GOOS) GOARCH=$(GOARCH)
GOLDFLAGS += -X main.VERSION=$(VERSION)
GOLDFLAGS += -X main.BUILDTIME=$(BTIME_H)
GOOPTS    = -ldflags "$(GOLDFLAGS)"

.PHONY: linux
linux:
	@GOOS=linux GOARCH=amd64 go build $(GOOPTS) -o fam100
{'fraction_non_alphanumeric': 0.23415682062298604, 'fraction_numerical': 0.01933404940923738, 'mean_word_length': 4.235955056179775, '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': '4073561', 'n_tokens_mistral': 414, 'n_tokens_neox': 394, 'n_words': 88}