<commit_before>SRC_DIR = src
INCLUDE_DIR = include
PROGRAMS_DIR = programs
LIB_DIR = lib
BIN_DIR = bin
BUILD_DIR = build
LIB_NAME = algorithms

WFLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wwrite-strings -Waggregate-return
CFLAGS = $(WFLAGS) -std=c11 -pedantic -D_POSIX_C_SOURCE=200809L -I$(INCLUDE_DIR)
LDFLAGS = -L$(LIB_DIR)
LDLIBS = -l$(LIB_NAME)

LIB_SRC := $(wildcard $(SRC_DIR)/*.c)
PROGRAMS_SRC := $(wildcard $(PROGRAMS_DIR)/*.c)
OBJ_FILES := $(addprefix $(BUILD_DIR)/,$(notdir $(LIB_SRC:.c=.o)))
PROGRAMS_FILES := $(addprefix $(BIN_DIR)/,$(notdir $(PROGRAMS_SRC:.c=)))

.PHONY: release debug library programs clean

release: CFLAGS += -O2
release: library programs

debug: CFLAGS += -DDEBUG -g
debug: library programs<commit_msg>Build the debug configuration by default<commit_after>SRC_DIR = src
INCLUDE_DIR = include
PROGRAMS_DIR = programs
LIB_DIR = lib
BIN_DIR = bin
BUILD_DIR = build
LIB_NAME = algorithms

WFLAGS = -Wall -Wextra -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wwrite-strings -Waggregate-return
CFLAGS = $(WFLAGS) -std=c11 -pedantic -D_POSIX_C_SOURCE=200809L -I$(INCLUDE_DIR)
LDFLAGS = -L$(LIB_DIR)
LDLIBS = -l$(LIB_NAME)

LIB_SRC := $(wildcard $(SRC_DIR)/*.c)
PROGRAMS_SRC := $(wildcard $(PROGRAMS_DIR)/*.c)
OBJ_FILES := $(addprefix $(BUILD_DIR)/,$(notdir $(LIB_SRC:.c=.o)))
PROGRAMS_FILES := $(addprefix $(BIN_DIR)/,$(notdir $(PROGRAMS_SRC:.c=)))

.PHONY: release debug library programs clean

all: debug

release: CFLAGS += -O2
release: library programs

debug: CFLAGS += -DDEBUG -g
debug: library programs
{'fraction_non_alphanumeric': 0.15266707541385652, 'fraction_numerical': 0.011036174126302882, 'mean_word_length': 5.3501945525291825, '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': '4449005', 'n_tokens_mistral': 653, 'n_tokens_neox': 602, 'n_words': 142}