<commit_before>include ../include.mk

all: test

test: TestIO.class TestEvaluator.class
	@echo Testing implementation `pwd`
	java -ea TestIO ${factorial} ${temp}
	diff ${factorial} ${temp}
	rm -f temp.txt
	java -ea TestEvaluator ${factorial} ${apply} 120
	@echo Done.

TestIO.class: TestIO.java FLParser.java types/*.java
	javac TestIO.java

TestEvaluator.class: TestEvaluator.java FLParser.java types/*.java
	javac TestEvaluator.java

FLScanner.java: FLParser.java

FLParser.java: FL.g
	make generate

generate:
	java org.antlr.Tool FL.g

clean:
	rm -f *~
	rm -f types/*~
	rm -f *.class
	rm -f types/*.class
	rm -f *.tokens
	rm -f *Lexer.java
	rm -f *Parser.java
	rm -f *__.g
	rm -f temp.txt
	rm -f output.txt<commit_msg>Makefile is beautified, JAR generation is added.<commit_after>include ../include.mk

all: build jar test

jar: build
	jar cf javafl.jar *.class types/*.class

test: build
	@echo Testing implementation `pwd`
	java -cp $$CLASSPATH:havafl.jar -ea TestIO ${factorial} ${temp}
	diff ${factorial} ${temp}
	rm -f temp.txt
	java -ea TestEvaluator ${factorial} ${apply} 120
	@echo Done.

build: TestIO.class TestEvaluator.class

TestIO.class: TestIO.java FLParser.java types/*.java
	javac TestIO.java

TestEvaluator.class: TestEvaluator.java FLParser.java types/*.java
	javac TestEvaluator.java

FLScanner.java: FLParser.java

FLParser.java: FL.g
	make generate

generate:
	java org.antlr.Tool FL.g

clean:
	rm -f *~
	rm -f types/*~
	rm -f *.class
	rm -f *.jar
	rm -f types/*.class
	rm -f *.tokens
	rm -f *Lexer.java
	rm -f *Parser.java
	rm -f *__.g
	rm -f temp.txt
	rm -f output.txt
{'fraction_non_alphanumeric': 0.13032581453634084, 'fraction_numerical': 0.0037593984962406013, 'mean_word_length': 3.485955056179775, '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': '7545952', 'n_tokens_mistral': 643, 'n_tokens_neox': 624, 'n_words': 185}