<commit_before>macro(hackerrank_setup_test_project)
    get_filename_component(ProjectTest ${CMAKE_CURRENT_LIST_DIR} NAME)
    file(GLOB ${ProjectTest}_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
    file(GLOB ${ProjectTest}_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
    set(TestBaseProject hackerrank_gtest)
    add_executable(${ProjectTest} ${${ProjectTest}_SOURCES} ${${ProjectTest}_HEADERS})

    string(REPLACE "_test" "" ProjectId ${ProjectTest})
    #MESSAGE(STATUS "ProjectId:" ${ProjectId})

    get_filename_component(ProjectTestSrc ${CMAKE_CURRENT_LIST_DIR} DIRECTORY)
    #MESSAGE(STATUS "ProjectTestSrc:" ${ProjectTestSrc})

    set(ProjectSrc "${ProjectTestSrc}/${ProjectId}")
    string(REPLACE "test/" "src/" ProjectSrc ${ProjectSrc})
    set(TestBaseSrc "${CMAKE_SOURCE_DIR}/src/${TestBaseProject}")
    include_directories(${ProjectSrc} ${TestBaseSrc})
    #MESSAGE(STATUS "ProjectSrc:" ${ProjectSrc})

    if (USE_CONAN_LIBS)
      target_link_libraries(${ProjectTest} ${ProjectId} ${TestBaseProject} ${CONAN_LIBS})
    else()
    #   GTest
      find_package(GTest REQUIRED)
      include_directories(${GTEST_INCLUDE_DIRS})

      target_link_libraries(${ProjectTest} ${ProjectId} ${TestBaseProject} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
    endif (USE_CONAN_LIBS)

    set_property(TARGET ${ProjectTest} PROPERTY CXX_STANDARD 14)
    set_property(TARGET ${ProjectTest} PROPERTY CXX_STANDARD_REQUIRED ON)

    file(RELATIVE_PATH ProjectFolder "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_LIST_DIR}")
    get_filename_component(ProjectFolder "${ProjectFolder}" PATH)
    set_target_properties(${ProjectTest} PROPERTIES FOLDER "${ProjectFolder}")

    add_test(${ProjectTest} ${ProjectTest})
endmacro()<commit_msg>[cmake] copy gtest libraries to output folder<commit_after>macro(hackerrank_setup_test_project)
    get_filename_component(ProjectTest ${CMAKE_CURRENT_LIST_DIR} NAME)
    file(GLOB ${ProjectTest}_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
    file(GLOB ${ProjectTest}_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.h)
    set(TestBaseProject hackerrank_gtest)
    add_executable(${ProjectTest} ${${ProjectTest}_SOURCES} ${${ProjectTest}_HEADERS})

    string(REPLACE "_test" "" ProjectId ${ProjectTest})
    #MESSAGE(STATUS "ProjectId:" ${ProjectId})

    get_filename_component(ProjectTestSrc ${CMAKE_CURRENT_LIST_DIR} DIRECTORY)
    #MESSAGE(STATUS "ProjectTestSrc:" ${ProjectTestSrc})

    set(ProjectSrc "${ProjectTestSrc}/${ProjectId}")
    string(REPLACE "test/" "src/" ProjectSrc ${ProjectSrc})
    set(TestBaseSrc "${CMAKE_SOURCE_DIR}/src/${TestBaseProject}")
    include_directories(${ProjectSrc} ${TestBaseSrc})
    #MESSAGE(STATUS "ProjectSrc:" ${ProjectSrc})

    if (USE_CONAN_LIBS)
      target_link_libraries(${ProjectTest} ${ProjectId} ${TestBaseProject} ${CONAN_LIBS})
    else()
    #   GTest
      find_package(GTest REQUIRED)
      include_directories(${GTEST_INCLUDE_DIRS})

      target_link_libraries(${ProjectTest} ${ProjectId} ${TestBaseProject} ${GTEST_LIBRARIES} ${GTEST_MAIN_LIBRARIES} pthread)
    endif (USE_CONAN_LIBS)

    set_property(TARGET ${ProjectTest} PROPERTY CXX_STANDARD 14)
    set_property(TARGET ${ProjectTest} PROPERTY CXX_STANDARD_REQUIRED ON)

    file(RELATIVE_PATH ProjectFolder "${PROJECT_SOURCE_DIR}" "${CMAKE_CURRENT_LIST_DIR}")
    get_filename_component(ProjectFolder "${ProjectFolder}" PATH)
    set_target_properties(${ProjectTest} PROPERTIES FOLDER "${ProjectFolder}")

    add_test(${ProjectTest} ${ProjectTest})

    file(GLOB GTEST_BINARIES "${PROJECT_BINARY_DIR}/bin/gtest*")
    file(COPY ${GTEST_BINARIES} DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
endmacro()
{'fraction_non_alphanumeric': 0.13037523966036701, 'fraction_numerical': 0.0010955902492467817, 'mean_word_length': 6.688421052631579, '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': '248217', 'n_tokens_mistral': 1243, 'n_tokens_neox': 1179, 'n_words': 182}