<commit_before>cmake_minimum_required(VERSION 3.7.1)
set(boost_VERSION 1.64.0)

include(boost-download)
include(git-download)

set(CLONE_DIR "${CMAKE_CURRENT_BINARY_DIR}/boost-download")
set(REPO_DIR "${CMAKE_CURRENT_LIST_DIR}/boost-repo")
set(boost_URL "https://github.com/boostorg/boost.git")
set(boost_TAG "boost-${boost_VERSION}")

set( boost_MODULES
    boost # For header-only libs
    date_time
    program_options
    regex
    system
    thread
)

# Skip download if up-to-date
check_if_up_to_date(
    URL ${boost_URL}
    TAG ${boost_TAG}
    CLONE_DIR "${REPO_DIR}"
    OUTPUT_VARIABLE IS_UP_TO_DATE
)
if(IS_UP_TO_DATE)
    message("Already up-to-date with branch '${boost_TAG}' on ${boost_URL}\n\tSkipping download.")
else()
    # Download a stripped down version of boost, containing only specified modules & dependencies
    download_boost(
        URL ${boost_URL}
        TAG ${boost_TAG}
        CLONE_DIR "${CLONE_DIR}"
        SUBMODULES ${boost_MODULES}
    )<commit_msg>boost: Added log-module explicitly, else bcp fails to copy log/config folder which holds a bunch of .cpp-files used to test current environments capabilities. see boost-cmake/libs/log<commit_after>cmake_minimum_required(VERSION 3.7.1)
set(boost_VERSION 1.64.0)

include(boost-download)
include(git-download)

set(CLONE_DIR "${CMAKE_CURRENT_BINARY_DIR}/boost-download")
set(REPO_DIR "${CMAKE_CURRENT_LIST_DIR}/boost-repo")
set(boost_URL "https://github.com/boostorg/boost.git")
set(boost_TAG "boost-${boost_VERSION}")

set( boost_MODULES
    boost   # For header-only libs
    date_time
    log     # Adding this explicitly else bcp fails to copy log/config which is required in boost-cmake/libs/log
    program_options
    regex
    system
    thread
)

# Skip download if up-to-date
check_if_up_to_date(
    URL ${boost_URL}
    TAG ${boost_TAG}
    CLONE_DIR "${REPO_DIR}"
    OUTPUT_VARIABLE IS_UP_TO_DATE
)
if(IS_UP_TO_DATE)
    message("Already up-to-date with branch '${boost_TAG}' on ${boost_URL}\n\tSkipping download.")
else()
    # Download a stripped down version of boost, containing only specified modules & dependencies
    download_boost(
        URL ${boost_URL}
        TAG ${boost_TAG}
        CLONE_DIR "${CLONE_DIR}"
        SUBMODULES ${boost_MODULES}
    )
{'fraction_non_alphanumeric': 0.10709563684442486, 'fraction_numerical': 0.00617011899515205, 'mean_word_length': 4.078299776286354, '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': 14, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4020411', 'n_tokens_mistral': 781, 'n_tokens_neox': 767, 'n_words': 177}