<commit_before>cmake_minimum_required (VERSION 3.5)
project(miniQbt)


IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
    # Check if you're in the root directory of the project, and give an error.
    MESSAGE(FATAL_ERROR "Please create a dedicated build directory for MiniQbt. (You may need remove the CmakeCache.txt and the cache)")
ENDIF()


LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )

OPTION(ENABLE_EMSCRIPTEN "Enable Emscripten" OFF)

OPTION(ENABLE_TESTS "Enable unit tests" OFF)
OPTION(ENABLE_JAVA "Enable building for java" OFF)
OPTION(ENABLE_PYTHON "Enable building for python" ON)

SET (
    MINIQBT_PLATFORM_NAME ${CMAKE_SYSTEM_PROCESSOR}_${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_VERSION}
)

IF(ENABLE_EMSCRIPTEN)
    # Check if the emsdk is defined
    IF("$ENV{EMSDK}" STREQUAL "")
        MESSAGE(FATAL_ERROR "Missing the Emscripten SDK. Please set this up.")
    ENDIF()
    # Disable the unit test and wrappers when building for EMSCRIPTEN
    SET (
        MINIQBT_PLATFORM_NAME Emscript
    )
    IF(ENABLE_TESTS OR ENABLE_JAVA OR ENABLE_PYTHON)
        MESSAGE(FATAL_ERROR "You can't build the python/java bindings or perform unit tests while also using emscripten. Please check your settings")
    ENDIF()

ENDIF()


IF(ENABLE_TESTS)
include(ExternalProject)
include(externalCatch)
enable_testing ()
ENDIF()<commit_msg>turned off python<commit_after>cmake_minimum_required (VERSION 3.5)
project(miniQbt)


IF(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
    # Check if you're in the root directory of the project, and give an error.
    MESSAGE(FATAL_ERROR "Please create a dedicated build directory for MiniQbt. (You may need remove the CmakeCache.txt and the cache)")
ENDIF()


LIST( APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake )

OPTION(ENABLE_EMSCRIPTEN "Enable Emscripten" OFF)

OPTION(ENABLE_TESTS "Enable unit tests" OFF)
OPTION(ENABLE_JAVA "Enable building for java" OFF)
OPTION(ENABLE_PYTHON "Enable building for python" OFF)

SET (
    MINIQBT_PLATFORM_NAME ${CMAKE_SYSTEM_PROCESSOR}_${CMAKE_SYSTEM_NAME}_${CMAKE_SYSTEM_VERSION}
)

IF(ENABLE_EMSCRIPTEN)
    # Check if the emsdk is defined
    IF("$ENV{EMSDK}" STREQUAL "")
        MESSAGE(FATAL_ERROR "Missing the Emscripten SDK. Please set this up.")
    ENDIF()
    # Disable the unit test and wrappers when building for EMSCRIPTEN
    SET (
        MINIQBT_PLATFORM_NAME Emscript
    )
    IF(ENABLE_TESTS OR ENABLE_JAVA OR ENABLE_PYTHON)
        MESSAGE(FATAL_ERROR "You can't build the python/java bindings or perform unit tests while also using emscripten. Please check your settings")
    ENDIF()

ENDIF()


IF(ENABLE_TESTS)
include(ExternalProject)
include(externalCatch)
enable_testing ()
ENDIF()
{'fraction_non_alphanumeric': 0.08035385182454848, 'fraction_numerical': 0.001474382602285293, 'mean_word_length': 4.912854030501089, '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': '1145974', 'n_tokens_mistral': 964, 'n_tokens_neox': 898, 'n_words': 263}