<commit_before>ifeq ($(origin CXX), default)
    CXX = g++
endif

INCLUDES+= -Iinclude

DEFINES+= -DSTX_DEBUG=2

CXX_FLAGS+= --std=c++14 -Wall -Wextra -Wno-unused-parameter

LD_FLAGS+= -lpthread -ldl

test.run: $(wildcard test/*.cpp) $(wildcard src/*.cpp) $(wildcard include/stx/*.hpp) $(wildcard include/stx/wip/*.hpp)
	${CXX}\
	 ${INCLUDES}\
	 ${DEFINES}\
	 ${CXX_FLAGS}\
	 ${LD_FLAGS}\
	 $(wildcard src/*.cpp)\
	 $(wildcard test/*.cpp)\
	 -o $@
	-./test.run

run: test.run
	./test.run<commit_msg>Added memory leak checking via valgrind to tests<commit_after>ifeq ($(origin CXX), default)
    CXX = g++
endif

INCLUDES+= -Iinclude

DEFINES+= -DSTX_DEBUG=2

CXX_FLAGS+= --std=c++14 -Wall -Wextra -Wno-unused-parameter -ggdb -g3

LD_FLAGS+= -lpthread -ldl

test.run: $(wildcard test/*.cpp) $(wildcard src/*.cpp) $(wildcard include/stx/*.hpp) $(wildcard include/stx/wip/*.hpp)
	${CXX}\
	 ${INCLUDES}\
	 ${DEFINES}\
	 ${CXX_FLAGS}\
	 ${LD_FLAGS}\
	 $(wildcard src/*.cpp)\
	 $(wildcard test/*.cpp)\
	 -o $@
	-valgrind --leak-check=full --track-origins=yes ./test.run

run: test.run
	./test.run
{'fraction_non_alphanumeric': 0.21100917431192662, 'fraction_numerical': 0.006422018348623854, 'mean_word_length': 3.417004048582996, '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': '2662171', 'n_tokens_mistral': 481, 'n_tokens_neox': 436, 'n_words': 95}