<commit_before>APP=test
LIB=libpbxml.a
INSTALL=/usr/local/pbxml

${APP}: test.cpp test.pb.cc ${LIB} 
	g++ -std=c++11 -o $@ $^ -L/usr/local/lib -lprotobuf

test.pb.cc: test.proto
	protoc test.proto --cpp_out=./

${LIB}: ./pbxml.o ./xml_doc.o ./dcpots/lib/*.o
	cd dcpots/lib && g++ -c ../base/*.cpp --std=c++11 -I../base
	g++ -c -std=c++11 ./xml_doc.cpp
	g++ -c -std=c++11 ./pbxml.cpp -I./dcpots/base
	ar r ${LIB} *.o dcpots/lib/*.o

clean:
	rm -f *.o
	rm -f ./dcpots/lib/*.o

install:
	mkdir -p $INSTALL/include
	cp -f ./pbxml.h $INSTALL/include/
	mkdir -p $INSTALL/lib
	cp -f ${LIB} $INSTALL/lib

run:
	./$APP
<commit_msg>add mkdir<commit_after>APP=test
LIB=libpbxml.a
INSTALL=/usr/local/pbxml

${APP}: test.cpp test.pb.cc ${LIB} 
	g++ -std=c++11 -o $@ $^ -L/usr/local/lib -lprotobuf

test.pb.cc: test.proto
	protoc test.proto --cpp_out=./

${LIB}: ./pbxml.o ./xml_doc.o ./dcpots/lib/*.o
	mkdir -p dcpots/lib
	cd dcpots/lib && g++ -c ../base/*.cpp --std=c++11 -I../base
	g++ -c -std=c++11 ./xml_doc.cpp
	g++ -c -std=c++11 ./pbxml.cpp -I./dcpots/base
	ar r ${LIB} *.o dcpots/lib/*.o

clean:
	rm -f *.o
	rm -f ./dcpots/lib/*.o

install:
	mkdir -p $INSTALL/include
	cp -f ./pbxml.h $INSTALL/include/
	mkdir -p $INSTALL/lib
	cp -f ${LIB} $INSTALL/lib

run:
	./$APP

{'fraction_non_alphanumeric': 0.24107850911974624, 'fraction_numerical': 0.012688342585249802, 'mean_word_length': 2.525139664804469, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '6279955', 'n_tokens_mistral': 630, 'n_tokens_neox': 592, 'n_words': 136}