<commit_before>cmake_minimum_required(VERSION 2.6)
project(Magnum)

option(BUILD_TESTS "Build unit tests (requires Qt4)." OFF)

find_package(Corrade REQUIRED)

if(BUILD_TESTS)
    find_package(Qt4)

    if(NOT QT4_FOUND)
        message(WARNING "Qt4 is required for building unit tests. No tests will be build.")
        set(BUILD_TESTS OFF)
    else()
        enable_testing()
    endif()
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Magnum_SOURCE_DIR}/modules/")

set_parent_scope(MAGNUM_INCLUDE_DIR     "${CMAKE_CURRENT_SOURCE_DIR}/src")
set_parent_scope(MAGNUM_LIBRARY         Magnum)
include(FindMagnum)

add_subdirectory(modules)
add_subdirectory(src)

install(DIRECTORY src/ DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}
                 FILES_MATCHING PATTERN "*.h"
                 PATTERN "*/Test" EXCLUDE)<commit_msg>Explicit specification of Primitives library.<commit_after>cmake_minimum_required(VERSION 2.6)
project(Magnum)

option(BUILD_TESTS "Build unit tests (requires Qt4)." OFF)

find_package(Corrade REQUIRED)

if(BUILD_TESTS)
    find_package(Qt4)

    if(NOT QT4_FOUND)
        message(WARNING "Qt4 is required for building unit tests. No tests will be build.")
        set(BUILD_TESTS OFF)
    else()
        enable_testing()
    endif()
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${Magnum_SOURCE_DIR}/modules/")

set_parent_scope(MAGNUM_INCLUDE_DIR         "${CMAKE_CURRENT_SOURCE_DIR}/src")
set_parent_scope(MAGNUM_LIBRARY             Magnum)
set_parent_scope(MAGNUM_PRIMITIVES_LIBRARY  MagnumPrimitives)
include(FindMagnum)

add_subdirectory(modules)
add_subdirectory(src)

install(DIRECTORY src/ DESTINATION ${MAGNUM_INCLUDE_INSTALL_DIR}
                 FILES_MATCHING PATTERN "*.h"
                 PATTERN "*/Test" EXCLUDE)
{'fraction_non_alphanumeric': 0.09322033898305085, 'fraction_numerical': 0.006779661016949152, 'mean_word_length': 4.318318318318318, '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': '5673594', 'n_tokens_mistral': 628, 'n_tokens_neox': 581, 'n_words': 115}