<commit_before>CFLAGS=-Wall -std=c89 -g -O2

all: libjsmn.a 

demo: libjsmn.a demo.o
	$(CC) $(LDFLAGS) demo.o -L. -ljsmn -o $@

libjsmn.a: jsmn.o
	ar rc $@ $^

%.o: %.c jsmn.h
	$(CC) -c $(CFLAGS) $< -o $@

test: all demo
	sh test.sh

clean:
	rm -f jsmn.o demo.o
	rm -f libjsmn.a
	rm -f demo

.PHONY: all clean test demo
<commit_msg>using system AR program, build options are moved to config.mk<commit_after># You can put your build options here
-include config.mk

all: libjsmn.a 

demo: libjsmn.a demo.o
	$(CC) $(LDFLAGS) demo.o -L. -ljsmn -o $@

libjsmn.a: jsmn.o
	$(AR) rc $@ $^

%.o: %.c jsmn.h
	$(CC) -c $(CFLAGS) $< -o $@

test: all demo
	sh test.sh

clean:
	rm -f jsmn.o demo.o
	rm -f libjsmn.a
	rm -f demo

.PHONY: all clean test demo


{'fraction_non_alphanumeric': 0.17204301075268819, 'fraction_numerical': 0.004032258064516129, 'mean_word_length': 2.6519607843137254, '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': '688636', 'n_tokens_mistral': 373, 'n_tokens_neox': 358, 'n_words': 109}