<commit_before>all: test lib

AR := ar

lib: libjson11.a
	
libjson11.a: libjson11.o
	rm -fv $@
	$(AR) r $@ $<
	
libjson11.o: json11.cpp json11.hpp
	$(CXX) -c -o libjson11.o -std=c++11 -fno-rtti -fno-exceptions json11.cpp

test: json11.cpp json11.hpp test.cpp
	$(CXX) -O -std=c++11 json11.cpp test.cpp -o test -fno-rtti -fno-exceptions

clean:
	if [ -e test ]; then rm test; fi
	rm -fv *.a *.o

.PHONY: clean<commit_msg>json11 static library needs -fPIC<commit_after>all: test lib

AR := ar

lib: libjson11.a
	
libjson11.a: libjson11.o
	rm -fv $@
	$(AR) r $@ $<
	
libjson11.o: json11.cpp json11.hpp
	$(CXX) -c -o libjson11.o -std=c++11 -fPIC -fno-rtti -fno-exceptions json11.cpp

test: json11.cpp json11.hpp test.cpp
	$(CXX) -O -std=c++11 json11.cpp test.cpp -o test -fPIC -fno-rtti -fno-exceptions

clean:
	if [ -e test ]; then rm test; fi
	rm -fv *.a *.o

.PHONY: clean
{'fraction_non_alphanumeric': 0.16896551724137931, 'fraction_numerical': 0.06206896551724138, 'mean_word_length': 2.9954128440366974, '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': '2505774', 'n_tokens_mistral': 444, 'n_tokens_neox': 394, 'n_words': 107}