<commit_before># Directory depth
LEVEL := ../..

# Placeholder
all:

# Import common Makefile routines
include $(LEVEL)/src/common.mk

# Generate build directory
$(eval $(call create-destdir,factgen))


srcdir       := src
outdir       := $(factgen.outdir)
sources      := $(wildcard $(srcdir)/*.cpp)
objects      := $(patsubst $(srcdir)/%.cpp,$(outdir)/%.o,$(sources))
dependencies := $(patsubst $(srcdir)/%.cpp,$(outdir)/%.d,$(sources))
program      := $(or $(factgen.artifact),$(outdir)/$(factgen.exe))
include_dirs := include


#-----------------------------------
# Search in directories
#-----------------------------------

CPPFLAGS += $(addprefix -I ,$(include_dirs))

vpath %.cpp $(srcdir)
vpath %.h $(include_dirs)


#-----------------------------------
# LLVM specific flags
#-----------------------------------

CPPFLAGS += $(shell llvm-config --cppflags | sed 's/-fno-rtti//') 
CXXFLAGS += $(shell llvm-config --cxxflags | sed 's/-fno-rtti//') -fexceptions -g
LDFLAGS  += $(shell llvm-config --libs) $(shell llvm-config --ldflags) -lpthread -lcurses -ldl -g<commit_msg>Remove redundant -lz option from fact-generator linking.<commit_after># Directory depth
LEVEL := ../..

# Placeholder
all:

# Import common Makefile routines
include $(LEVEL)/src/common.mk

# Generate build directory
$(eval $(call create-destdir,factgen))


srcdir       := src
outdir       := $(factgen.outdir)
sources      := $(wildcard $(srcdir)/*.cpp)
objects      := $(patsubst $(srcdir)/%.cpp,$(outdir)/%.o,$(sources))
dependencies := $(patsubst $(srcdir)/%.cpp,$(outdir)/%.d,$(sources))
program      := $(or $(factgen.artifact),$(outdir)/$(factgen.exe))
include_dirs := include


#-----------------------------------
# Search in directories
#-----------------------------------

CPPFLAGS += $(addprefix -I ,$(include_dirs))

vpath %.cpp $(srcdir)
vpath %.h $(include_dirs)


#-----------------------------------
# LLVM specific flags
#-----------------------------------

CPPFLAGS += $(shell llvm-config --cppflags | sed 's/-fno-rtti//') 
CXXFLAGS += $(shell llvm-config --cxxflags | sed 's/-fno-rtti//') -fexceptions -g
LDFLAGS  += $(shell llvm-config --libs)
LDFLAGS  += $(filter-out -lz,$(shell llvm-config --ldflags))
LDFLAGS  += -lpthread -lcurses -ldl -g
{'fraction_non_alphanumeric': 0.2992441084926634, 'fraction_numerical': 0.0, 'mean_word_length': 2.265602322206096, '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': '4368353', 'n_tokens_mistral': 720, 'n_tokens_neox': 702, 'n_words': 162}