<commit_before>CFLAGS:=-g -Wall -Wextra -pedantic -std=c99
CC:=gcc $(CFLAGS)

all: count thumbnails

%.o: %.c
	$(CC) -c $<

count: count.o
	$(CC) -framework Foundation -framework ApplicationServices $^ -o $@

test-count: count PDFKitGuide.pdf
	./count PDFKitGuide.pdf

thumbnails: thumbnails.o
	$(CC) -framework Foundation -framework ApplicationServices $^ -o $@

test-thumbnails: thumbnails PDFKitGuide.pdf
	./thumbnails PDFKitGuide.pdf

PDFKitGuide.pdf:
	curl http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/PDFKitGuide/PDFKitGuide.pdf -o PDFKitGuide.pdf

clean:
	rm -f count count.o thumbnails thumbnails.o

distclean: clean
	rm -f PDFKitGuide.pdf<commit_msg>New test Makefile target that launches all tests<commit_after>CFLAGS:=-g -Wall -Wextra -pedantic -std=c99
CC:=gcc $(CFLAGS)

all: count thumbnails
test: test-count test-thumbnails

%.o: %.c
	$(CC) -c $<

count: count.o
	$(CC) -framework Foundation -framework ApplicationServices $^ -o $@

test-count: count PDFKitGuide.pdf
	./count PDFKitGuide.pdf

thumbnails: thumbnails.o
	$(CC) -framework Foundation -framework ApplicationServices $^ -o $@

test-thumbnails: thumbnails PDFKitGuide.pdf
	./thumbnails PDFKitGuide.pdf

PDFKitGuide.pdf:
	curl http://developer.apple.com/mac/library/documentation/GraphicsImaging/Conceptual/PDFKitGuide/PDFKitGuide.pdf -o PDFKitGuide.pdf

clean:
	rm -f count count.o thumbnails thumbnails.o *.png

distclean: clean
	rm -f PDFKitGuide.pdf
{'fraction_non_alphanumeric': 0.1238030095759234, 'fraction_numerical': 0.0027359781121751026, 'mean_word_length': 4.562737642585551, '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': '4472995', 'n_tokens_mistral': 546, 'n_tokens_neox': 503, 'n_words': 124}