<commit_before>BIN_PATH?=/usr/bin
CONF_PATH?=/etc/packetbeat
VERSION?=0.4.3
ARCH?=$(shell uname -m)


packetbeat: *.go
	go build

go-daemon/god: go-daemon/god.c
	make -C go-daemon

.PHONY: with_pfring
with_pfring:
	go build --tags havepfring

.PHONY: deps
deps:
	go get
	# the testify one we need to spell out, because it's only used in tests
	go get github.com/stretchr/testify
	# make sure vet is installed
	go get golang.org/x/tools/cmd/vet

.PHONY: install
install: packetbeat go-daemon/god
	install -D packetbeat $(DESTDIR)/$(BIN_PATH)/packetbeat
	install -D go-daemon/god $(DESTDIR)/$(BIN_PATH)/packetbeat-god
	install -m 644 -D packetbeat.conf $(DESTDIR)/$(CONF_PATH)/packetbeat.conf

.PHONY: dist
dist: packetbeat go-daemon/god
	mkdir packetbeat-$(VERSION)
	cp packetbeat packetbeat-$(VERSION)/
	cp go-daemon/god packetbeat-$(VERSION)/packetbeat-god
	cp packetbeat.conf packetbeat-$(VERSION)/
	tar czvf packetbeat-$(VERSION)-$(ARCH).tar.gz packetbeat-$(VERSION)

.PHONY: gofmt
gofmt:
	gofmt -w *.go

.PHONY: test
test:
	go test -short
	make -C tests test

.PHONY: testlong
testlong:
	go vet
	go test
	make -C tests test

.PHONY: cover
cover:
	go test -short -coverprofile=coverage.out
	go tool cover -html=coverage.out

.PHONY: benchmark
benchmark:
	go test -short -bench=.

.PHONY: clean
clean:
	rm packetbeat || true
	rm -r packetbeat-$(VERSION) || true
<commit_msg>Install yamlcheck in deps<commit_after>BIN_PATH?=/usr/bin
CONF_PATH?=/etc/packetbeat
VERSION?=0.4.3
ARCH?=$(shell uname -m)


packetbeat: *.go
	go build

go-daemon/god: go-daemon/god.c
	make -C go-daemon

.PHONY: with_pfring
with_pfring:
	go build --tags havepfring

.PHONY: deps
deps:
	go get
	# the testify one we need to spell out, because it's only used in tests
	go get github.com/stretchr/testify
	# make sure vet is installed
	go get golang.org/x/tools/cmd/vet
	# yamlcheck is used to verify the spec
	go get github.com/tsg/yamlcheck

.PHONY: install
install: packetbeat go-daemon/god
	install -D packetbeat $(DESTDIR)/$(BIN_PATH)/packetbeat
	install -D go-daemon/god $(DESTDIR)/$(BIN_PATH)/packetbeat-god
	install -m 644 -D packetbeat.conf $(DESTDIR)/$(CONF_PATH)/packetbeat.conf

.PHONY: dist
dist: packetbeat go-daemon/god
	mkdir packetbeat-$(VERSION)
	cp packetbeat packetbeat-$(VERSION)/
	cp go-daemon/god packetbeat-$(VERSION)/packetbeat-god
	cp packetbeat.conf packetbeat-$(VERSION)/
	tar czvf packetbeat-$(VERSION)-$(ARCH).tar.gz packetbeat-$(VERSION)

.PHONY: gofmt
gofmt:
	gofmt -w *.go

.PHONY: test
test:
	go test -short
	make -C tests test

.PHONY: testlong
testlong:
	go vet
	go test
	make -C tests test

.PHONY: cover
cover:
	go test -short -coverprofile=coverage.out
	go tool cover -html=coverage.out

.PHONY: benchmark
benchmark:
	go test -short -bench=.

.PHONY: clean
clean:
	rm packetbeat || true
	rm -r packetbeat-$(VERSION) || true

{'fraction_non_alphanumeric': 0.1254846669016567, 'fraction_numerical': 0.0042298202326401125, 'mean_word_length': 3.9789473684210526, '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': '385960', 'n_tokens_mistral': 1119, 'n_tokens_neox': 1091, 'n_words': 305}