<commit_before># Try to find the RTTR Library Library https://github.com/rttrorg/rttr.git
# We use this library header only!, so we dont build it!
# defines rttr_INCLUDE_DIR
include(FindPackageHandleStandardArgs)

# Try to find the library, if it is installed!
# otherwise download it
set(INSTALL_DIR "${ExecutionGraph_EXTERNAL_INSTALL_DIR}/rttr")

set(RTTR_COMPONENTS CORE)

if(${USE_SUPERBUILD})
    message(STATUS "rttr library (super-build): finding...:")
    find_package(RTTR QUIET CONFIG OPTIONAL_COMPONENTS CORE)

    if(NOT TARGET "RTTR::Core")

        message(STATUS "rttr library: targer not found -> download from https://github.com/gabyx/rttr.git")

        include(ExternalProject)
        
        ExternalProject_Add(rttr
                            GIT_REPOSITORY      https://github.com/gabyx/rttr.git
                            GIT_TAG             disable-warnings
                            GIT_SHALLOW         ON
                            PREFIX              "${CMAKE_BINARY_DIR}/external/rttr"
                            TIMEOUT 10
                            UPDATE_DISCONNECTED  ON
                            CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DBUILD_STATIC=OFF" 
                                        "-DBUILD_BENCHMARKS=OFF" "-DBUILD_UNIT_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}"
                            INSTALL_DIR "${INSTALL_DIR}")

        set(RTTR_DIR "${INSTALL_DIR}/cmake" CACHE STRING "rttr library directory" FORCE)
        message(STATUS "rttr library downloaded -> build it!")<commit_msg>Library RTTR installs cmale configs to share folder<commit_after># Try to find the RTTR Library Library https://github.com/rttrorg/rttr.git
# We use this library header only!, so we dont build it!
# defines rttr_INCLUDE_DIR
include(FindPackageHandleStandardArgs)

# Try to find the library, if it is installed!
# otherwise download it
set(INSTALL_DIR "${ExecutionGraph_EXTERNAL_INSTALL_DIR}/rttr")

set(RTTR_COMPONENTS CORE)

if(${USE_SUPERBUILD})
    message(STATUS "rttr library (super-build): finding...:")
    find_package(RTTR QUIET CONFIG OPTIONAL_COMPONENTS CORE)

    if(NOT TARGET "RTTR::Core")

        message(STATUS "rttr library: targer not found -> download from https://github.com/gabyx/rttr.git")

        include(ExternalProject)
        
        ExternalProject_Add(rttr
                            GIT_REPOSITORY      https://github.com/gabyx/rttr.git
                            GIT_TAG             disable-warnings
                            GIT_SHALLOW         ON
                            PREFIX              "${CMAKE_BINARY_DIR}/external/rttr"
                            TIMEOUT 10
                            UPDATE_DISCONNECTED  ON
                            CMAKE_ARGS "-DCMAKE_BUILD_TYPE=Release" "-DCMAKE_VERBOSE_MAKEFILE=ON" "-DBUILD_STATIC=OFF" 
                                        "-DBUILD_BENCHMARKS=OFF" "-DBUILD_UNIT_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=${INSTALL_DIR}"
                            INSTALL_DIR "${INSTALL_DIR}")

        set(RTTR_DIR "${INSTALL_DIR}" CACHE STRING "rttr library directory" FORCE)
        message(STATUS "rttr library downloaded -> build it!")
{'fraction_non_alphanumeric': 0.0865625, 'fraction_numerical': 0.00125, 'mean_word_length': 2.110787172011662, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5373439', 'n_tokens_mistral': 961, 'n_tokens_neox': 897, 'n_words': 204}