<commit_before># --- This file is distributed under the MIT Open Source License, as detailed
# in the file "LICENSE.TXT" in the root of this repository ---


# Use FetchContent to get Googletest
# https://cmake.org/cmake/help/git-master/module/FetchContent.html

# Also inspired by https://github.com/Crascit/DownloadProject/issues/29
# and https://github.com/CLIUtils/cmake/blob/master/AddGoogleTest.cmake


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


    include(FetchContent)
    FetchContent_Declare(
        googletest
        GIT_REPOSITORY https://github.com/google/googletest.git
        GIT_TAG        master
    )
    #git tag of release-1.8.0 instead?
    FetchContent_GetProperties(googletest)<commit_msg>use googletest's changed branch name main instead of old name master<commit_after># --- This file is distributed under the MIT Open Source License, as detailed
# in the file "LICENSE.TXT" in the root of this repository ---


# Use FetchContent to get Googletest
# https://cmake.org/cmake/help/git-master/module/FetchContent.html

# Also inspired by https://github.com/Crascit/DownloadProject/issues/29
# and https://github.com/CLIUtils/cmake/blob/master/AddGoogleTest.cmake


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


    include(FetchContent)
    FetchContent_Declare(
        googletest
        GIT_REPOSITORY https://github.com/google/googletest.git
        GIT_TAG        main
    )
    #git tag of release-1.8.0 instead?
    FetchContent_GetProperties(googletest)
{'fraction_non_alphanumeric': 0.08401084010840108, 'fraction_numerical': 0.005420054200542005, 'mean_word_length': 3.5356265356265357, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5739772', 'n_tokens_mistral': 591, 'n_tokens_neox': 562, 'n_words': 151}