<commit_before>ghc := ghc
ghc-flags :=
programs := builder bench

.PHONY: all
all: $(programs)

builder: Builder.hs
	$(ghc) $(ghc-flags) --make -O2 Builder.hs -o $@ -fforce-recomp -i../src

bench: Benchmark.hs MemBench.hs CBenchmark.o
	$(ghc) $(ghc-flags) --make -O2 -fliberate-case-threshold=1000 -fasm Benchmark.hs CBenchmark.o -o $@ -fforce-recomp -i../src

.PHONY: run-bench<commit_msg>Remove -fasm flag from benchmark, it's default anyway.<commit_after>ghc := ghc
ghc-flags :=
programs := builder bench

.PHONY: all
all: $(programs)

builder: Builder.hs
	$(ghc) $(ghc-flags) --make -O2 Builder.hs -o $@ -fforce-recomp -i../src

bench: Benchmark.hs MemBench.hs CBenchmark.o
	$(ghc) $(ghc-flags) --make -O2 -fliberate-case-threshold=1000 Benchmark.hs CBenchmark.o -o $@ -fforce-recomp -i../src

system-bench: Benchmark.hs MemBench.hs CBenchmark.o
	$(ghc) $(ghc-flags) --make -O2 -fliberate-case-threshold=1000 Benchmark.hs CBenchmark.o -o $@ -fforce-recomp -package binary

.PHONY: run-bench
{'fraction_non_alphanumeric': 0.17303822937625754, 'fraction_numerical': 0.01710261569416499, 'mean_word_length': 3.7156398104265405, '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': '7014987', 'n_tokens_mistral': 430, 'n_tokens_neox': 396, 'n_words': 94}