<commit_before>CPP_PKG := gjstest/internal/driver/cpp
COMPILER_PKG := gjstest/internal/compiler

######################################################
# Libraries
######################################################

$(CPP_PKG)/driver.o : $(CPP_PKG)/driver.h $(CPP_PKG)/driver.cc base/*.h $(V8_DIR)/include/*.h $(COMPILER_PKG)/compiler.pb.h $(CPP_PKG)/test_case.h $(CPP_PKG)/v8_utils.h webutil/xml/xml_writer.h util/hash/hash.h third_party/cityhash/*.h strings/strutil.h util/gtl/map-util.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/driver.cc -o $(CPP_PKG)/driver.o

$(CPP_PKG)/v8_utils.o : $(CPP_PKG)/v8_utils.h $(CPP_PKG)/v8_utils.cc base/*.h $(V8_DIR)/include/*.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/v8_utils.cc -o $(CPP_PKG)/v8_utils.o

######################################################
# Tests
######################################################

TESTS +=\
    $(CPP_PKG)/v8_utils_test

$(CPP_PKG)/v8_utils_test.o : $(CPP_PKG)/v8_utils_test.cc $(CPP_PKG)/v8_utils.h $(TEST_HEADERS) base/*.h $(V8_DIR)/include/*.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/v8_utils_test.cc -o $(CPP_PKG)/v8_utils_test.o

$(CPP_PKG)/v8_utils_test : $(CPP_PKG)/v8_utils.o $(CPP_PKG)/v8_utils_test.o third_party/gmock/gmock_main.a base/base.a $(V8_DIR)/libv8.a
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@ -lglog<commit_msg>Added a binary target.<commit_after>CPP_PKG := gjstest/internal/driver/cpp
COMPILER_PKG := gjstest/internal/compiler

######################################################
# Libraries
######################################################

$(CPP_PKG)/driver.o : $(CPP_PKG)/driver.h $(CPP_PKG)/driver.cc base/*.h $(V8_DIR)/include/*.h $(COMPILER_PKG)/compiler.pb.h $(CPP_PKG)/test_case.h $(CPP_PKG)/v8_utils.h webutil/xml/xml_writer.h util/hash/hash.h third_party/cityhash/*.h strings/strutil.h util/gtl/map-util.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/driver.cc -o $(CPP_PKG)/driver.o

$(CPP_PKG)/v8_utils.o : $(CPP_PKG)/v8_utils.h $(CPP_PKG)/v8_utils.cc base/*.h $(V8_DIR)/include/*.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/v8_utils.cc -o $(CPP_PKG)/v8_utils.o

######################################################
# Tests
######################################################

TESTS +=\
    $(CPP_PKG)/v8_utils_test

$(CPP_PKG)/v8_utils_test.o : $(CPP_PKG)/v8_utils_test.cc $(CPP_PKG)/v8_utils.h $(TEST_HEADERS) base/*.h $(V8_DIR)/include/*.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/v8_utils_test.cc -o $(CPP_PKG)/v8_utils_test.o

$(CPP_PKG)/v8_utils_test : $(CPP_PKG)/v8_utils.o $(CPP_PKG)/v8_utils_test.o third_party/gmock/gmock_main.a base/base.a $(V8_DIR)/libv8.a
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@ -lglog

######################################################
# Binaries
######################################################

$(CPP_PKG)/driver_main.o : $(CPP_PKG)/driver_main.cc $(CPP_PKG)/driver.h base/*.h file/file_utils.h gjstest/internal/compiler/compiler.pb.h strings/strutil.h
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -c $(CPP_PKG)/driver_main.cc -o $(CPP_PKG)/driver_main.o

$(CPP_PKG)/driver : $(CPP_PKG)/v8_utils.o $(CPP_PKG)/driver_main.o $(CPP_PKG)/driver.o
	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -lpthread $^ -o $@ -lglog
{'fraction_non_alphanumeric': 0.34350669573341636, 'fraction_numerical': 0.012768607910308314, 'mean_word_length': 6.0905077262693155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, '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': '5378454', 'n_tokens_mistral': 1304, 'n_tokens_neox': 1254, 'n_words': 157}