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

TARG=emtail

GOFILES=\
	ast.go\
	lexer.go\
	main.go\
	metric.go\
	parser.go\
	scope.go\
	tail.go\
	unparser.go\
	vm.go\
	watch.go\

GOTESTFILES=\
	ex_test.go\
	lexer_test.go\
	parser_test.go\
	tail_test.go\
	vm_test.go\
	watch_test.go\

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

all: parser.go $(GOFILES)
	go build

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

.PHONY: test
test:
	go test

.PHONY: testshort
testshort:<commit_msg>Fix up makefile test target dependencies.<commit_after># Copyright 2011 Google Inc. All Rights Reserved.
# This file is available under the Apache license.

TARG=emtail

GOFILES=\
	ast.go\
	lexer.go\
	main.go\
	metric.go\
	parser.go\
	scope.go\
	tail.go\
	unparser.go\
	vm.go\
	watch.go\

GOTESTFILES=\
	ex_test.go\
	lexer_test.go\
	parser_test.go\
	tail_test.go\
	vm_test.go\
	watch_test.go\

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

all: parser.go $(GOFILES)
	go build

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

.PHONY: test
test: parser.go $(GOFILES) $(GOTESTFILES)
	go test

.PHONY: testshort
testshort:
{'fraction_non_alphanumeric': 0.13087248322147652, 'fraction_numerical': 0.006711409395973154, 'mean_word_length': 3.016835016835017, 'pattern_counts': {'":': 0, '<': 5, '<?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': '6896661', 'n_tokens_mistral': 542, 'n_tokens_neox': 527, 'n_words': 129}