<commit_before>#### BUILD modalities
# use 
#   $ make BUILD=release 
# to compile different binaries
BUILD = debug
cxxflags.debug = \
 -Wall -std=c++11
cxxflags.release = \
 -Wall -std=c++11 -DNDEBUG -O3
cxxflags.gprof = \
 -Wall -std=c++11 -DNDEBUG -O3 -g -pg

# for g++ <= 4.6
cxxflags.debug0x = \
 -Wall -std=c++0x
cxxflags.release0x = \
 -Wall -std=c++0x -DNDEBUG -O3
cxxflags.gprof0x = \
 -Wall -std=c++0x -DNDEBUG -O3 -g -pg 

####

SOURCE_DIR = wasp_src
BUILD_DIR = build/$(BUILD)

BINARY = $(BUILD_DIR)/wasp
GCC = g++
CXX = $(GCC)
CXXFLAGS = $(cxxflags.$(BUILD))
LINK = $(GCC)
LINKFLAGS = -lm -g -pg

SRCS = $(shell find $(SOURCE_DIR) -name '*.cpp')

OBJS = $(patsubst $(SOURCE_DIR)%.cpp,$(BUILD_DIR)%.o, $(SRCS))
DEPS = $(patsubst $(SOURCE_DIR)%.cpp,$(BUILD_DIR)%.d, $(SRCS))

all: $(BINARY)

$(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@
<commit_msg>Add link information depending on the build target.<commit_after>#### BUILD modalities
# use 
#   $ make BUILD=release 
# to compile different binaries
BUILD = debug
cxxflags.debug = \
 -Wall -std=c++11
linkflags.debug = \
 -lm
cxxflags.release = \
 -Wall -std=c++11 -DNDEBUG -O3
linkflags.release = \
 -lm
cxxflags.gprof = \
 -Wall -std=c++11 -DNDEBUG -O3 -g -pg
linkflags.gprof = \
 -lm -g -pg

# for g++ <= 4.6
cxxflags.debug0x = \
 -Wall -std=c++0x
cxxflags.release0x = \
 -Wall -std=c++0x -DNDEBUG -O3
cxxflags.gprof0x = \
 -Wall -std=c++0x -DNDEBUG -O3 -g -pg 

####

SOURCE_DIR = wasp_src
BUILD_DIR = build/$(BUILD)

BINARY = $(BUILD_DIR)/wasp
GCC = g++
CXX = $(GCC)
CXXFLAGS = $(cxxflags.$(BUILD))
LINK = $(GCC)
LINKFLAGS = $(linkflags.$(BUILD))

SRCS = $(shell find $(SOURCE_DIR) -name '*.cpp')

OBJS = $(patsubst $(SOURCE_DIR)%.cpp,$(BUILD_DIR)%.o, $(SRCS))
DEPS = $(patsubst $(SOURCE_DIR)%.cpp,$(BUILD_DIR)%.d, $(SRCS))

all: $(BINARY)

$(BUILD_DIR)/%.o: $(SOURCE_DIR)/%.cpp
	$(CXX) $(CXXFLAGS) -c $< -o $@

{'fraction_non_alphanumeric': 0.2159747766684183, 'fraction_numerical': 0.018917498686284815, 'mean_word_length': 3.544152744630072, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3028901', 'n_tokens_mistral': 844, 'n_tokens_neox': 811, 'n_words': 183}