<commit_before>PROJECT_ROOT = .
default: driver

# Tools and flags.
include $(PROJECT_ROOT)/tools.mk

######################################################
# House-keeping
######################################################

SUBDIRS := \
    base \
    file \
    gjstest/internal/compiler \
    gjstest/internal/driver/cpp \
    strings \
    third_party/cityhash \
    third_party/gmock \
    webutil/xml \

clean :
	for subdir in $(SUBDIRS); \
	do \
	    echo "Cleaning in $$subdir"; \
	    $(MAKE) -C $$subdir clean || exit 1; \
	done

depend :
	# Make sure proto buffer generated headers exist.
	$(MAKE) -C gjstest/internal/compiler compiler.pb.h

	for subdir in $(SUBDIRS); \
	do \
	    echo "Making depend in $$subdir"; \
	    $(MAKE) -C $$subdir depend || exit 1; \
	done

######################################################
# Sub-packages
######################################################

base/base.a :
	$(MAKE) -C base base.a

file/file.a :
	$(MAKE) -C file file.a

gjstest/internal/compiler/compiler.pb.a :
	$(MAKE) -C gjstest/internal/compiler compiler.pb.a

gjstest/internal/driver/cpp/driver_main.a : gjstest/internal/compiler/compiler.pb.a
	$(MAKE) -C gjstest/internal/driver/cpp driver_main.a<commit_msg>Added a root test target.<commit_after>PROJECT_ROOT = .
default: driver

# Tools and flags.
include $(PROJECT_ROOT)/tools.mk

######################################################
# House-keeping
######################################################

SUBDIRS := \
    base \
    file \
    gjstest/internal/compiler \
    gjstest/internal/driver/cpp \
    strings \
    third_party/cityhash \
    third_party/gmock \
    webutil/xml \

clean :
	for subdir in $(SUBDIRS); \
	do \
	    echo "Cleaning in $$subdir"; \
	    $(MAKE) -C $$subdir clean || exit 1; \
	done

depend :
	# Make sure proto buffer generated headers exist.
	$(MAKE) -C gjstest/internal/compiler compiler.pb.h

	for subdir in $(SUBDIRS); \
	do \
	    echo "Making depend in $$subdir"; \
	    $(MAKE) -C $$subdir depend || exit 1; \
	done

test : driver third_party/gmock/gmock_main.a
	for subdir in $(SUBDIRS); \
	do \
	    echo "Making test in $$subdir"; \
	    $(MAKE) -C $$subdir test || exit 1; \
	done

######################################################
# Sub-packages
######################################################

base/base.a :
	$(MAKE) -C base base.a

file/file.a :
	$(MAKE) -C file file.a

gjstest/internal/compiler/compiler.pb.a :
	$(MAKE) -C gjstest/internal/compiler compiler.pb.a

gjstest/internal/driver/cpp/driver_main.a : gjstest/internal/compiler/compiler.pb.a
	$(MAKE) -C gjstest/internal/driver/cpp driver_main.a
{'fraction_non_alphanumeric': 0.2799395542123158, 'fraction_numerical': 0.0018889308651303363, 'mean_word_length': 3.488135593220339, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '6968606', 'n_tokens_mistral': 911, 'n_tokens_neox': 853, 'n_words': 195}