<commit_before>TOP=../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

.PHONY: plugins01 clean

plugins01:
	# This test is extremely fragile because any change in the output of the following
	# commands invalidates the output of the run.  In fact, we really want to ignore the
	# output resulting from building the simple-plugin, and only look at a few lines of
	# the output of the call to the TEST_HC (probably just the last 2).
	#
	# Suggestions to make this better gratefully recieved.
	(cd simple-plugin; make package)
	@$(RM) plugins01.hi plugins01.o
	"$(TEST_HC)" $(HC_OPTS) --make -v0 plugins01.hs -package-conf simple-plugin/local.package.conf -fplugin Simple.Plugin -fplugin-opt Simple.Plugin:Irrelevant_Option -package simple-plugin
	./plugins01

clean:
	cd simple-plugin && make clean<commit_msg>Tweak plugins01<commit_after>TOP=../..
include $(TOP)/mk/boilerplate.mk
include $(TOP)/mk/test.mk

.PHONY: plugins01 clean

plugins01:
	# This test is extremely fragile because any change in the output of the following
	# commands invalidates the output of the run.  In fact, we really want to ignore the
	# output resulting from building the simple-plugin, and only look at a few lines of
	# the output of the call to the TEST_HC (probably just the last 2).
	#
	# Suggestions to make this better gratefully recieved.
	(cd simple-plugin; make package)
	$(RM) plugins01.hi plugins01.o
	"$(TEST_HC)" $(HC_OPTS) --make -v0 plugins01.hs -package-conf simple-plugin/local.package.conf -fplugin Simple.Plugin -fplugin-opt Simple.Plugin:Irrelevant_Option -package simple-plugin
	./plugins01

clean:
	cd simple-plugin && make clean
{'fraction_non_alphanumeric': 0.09665653495440729, 'fraction_numerical': 0.0182370820668693, 'mean_word_length': 4.176100628930818, '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': '4802084', 'n_tokens_mistral': 528, 'n_tokens_neox': 500, 'n_words': 196}