<commit_before># Run me to verify that all tests pass and all binaries are buildable before pushing!
# If you do not, then Travis will be sad.

# Everything; this is the default behavior
all-the-things: tests shield plugins

# Running Tests
tests: test
test:
	ginkgo *
	go vet ./...

# Running Tests for race conditions
race:
	ginkgo -race *

# Building Shield
shield:
	go build ./cmd/shieldd
	go build ./cmd/shield-agent
	go build ./cmd/shield-schema

# Building Plugins
plugin: plugins
plugins:
	go build ./plugin/dummy
	go build ./plugin/elasticsearch
	go build ./plugin/postgres
	go build ./plugin/redis
	go build ./plugin/s3

# Run tests with coverage tracking, writing output to coverage/
coverage: agent.cov db.cov plugin.cov supervisor.cov timespec.cov
%.cov:
	@mkdir -p coverage
	@go test -coverprofile coverage/$@ ./$*

report:
	go tool cover -html=coverage/$(FOR).cov

fixmes: fixme
fixme:
	@grep -rn FIXME * | grep -v Godeps/ | grep --color FIXME

# Deferred: Naming plugins individually, e.g. make plugin dummy
# Deferred: Looping through plugins instead of listing them<commit_msg>updated makefile to support install<commit_after># Run me to verify that all tests pass and all binaries are buildable before pushing!
# If you do not, then Travis will be sad.

BUILD_TYPE?=build

# Everything; this is the default behavior
all-the-things: tests shield plugins

# Running Tests
tests: test
test:
	ginkgo *
	go vet ./...

# Running Tests for race conditions
race:
	ginkgo -race *

# Building Shield
shield:
	go $(BUILD_TYPE) ./cmd/shieldd
	go $(BUILD_TYPE) ./cmd/shield-agent
	go $(BUILD_TYPE) ./cmd/shield-schema

# Building Plugins
plugin: plugins
plugins:
	go $(BUILD_TYPE) ./plugin/dummy
	go $(BUILD_TYPE) ./plugin/elasticsearch
	go $(BUILD_TYPE) ./plugin/postgres
	go $(BUILD_TYPE) ./plugin/redis
	go $(BUILD_TYPE) ./plugin/s3

# Run tests with coverage tracking, writing output to coverage/
coverage: agent.cov db.cov plugin.cov supervisor.cov timespec.cov
%.cov:
	@mkdir -p coverage
	@go test -coverprofile coverage/$@ ./$*

report:
	go tool cover -html=coverage/$(FOR).cov

fixmes: fixme
fixme:
	@grep -rn FIXME * | grep -v Godeps/ | grep --color FIXME

# Deferred: Naming plugins individually, e.g. make plugin dummy
# Deferred: Looping through plugins instead of listing them
{'fraction_non_alphanumeric': 0.1037037037037037, 'fraction_numerical': 0.0008714596949891067, 'mean_word_length': 3.8134171907756813, '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': '6548751', 'n_tokens_mistral': 748, 'n_tokens_neox': 723, 'n_words': 282}