<commit_before>CFLAGS = -g -O3 -DSTATISTICS -DENABLE_AIO #-DPROFILER
#TRACE_FLAGS = -faddress-sanitizer 
#TRACE_FLAGS += -fno-omit-frame-pointer # for better stack traces in error messages
#TRACE_FLAGS += -fno-optimize-sibling-calls # disable tail call elimination
CLANG_FLAGS = -Wno-attributes
LDFLAGS = -lpthread -lnuma -laio $(TRACE_FLAGS) #-lprofiler
CXXFLAGS = -g -Inbds.0.4.3/include/ -Wall $(TRACE_FLAGS) $(CLANG_FLAGS) -DSTATISTICS -DENABLE_AIO -DNUM_NODES=1 -DNCPUS=0 #-DPROFILER
CPPFLAGS := -MD

SOURCE := $(wildcard *.c) $(wildcard *.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
DEPS := $(patsubst %.o,%.d,$(OBJS))
MISSING_DEPS := $(filter-out $(wildcard $(DEPS)),$(DEPS))
MISSING_DEPS_SOURCES := $(wildcard $(patsubst %.d,%.c,$(MISSING_DEPS)) $(patsubst %.d,%.cc,$(MISSING_DEPS)))
#CC = clang
#CXX = clang++
CC = gcc
CXX = g++

all: rand-read

rand-read: $(OBJS)
	$(CXX) -o rand-read -static $(OBJS) $(LDFLAGS) -Lnbds.0.4.3/ -lnbds

unit_test: $(OBJS)
	make -C test

clean:
	rm *.o

-include $(DEPS) <commit_msg>"make clean" cleans the test directory too.<commit_after>CFLAGS = -g -O3 -DSTATISTICS -DENABLE_AIO #-DPROFILER
#TRACE_FLAGS = -faddress-sanitizer 
#TRACE_FLAGS += -fno-omit-frame-pointer # for better stack traces in error messages
#TRACE_FLAGS += -fno-optimize-sibling-calls # disable tail call elimination
CLANG_FLAGS = -Wno-attributes
LDFLAGS = -lpthread -lnuma -laio $(TRACE_FLAGS) #-lprofiler
CXXFLAGS = -g -Inbds.0.4.3/include/ -Wall $(TRACE_FLAGS) $(CLANG_FLAGS) -DSTATISTICS -DENABLE_AIO -DNUM_NODES=1 -DNCPUS=0 #-DPROFILER
CPPFLAGS := -MD

SOURCE := $(wildcard *.c) $(wildcard *.cpp)
OBJS := $(patsubst %.c,%.o,$(patsubst %.cpp,%.o,$(SOURCE)))
DEPS := $(patsubst %.o,%.d,$(OBJS))
MISSING_DEPS := $(filter-out $(wildcard $(DEPS)),$(DEPS))
MISSING_DEPS_SOURCES := $(wildcard $(patsubst %.d,%.c,$(MISSING_DEPS)) $(patsubst %.d,%.cc,$(MISSING_DEPS)))
#CC = clang
#CXX = clang++
CC = gcc
CXX = g++

all: rand-read

rand-read: $(OBJS)
	$(CXX) -o rand-read -static $(OBJS) $(LDFLAGS) -Lnbds.0.4.3/ -lnbds

unit_test: $(OBJS)
	make -C test

clean:
	make -C test clean
	rm *.o

-include $(DEPS) 
{'fraction_non_alphanumeric': 0.19738072965388212, 'fraction_numerical': 0.00841908325537886, 'mean_word_length': 4.512886597938144, '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': '2379132', 'n_tokens_mistral': 933, 'n_tokens_neox': 907, 'n_words': 202}