<commit_before>cmake_minimum_required (VERSION 2.8.11)

include (CTest)
include ("${CMAKE_MODULE_PATH}/DownloadProject.cmake")

if (CMAKE_VERSION VERSION_LESS 3.2)
    set (UPDATE_DISCONNECTED_IF_AVAILABLE "")
else ()
    set (UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif ()

# download GoogleTest targets
download_project (
	PROJ            googletest
	GIT_REPOSITORY  https://github.com/google/googletest.git
	GIT_TAG         master
	${UPDATE_DISCONNECTED_IF_AVAILABLE}
)

# Prevent GoogleTest from overriding our compiler/linker options
# when building with Visual Studio
set (gtest_force_shared_crt ON CACHE BOOL "" FORCE)

# setup unit test libraries
add_subdirectory (${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})

# Turn on all warnings when using gcc.
if (CMAKE_COMPILER_IS_GNUCXX)
   add_definitions ("--std=c++11 -W -Wall -pedantic")
endif ()

# main test suite
add_executable (tstrings_cpp_test
	"tstrings_cpp/interpolate.cpp"
)
target_link_libraries (tstrings_cpp_test
	tstrings_cpp
	gtest
	gmock_main
)

add_test (
	NAME full_test_suite
	COMMAND tstrings_cpp_test
)
add_custom_target (copy-test-files ALL
    COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/data ${CMAKE_CURRENT_BINARY_DIR}/data
    DEPENDS ${MY_TARGET}
)<commit_msg>[build] more whitespace fixes and tidy<commit_after>cmake_minimum_required (VERSION 2.8.11)

include (CTest)
include ("${CMAKE_MODULE_PATH}/DownloadProject.cmake")

if (CMAKE_VERSION VERSION_LESS 3.2)
    set (UPDATE_DISCONNECTED_IF_AVAILABLE "")
else ()
    set (UPDATE_DISCONNECTED_IF_AVAILABLE "UPDATE_DISCONNECTED 1")
endif ()

# download GoogleTest targets
download_project (
    PROJ            googletest
    GIT_REPOSITORY  https://github.com/google/googletest.git
    GIT_TAG         master
    ${UPDATE_DISCONNECTED_IF_AVAILABLE}
)

# Prevent GoogleTest from overriding our compiler/linker options
# when building with Visual Studio
set (gtest_force_shared_crt ON CACHE BOOL "" FORCE)

# setup unit test libraries
add_subdirectory (${googletest_SOURCE_DIR} ${googletest_BINARY_DIR})

# Turn on all warnings when using gcc.
if (CMAKE_COMPILER_IS_GNUCXX)
   add_definitions ("--std=c++11 -W -Wall -pedantic")
endif ()

# main test suite
add_executable (tstrings_cpp_test
    "tstrings_cpp/interpolate.cpp"
)
target_link_libraries (tstrings_cpp_test
    tstrings_cpp
    gtest
    gmock_main
)

add_test (
    NAME full_test_suite
    COMMAND tstrings_cpp_test
)
add_custom_target (copy-test-files ALL
    COMMAND cmake -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/data ${CMAKE_CURRENT_BINARY_DIR}/data
)
{'fraction_non_alphanumeric': 0.08211256746337703, 'fraction_numerical': 0.006939090208172706, 'mean_word_length': 5.149289099526066, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5858997', 'n_tokens_mistral': 946, 'n_tokens_neox': 906, 'n_words': 197}