<commit_before>FIND_PACKAGE (GTest REQUIRED)
FIND_PACKAGE (Threads REQUIRED)
INCLUDE_DIRECTORIES (${GTEST_INCLUDE_DIRS})

FILE (GLOB test_SRCS "*_test.cpp")

FOREACH(file ${test_SRCS})
    GET_FILENAME_COMPONENT (file_name ${file} NAME)
    STRING (REPLACE ".cpp" "" test_BIN ${file_name} )
    ADD_EXECUTABLE (${test_BIN} ${file})
    SET_PROPERTY (TARGET ${test_BIN} PROPERTY CXX_STANDARD 11)
    SET_PROPERTY (TARGET ${test_BIN} PROPERTY CXX_STANDARD_REQUIRED ON)
    TARGET_LINK_LIBRARIES (${test_BIN} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
    ADD_TEST (${test_BIN} ${test_BIN})
ENDFOREACH(file ${test_SRCS})<commit_msg>Always colorize the output of gtest<commit_after>FIND_PACKAGE (GTest REQUIRED)
FIND_PACKAGE (Threads REQUIRED)
INCLUDE_DIRECTORIES (${GTEST_INCLUDE_DIRS})

FILE (GLOB test_SRCS "*_test.cpp")

FOREACH(file ${test_SRCS})
    GET_FILENAME_COMPONENT (file_name ${file} NAME)
    STRING (REPLACE ".cpp" "" test_BIN ${file_name} )
    ADD_EXECUTABLE (${test_BIN} ${file})
    SET_PROPERTY (TARGET ${test_BIN} PROPERTY CXX_STANDARD 11)
    SET_PROPERTY (TARGET ${test_BIN} PROPERTY CXX_STANDARD_REQUIRED ON)
    TARGET_LINK_LIBRARIES (${test_BIN} ${GTEST_BOTH_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
    ADD_TEST (${test_BIN} ${test_BIN} --gtest_color=yes)
ENDFOREACH(file ${test_SRCS})
{'fraction_non_alphanumeric': 0.12404870624048706, 'fraction_numerical': 0.0030441400304414, 'mean_word_length': 6.781065088757397, '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': '5174969', 'n_tokens_mistral': 537, 'n_tokens_neox': 503, 'n_words': 99}