<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ARRAYFIRE)

OPTION(BUILD_TEST "Build Tests" ON)
OPTION(BUILD_GTEST "Download gtest and check for updates. Necessary if you change compilers" ON)

OPTION(BUILD_CPU "Build ArrayFire with a CPU backend" ON)
OPTION(BUILD_CUDA "Build ArrayFire with a CUDA backend" OFF)
OPTION(BUILD_OPENCL "Build ArrayFire with a OpenCL backend" OFF)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/common)

INCLUDE_DIRECTORIES(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    ${CMAKE_CURRENT_SOURCE_DIR}/src/backend
    )

SET(CMAKE_CXX_FLAGS "-Wall -std=c++0x -fvisibility=hidden")


IF(${BUILD_CPU})
    SUBDIRS(src/backend/cpu)
ENDIF()

IF(${BUILD_CUDA})
    FIND_PACKAGE(CUDA)
    SUBDIRS(src/backend/cuda)
ENDIF()

IF(${BUILD_OPENCL})
    FIND_PACKAGE(OpenCL)
    SUBDIRS(src/backend/opencl)
    ADD_EXECUTABLE(bin2cpp common/bin2cpp.cpp)
ENDIF()

SUBDIRS(src/array)
SUBDIRS(test)

IF(${BUILD_TEST})
    ENABLE_TESTING()
ENDIF()<commit_msg>FIX: Don't build test files if BUILD_TEST is OFF<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(ARRAYFIRE)

OPTION(BUILD_TEST "Build Tests" ON)
OPTION(BUILD_GTEST "Download gtest and check for updates. Necessary if you change compilers" ON)

OPTION(BUILD_CPU "Build ArrayFire with a CPU backend" ON)
OPTION(BUILD_CUDA "Build ArrayFire with a CUDA backend" OFF)
OPTION(BUILD_OPENCL "Build ArrayFire with a OpenCL backend" OFF)

SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/common)

INCLUDE_DIRECTORIES(
    ${CMAKE_CURRENT_SOURCE_DIR}/include
    ${CMAKE_CURRENT_SOURCE_DIR}/src
    ${CMAKE_CURRENT_SOURCE_DIR}/src/backend
    )

SET(CMAKE_CXX_FLAGS "-Wall -std=c++0x -fvisibility=hidden")


IF(${BUILD_CPU})
    SUBDIRS(src/backend/cpu)
ENDIF()

IF(${BUILD_CUDA})
    FIND_PACKAGE(CUDA)
    SUBDIRS(src/backend/cuda)
ENDIF()

IF(${BUILD_OPENCL})
    FIND_PACKAGE(OpenCL)
    SUBDIRS(src/backend/opencl)
    ADD_EXECUTABLE(bin2cpp common/bin2cpp.cpp)
ENDIF()

SUBDIRS(src/array)

IF(${BUILD_TEST})
    ENABLE_TESTING()
    SUBDIRS(test)
ENDIF()
{'fraction_non_alphanumeric': 0.11326097215667767, 'fraction_numerical': 0.004719207173194903, 'mean_word_length': 5.905537459283388, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3773644', 'n_tokens_mistral': 840, 'n_tokens_neox': 808, 'n_words': 153}