<commit_before>all: test_sub test_self test_notify
.PHONY: all

run: all
	./run.sh

test_sub: test_sub.o lib.o
	gcc $^ -L ../../lib -lcriu -o $@

test_sub.o: test_sub.c
	gcc -c $^ -I ../../lib -o $@

test_self: test_self.o lib.o
	gcc $^ -L ../../lib -lcriu -o $@

test_self.o: test_self.c
	gcc -c $^ -I ../../lib -o $@

test_notify: test_notify.o lib.o
	gcc $^ -L ../../lib -lcriu -o $@

test_notify.o: test_notify.c
	gcc -c $^ -I ../../lib -o $@

lib.o: lib.c
	gcc -c $^ -I ../../lib -o $@

clean:
	rm -rf test_sub test_sub.o test_self test_sub.o test_notify test_notify.o
.PHONY: clean
<commit_msg>test: Cleanup libcriu tests makefile<commit_after>TESTS += test_sub 
TESTS += test_self
TESTS += test_notify

all: $(TESTS)

run: all
	./run.sh

define genb
$(1): $(1).o lib.o
	gcc $$^ -L ../../lib -lcriu -o $$@
endef

$(foreach t, $(TESTS), $(eval $(call genb, $(t))))

%.o: %.c
	gcc -c $^ -I../../lib/ -o $@ -Werror

clean:
	rm -rf $(TESTS) $(TESTS:%=%.o) lib.o

.PHONY: clean
.PHONY: all

{'fraction_non_alphanumeric': 0.22906155398587286, 'fraction_numerical': 0.0020181634712411706, 'mean_word_length': 2.3972602739726026, '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': '7210407', 'n_tokens_mistral': 476, 'n_tokens_neox': 442, 'n_words': 122}