<commit_before>#
# Relative path to the top of the source tree.
#
LEVEL := ..
include $(LEVEL)/Makefile.common

INC_DIRS=-I$(TERN_ROOT)/include/ -I$(XTERN_ROOT)/include/ -I$(XTERN_ROOT)/obj/include -I.
STD_LIBS=-lsupc++ -lpthread -lstdc++ -lrt
TERN_LIBS=-L$(XTERN_ROOT)/install/lib/ -lruntime -lcommon
CFLAGS= -g $(INC_DIRS)
CXXFLAGS= -g $(INC_DIRS)
SRC_DIR=$(XTERN_ROOT)/dync_hook
ifndef $(XTERN_PLUS_DBUG)
	XTERN_PLUS_DBUG=0
endif

all:: interpose.so libxtern-annot.so interpose_mc.so

interpose.so: template.cpp spec_hooks.cpp hook.cpp
ifneq ($(XTERN_PLUS_DBUG),1)
	gcc -fPIC -rdynamic $(SRC_DIR)/hook.cpp $(CFLAGS) -c -o interpose.o
	gcc $(CFLAGS) -shared -Wl,-soname,interpose.so interpose.o -o interpose.so -ldl $(TERN_LIBS) $(STD_LIBS)
endif

interpose_mc.so: template.cpp spec_hooks.cpp hook.cpp
ifeq ($(XTERN_PLUS_DBUG),1)
	gcc -fPIC -rdynamic $(SRC_DIR)/hook.cpp $(CFLAGS) -c -o interpose.o
	gcc $(CFLAGS) -shared -Wl,-soname,interpose_mc.so interpose.o -o interpose_mc.so -ldl $(TERN_LIBS) $(STD_LIBS) \
	-Wl,--rpath,$(SMT_MC_ROOT)/mc-tools/dbug/install/lib -L$(SMT_MC_ROOT)/mc-tools/dbug/install/lib -ldbug-stubs
endif

libxtern-annot.so: xtern-annot.cpp
	gcc -fPIC -rdynamic $(SRC_DIR)/xtern-annot.cpp $(CFLAGS) -c -o xtern-annot.o<commit_msg>Nits.<commit_after>#
# Relative path to the top of the source tree.
#
LEVEL := ..
include $(LEVEL)/Makefile.common

INC_DIRS=-I$(TERN_ROOT)/include/ -I$(XTERN_ROOT)/include/ -I$(XTERN_ROOT)/obj/include -I.
STD_LIBS=-lsupc++ -lpthread -lstdc++ -lrt
TERN_LIBS=-L$(PROJ_OBJ_ROOT)/$(BuildMode)/lib/ -lruntime -lcommon
CFLAGS= -g $(INC_DIRS)
CXXFLAGS= -g $(INC_DIRS)
SRC_DIR=$(XTERN_ROOT)/dync_hook
ifndef $(XTERN_PLUS_DBUG)
	XTERN_PLUS_DBUG=0
endif

all:: interpose.so libxtern-annot.so interpose_mc.so

interpose.so: template.cpp spec_hooks.cpp hook.cpp
ifneq ($(XTERN_PLUS_DBUG),1)
	gcc -fPIC -rdynamic $(SRC_DIR)/hook.cpp $(CFLAGS) -c -o interpose.o
	gcc $(CFLAGS) -shared -Wl,-soname,interpose.so interpose.o -o interpose.so -ldl $(TERN_LIBS) $(STD_LIBS)
endif

interpose_mc.so: template.cpp spec_hooks.cpp hook.cpp
ifeq ($(XTERN_PLUS_DBUG),1)
	gcc -fPIC -rdynamic $(SRC_DIR)/hook.cpp $(CFLAGS) -c -o interpose.o
	gcc $(CFLAGS) -shared -Wl,-soname,interpose_mc.so interpose.o -o interpose_mc.so -ldl $(TERN_LIBS) $(STD_LIBS) \
	-Wl,--rpath,$(SMT_MC_ROOT)/mc-tools/dbug/install/lib -L$(SMT_MC_ROOT)/mc-tools/dbug/install/lib -ldbug-stubs
endif

libxtern-annot.so: xtern-annot.cpp
	gcc -fPIC -rdynamic $(SRC_DIR)/xtern-annot.cpp $(CFLAGS) -c -o xtern-annot.o
{'fraction_non_alphanumeric': 0.17038216560509553, 'fraction_numerical': 0.0023885350318471337, 'mean_word_length': 4.711363636363636, 'pattern_counts': {'":': 0, '<': 3, '<?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': '762896', 'n_tokens_mistral': 1109, 'n_tokens_neox': 1079, 'n_words': 203}