<commit_before># Try to find the radium engine base folder
# Will define
# RADIUM_ROOT_DIR : the root of the radium SDK
# RADIUM_INCLUDE_DIR : the include directory of radium
# RADIUM_PLUGIN_OUTPUT_PATH : output path for radiums plugin


# Radium_FOUND if found
IF(NOT RADIUM_ROOT_DIR)
  FIND_PATH( RADIUM_ROOT_DIR NAMES src/Core/RaCore.hpp
    PATHS
    ${CMAKE_SOURCE_DIR}/extern
    ${CMAKE_SOURCE_DIR}/external
    ${CMAKE_SOURCE_DIR}/3rdPartyLibraries
    ${CMAKE_SOURCE_DIR}/..
    ${CMAKE_SOURCE_DIR}/../..
    ${CMAKE_SOURCE_DIR}/../../..
    ${CMAKE_CURRENT_SOURCE_DIR}/extern
    ${CMAKE_CURRENT_SOURCE_DIR}/external
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_SOURCE_DIR}/../..
    ${CMAKE_CURRENT_SOURCE_DIR}/../../..
    ${CMAKE_CURRENT_SOURCE_DIR}/3rdPartyLibraries
    PATH_SUFFIXES Radium-Engine
    DOC "The radium engine source folder")
ENDIF(NOT RADIUM_ROOT_DIR)

IF ( RADIUM_ROOT_DIR )
    SET ( RADIUM_INCLUDES "${RADIUM_ROOT_DIR}/src")
    SET ( RADIUM_BUNDLE_DIRECTORY ${RADIUM_ROOT_DIR}/Bundle-${CMAKE_CXX_COMPILER_ID})
    SET ( RADIUM_PLUGIN_OUTPUT_PATH "${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/bin/Plugins")

    IF (TARGET radiumCore)
        set (RA_CORE_LIB radiumCore)
    ELSE()
    FIND_LIBRARY( RA_CORE_LIB
        NAMES radiumCore
        PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib
        )
    ENDIF()

    IF (TARGET radiumEngine)
         SET (RA_ENGINE_LIB radiumEngine)
    ELSE()
        FIND_LIBRARY( RA_ENGINE_LIB
            NAMES radiumEngine
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib        )
    ENDIF()

    IF (TARGET radiumGuiBase)
         SET (RA_GUIBASE_LIB radiumGuiBase)
    ELSE()
        FIND_LIBRARY ( RA_GUIBASE_LIB
            NAMES radiumGuiBase
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib        )
    ENDIF()

    SET ( Radium_FOUND TRUE )
    ############################################################################
    # Get dependencies if not already specified
    IF(NOT EIGEN3_INCLUDE_DIR)
        set(EIGEN3_INCLUDE_DIR ${RADIUM_ROOT_DIR}/${CMAKE_BUILD_TYPE}/3rdPartyLibraries/include)
    ENDIF(NOT EIGEN3_INCLUDE_DIR)

    IF (NOT ASSIMP_LIBRARIES)
        FIND_LIBRARY ( ASSIMP_LIBRARIES
            NAMES assimp assimpd
            PATHS ${RADIUM_ROOT_DIR}/${CMAKE_BUILD_TYPE}/3rdPartyLibraries/lib
            )
    ENDIF (NOT ASSIMP_LIBRARIES)

    IF(NOT ASSIMP_INCLUDE_DIR)
        set(ASSIMP_INCLUDE_DIR ${RADIUM_ROOT_DIR}/${CMAKE_BUILD_TYPE}/3rdPartyLibraries/include)
    ENDIF(NOT ASSIMP_INCLUDE_DIR)


    IF (NOT GLBINDING_LIBRARIES)
        FIND_LIBRARY ( GLBINDING_LIBRARIES
            NAMES glbinding glbindingd
            PATHS ${RADIUM_ROOT_DIR}/${CMAKE_BUILD_TYPE}/3rdPartyLibraries/lib
            )
    ENDIF (NOT GLBINDING_LIBRARIES)

    IF(NOT GLBINDING_INCLUDE_DIR)
        set(GLBINDING_INCLUDE_DIR ${RADIUM_ROOT_DIR}/${CMAKE_BUILD_TYPE}/3rdPartyLibraries/include)
    ENDIF(NOT GLBINDING_INCLUDE_DIR)

    SET( RADIUM_INCLUDE_DIR)
    LIST(APPEND RADIUM_INCLUDE_DIR "${RADIUM_INCLUDES}" "${EIGEN3_INCLUDE_DIR}" "${ASSIMP_INCLUDE_DIR}" "${GLBINDING_INCLUDE_DIR}")

    SET( RADIUM_LIBRARIES )
    IF ( RA_CORE_LIB AND RA_ENGINE_LIB AND RA_GUIBASE_LIB AND ASSIMP_LIBRARIES AND GLBINDING_LIBRARIES)
       LIST(APPEND RADIUM_LIBRARIES "${RA_CORE_LIB}" "${RA_ENGINE_LIB}" "${RA_GUIBASE_LIB}")
       SET ( Radium_Libs_FOUND TRUE)
    ENDIF ( RA_CORE_LIB AND RA_ENGINE_LIB AND RA_GUIBASE_LIB AND ASSIMP_LIBRARIES AND GLBINDING_LIBRARIES)
ENDIF( RADIUM_ROOT_DIR)

IF ( Radium_FOUND )
    IF(NOT Radium_FIND_QUIETLY)
      MESSAGE ( STATUS "Found Radium Engine: ${RADIUM_ROOT_DIR}")
      MESSAGE ( STATUS "      Eigen3 includes: ${EIGEN3_INCLUDE_DIR}")
      MESSAGE ( STATUS "      Radium libs: ${RADIUM_LIBRARIES}")
      MESSAGE ( STATUS "      Assimp libs: ${ASSIMP_LIBRARIES}")
      MESSAGE ( STATUS "      GlBinding libs: ${GLBINDING_LIBRARIES}")
    ENDIF(NOT Radium_FIND_QUIETLY)
    IF (NOT Radium_Libs_FOUND)
        MESSAGE( WARNING "Could not find Radium libraries. You must compile them first")
    ENDIF (NOT Radium_Libs_FOUND)
ELSE(Radium_FOUND)
    IF(Radium_FIND_REQUIRED)
        MESSAGE( FATAL_ERROR "Could not find Radium Engine root dir")
    ENDIF(Radium_FIND_REQUIRED)
ENDIF(Radium_FOUND)
<commit_msg>Fix wrong output directory for 3rdparty<commit_after># Try to find the radium engine base folder
# Will define
# RADIUM_ROOT_DIR : the root of the radium SDK
# RADIUM_INCLUDE_DIR : the include directory of radium
# RADIUM_PLUGIN_OUTPUT_PATH : output path for radiums plugin


# Radium_FOUND if found
IF(NOT RADIUM_ROOT_DIR)
  FIND_PATH( RADIUM_ROOT_DIR NAMES src/Core/RaCore.hpp
    PATHS
    ${CMAKE_SOURCE_DIR}/extern
    ${CMAKE_SOURCE_DIR}/external
    ${CMAKE_SOURCE_DIR}/3rdPartyLibraries
    ${CMAKE_SOURCE_DIR}/..
    ${CMAKE_SOURCE_DIR}/../..
    ${CMAKE_SOURCE_DIR}/../../..
    ${CMAKE_CURRENT_SOURCE_DIR}/extern
    ${CMAKE_CURRENT_SOURCE_DIR}/external
    ${CMAKE_CURRENT_SOURCE_DIR}/..
    ${CMAKE_CURRENT_SOURCE_DIR}/../..
    ${CMAKE_CURRENT_SOURCE_DIR}/../../..
    ${CMAKE_CURRENT_SOURCE_DIR}/3rdPartyLibraries
    PATH_SUFFIXES Radium-Engine
    DOC "The radium engine source folder")
ENDIF(NOT RADIUM_ROOT_DIR)

IF ( RADIUM_ROOT_DIR )
    SET ( RADIUM_INCLUDES "${RADIUM_ROOT_DIR}/src")
    SET ( RADIUM_BUNDLE_DIRECTORY ${RADIUM_ROOT_DIR}/Bundle-${CMAKE_CXX_COMPILER_ID})
    SET ( RADIUM_PLUGIN_OUTPUT_PATH "${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/bin/Plugins")

    IF (TARGET radiumCore)
        set (RA_CORE_LIB radiumCore)
    ELSE()
    FIND_LIBRARY( RA_CORE_LIB
        NAMES radiumCore
        PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib
        )
    ENDIF()

    IF (TARGET radiumEngine)
         SET (RA_ENGINE_LIB radiumEngine)
    ELSE()
        FIND_LIBRARY( RA_ENGINE_LIB
            NAMES radiumEngine
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib        )
    ENDIF()

    IF (TARGET radiumGuiBase)
         SET (RA_GUIBASE_LIB radiumGuiBase)
    ELSE()
        FIND_LIBRARY ( RA_GUIBASE_LIB
            NAMES radiumGuiBase
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/${CMAKE_BUILD_TYPE}/lib        )
    ENDIF()

    SET ( Radium_FOUND TRUE )
    ############################################################################
    # Get dependencies if not already specified
    IF(NOT EIGEN3_INCLUDE_DIR)
        set(EIGEN3_INCLUDE_DIR ${RADIUM_BUNDLE_DIRECTORY}/3rdPartyLibraries/include)
    ENDIF(NOT EIGEN3_INCLUDE_DIR)

    IF (NOT ASSIMP_LIBRARIES)
        FIND_LIBRARY ( ASSIMP_LIBRARIES
            NAMES assimp assimpd
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/3rdPartyLibraries/lib
            )
    ENDIF (NOT ASSIMP_LIBRARIES)

    IF(NOT ASSIMP_INCLUDE_DIR)
        set(ASSIMP_INCLUDE_DIR ${RADIUM_BUNDLE_DIRECTORY}/3rdPartyLibraries/include)
    ENDIF(NOT ASSIMP_INCLUDE_DIR)


    IF (NOT GLBINDING_LIBRARIES)
        FIND_LIBRARY ( GLBINDING_LIBRARIES
            NAMES glbinding glbindingd
            PATHS ${RADIUM_BUNDLE_DIRECTORY}/3rdPartyLibraries/lib
            )
    ENDIF (NOT GLBINDING_LIBRARIES)

    IF(NOT GLBINDING_INCLUDE_DIR)
        set(GLBINDING_INCLUDE_DIR ${RADIUM_BUNDLE_DIRECTORY}/3rdPartyLibraries/include)
    ENDIF(NOT GLBINDING_INCLUDE_DIR)

    SET( RADIUM_INCLUDE_DIR)
    LIST(APPEND RADIUM_INCLUDE_DIR "${RADIUM_INCLUDES}" "${EIGEN3_INCLUDE_DIR}" "${ASSIMP_INCLUDE_DIR}" "${GLBINDING_INCLUDE_DIR}")

    SET( RADIUM_LIBRARIES )
    IF ( RA_CORE_LIB AND RA_ENGINE_LIB AND RA_GUIBASE_LIB AND ASSIMP_LIBRARIES AND GLBINDING_LIBRARIES)
       LIST(APPEND RADIUM_LIBRARIES "${RA_CORE_LIB}" "${RA_ENGINE_LIB}" "${RA_GUIBASE_LIB}")
       SET ( Radium_Libs_FOUND TRUE)
    ENDIF ( RA_CORE_LIB AND RA_ENGINE_LIB AND RA_GUIBASE_LIB AND ASSIMP_LIBRARIES AND GLBINDING_LIBRARIES)
ENDIF( RADIUM_ROOT_DIR)

IF ( Radium_FOUND )
    IF(NOT Radium_FIND_QUIETLY)
      MESSAGE ( STATUS "Found Radium Engine: ${RADIUM_ROOT_DIR}")
      MESSAGE ( STATUS "      Eigen3 includes: ${EIGEN3_INCLUDE_DIR}")
      MESSAGE ( STATUS "      Radium libs: ${RADIUM_LIBRARIES}")
      MESSAGE ( STATUS "      Assimp libs: ${ASSIMP_LIBRARIES}")
      MESSAGE ( STATUS "      GlBinding libs: ${GLBINDING_LIBRARIES}")
    ENDIF(NOT Radium_FIND_QUIETLY)
    IF (NOT Radium_Libs_FOUND)
        MESSAGE( WARNING "Could not find Radium libraries. You must compile them first")
    ENDIF (NOT Radium_Libs_FOUND)
ELSE(Radium_FOUND)
    IF(Radium_FIND_REQUIRED)
        MESSAGE( FATAL_ERROR "Could not find Radium Engine root dir")
    ENDIF(Radium_FIND_REQUIRED)
ENDIF(Radium_FOUND)

{'fraction_non_alphanumeric': 0.1051037054299697, 'fraction_numerical': 0.003146119785597763, 'mean_word_length': 3.6120365394948952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2844729', 'n_tokens_mistral': 3445, 'n_tokens_neox': 3093, 'n_words': 547}