<commit_before># Copyright 2011 Google Inc. All Rights Reserved.
# This file is available under the Apache license.

GOFILES=\
	ast.go\
	compiler.go\
	mtail.go\
	export.go\
	lexer.go\
	metric.go\
	parser.go\
	progs.go\
	symtab.go\
	tail.go\
	unparser.go\
	vm.go\
	watcher.go\

GOTESTFILES=\
	mtail_test.go\
	ex_test.go\
	export_test.go\
	lexer_test.go\
	parser_test.go\
	tail_test.go\
	vm_test.go\


CLEANFILES+=\
	parser.go\
	y.output\

all: mtail

mtail: $(GOFILES)
	go build

parser.go: parser.y
	go tool yacc -v y.output -o $@ -p Mtail $<

emgen/emgen: emgen/emgen.go
	cd emgen && go build

.PHONY: test
test: $(GOFILES) $(GOTESTFILES)
	go test -gcflags '-N' -test.v=true

.PHONY: smoke
smoke: $(GOFILES) $(GOTESTFILES)
	go test -gcflags '-N' -test.v=true -test.short

.PHONY: bench
bench: $(GOFILES) $(GOTESTFILES)
	go test -test.bench=.*

.PHONY: recbench
recbench: $(GOFILES) $(GOTESTFILES)
	go test -test.bench=.* --record_benchmark

.PHONY: testall
testall: test bench
<commit_msg>Still need a makefile.<commit_after># Copyright 2011 Google Inc. All Rights Reserved.
# This file is available under the Apache license.

GOFILES=\
	ast.go\
	compiler.go\
	mtail.go\
	export.go\
	lexer.go\
	metric.go\
	parser.go\
	progs.go\
	symtab.go\
	tail.go\
	unparser.go\
	vm.go\
	watcher.go\

GOTESTFILES=\
	mtail_test.go\
	ex_test.go\
	export_test.go\
	lexer_test.go\
	parser_test.go\
	tail_test.go\
	vm_test.go\


CLEANFILES+=\
	parser.go\
	y.output\

all: mtail

mtail: $(GOFILES)
	go build

parser.go: parser.y
	go generate

emgen/emgen: emgen/emgen.go
	cd emgen && go build

.PHONY: test
test: $(GOFILES) $(GOTESTFILES)
	go test -gcflags '-N' -test.v=true

.PHONY: smoke
smoke: $(GOFILES) $(GOTESTFILES)
	go test -gcflags '-N' -test.v=true -test.short

.PHONY: bench
bench: $(GOFILES) $(GOTESTFILES)
	go test -test.bench=.*

.PHONY: recbench
recbench: $(GOFILES) $(GOTESTFILES)
	go test -test.bench=.* --record_benchmark

.PHONY: testall
testall: test bench

{'fraction_non_alphanumeric': 0.14759959141981613, 'fraction_numerical': 0.0040858018386108275, 'mean_word_length': 3.2494577006507592, 'pattern_counts': {'":': 0, '<': 4, '<?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': '3411390', 'n_tokens_mistral': 899, 'n_tokens_neox': 885, 'n_words': 209}