<commit_before>cmake_minimum_required(VERSION 3.2.2)
set(cucumber_VERSION 0.4)

include(git-download)

set(REPO_DIR "${CMAKE_CURRENT_LIST_DIR}/cucumber-cpp-repo")
download_repo(
    URL "https://github.com/cucumber/cucumber-cpp.git"
    TAG v${cucumber_VERSION}
    CLONE_DIR ${REPO_DIR}
    SUBMODULES features/cucumber-tck
)

set(CUKE_USE_STATIC_BOOST OFF CACHE BOOL "")
set(CUKE_USE_STATIC_GTEST OFF CACHE BOOL "")

set(CUKE_DISABLE_BOOST_TEST ON CACHE BOOL "")
set(CUKE_DISABLE_GTEST ON CACHE BOOL "")
set(CUKE_DISABLE_UNIT_TESTS ON CACHE BOOL "")
set(CUKE_DISABLE_E2E_TESTS ON CACHE BOOL "")
set(CUKE_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(VALGRIND_TESTS OFF CACHE BOOL "")

add_definitions(-DBOOST_THREAD_USES_DATETIME=1)
add_subdirectory(cucumber-cpp-repo)<commit_msg>Changed setup of cucumber-cpp to directly add_subdirectory cucumber-cpp/src instead of the root CMakeLists. The cmake scripting is depending heavily on since-long-long-long ago deprecated commands and really contains no 'modern cmake' at all (it's all about targets). In short, it was unbearable.<commit_after>cmake_minimum_required(VERSION 3.2.2)
set(cucumber_VERSION 0.4)

include(git-download)

set(REPO_DIR "${CMAKE_CURRENT_LIST_DIR}/cucumber-cpp-repo")
download_repo(
    URL "https://github.com/cucumber/cucumber-cpp.git"
    TAG v${cucumber_VERSION}
    CLONE_DIR ${REPO_DIR}
    SUBMODULES features/cucumber-tck
)

set(CUKE_USE_STATIC_BOOST ON CACHE BOOL "")
set(CUKE_USE_STATIC_GTEST OFF CACHE BOOL "")

set(CUKE_DISABLE_BOOST_TEST ON CACHE BOOL "")
set(CUKE_DISABLE_GTEST ON CACHE BOOL "")
set(CUKE_DISABLE_UNIT_TESTS ON CACHE BOOL "")
set(CUKE_DISABLE_E2E_TESTS ON CACHE BOOL "")
set(CUKE_ENABLE_EXAMPLES OFF CACHE BOOL "")
set(VALGRIND_TESTS OFF CACHE BOOL "")

add_definitions(-DBOOST_THREAD_USES_DATETIME=1)
set(CUKE_INCLUDE_DIR "${REPO_DIR}/include")
add_subdirectory("${REPO_DIR}/src")
{'fraction_non_alphanumeric': 0.10287846481876332, 'fraction_numerical': 0.007462686567164179, 'mean_word_length': 6.568548387096774, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1676827', 'n_tokens_mistral': 733, 'n_tokens_neox': 701, 'n_words': 141}