<commit_before>GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")

REQUIRED_FOR_STATIC_BINARY_V7 =-a -tags "V7"
LD_FLAGS_LINUX_V7 = -extldflags \"-static\"

export GOFLAGS = -tags=V7


build: out/test_plugin_v7

clean:
	rm -f $(wildcard out/test_plugin*)

out/test_plugin_v7: $(GOSRC)
	CGO_ENABLED=0 go build \
	  $(REQUIRED_FOR_STATIC_BINARY_V7) \
	  -ldflags "$(LD_FLAGS_LINUX_V7)" -o out/test_plugin_v7 .
<commit_msg>Make it easier to install the v7 test plugins<commit_after>GOSRC = $(shell find . -name "*.go" ! -name "*test.go" ! -name "*fake*" ! -path "./integration/*")

REQUIRED_FOR_STATIC_BINARY_V7 =-a -tags "V7"
LD_FLAGS_LINUX_V7 = -extldflags \"-static\"

export GOFLAGS = -tags=V7


build: out/test_plugin_v7

clean:
	rm -f $(wildcard out/test_plugin*)

out/test_plugin_v7: $(GOSRC)
	CGO_ENABLED=0 go build \
	  $(REQUIRED_FOR_STATIC_BINARY_V7) \
	  -ldflags "$(LD_FLAGS_LINUX_V7)" -o out/test_plugin_v7 .

install: build
	cf install-plugin -f out/test_plugin_v7
	cf plugins
{'fraction_non_alphanumeric': 0.1525096525096525, 'fraction_numerical': 0.021235521235521235, 'mean_word_length': 4.185, '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': '6975405', 'n_tokens_mistral': 446, 'n_tokens_neox': 437, 'n_words': 92}