<commit_before>CC = g++
VALGRIND = valgrind

CFLAGS = -Wall -Wextra -Werror -O3 -lpthread -lpcre
DEBUG_FLAGS = -g -O0 -DDEBUG #Define the DEBUG flag at compile time

all:	gateway

gateway:	gateway.o helpers.o
	$(CC) -o gateway helpers.o gateway.o $(CFLAGS)

gateway.o:	gateway.hpp gateway.cpp
	$(CC) -c gateway.cpp $(CFLAGS)

helpers.o:	helpers.hpp helpers.cpp
	$(CC) -c helpers.cpp $(CFLAGS)

debug:
	$(MAKE) clean
	$(MAKE) CFLAGS="$(CFLAGS) $(DEBUG_FLAGS)"

clean:
	rm -rf *.o gateway<commit_msg>link to library lboost_regex<commit_after>CC = g++
VALGRIND = valgrind

CFLAGS = -Wall -Wextra -Werror -O3 -lpthread -lpcre -lboost_regex
DEBUG_FLAGS = -g -O0 -DDEBUG #Define the DEBUG flag at compile time

all:	gateway

gateway:	gateway.o helpers.o
	$(CC) -o gateway helpers.o gateway.o $(CFLAGS)

gateway.o:	gateway.hpp gateway.cpp
	$(CC) -c gateway.cpp $(CFLAGS)

helpers.o:	helpers.hpp helpers.cpp
	$(CC) -c helpers.cpp $(CFLAGS)

debug:
	$(MAKE) clean
	$(MAKE) CFLAGS="$(CFLAGS) $(DEBUG_FLAGS)"

clean:
	rm -rf *.o gateway
{'fraction_non_alphanumeric': 0.14926829268292682, 'fraction_numerical': 0.003902439024390244, 'mean_word_length': 3.9805825242718447, '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': '3337472', 'n_tokens_mistral': 430, 'n_tokens_neox': 415, 'n_words': 119}