<commit_before># Jatta - General Utility Library
# Copyright (C) 2012-2013, <NAME> and <NAME>
# All rights reserved.
cmake_minimum_required(VERSION 2.8.7)
cmake_policy(VERSION 2.8.7)

# Setup cmake settings
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_DEBUG_POSTFIX "d")

# Allow the installation to go under a different name
set(Jatta_OUTPUT_NAME "Jatta" CACHE STRING "The name to install Jatta under.")

# Do some weirdness if this is the first generation
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "")
    set(FIRST ON)
endif()

# Version information
set(Jatta_MAJOR_VERSION 0)
set(Jatta_MINOR_VERSION 0)
set(Jatta_PATCH_VERSION 0)
set(Jatta_VERSION ${Jatta_MAJOR_VERSION}.${Jatta_MINOR_VERSION}.${Jatta_PATCH_VERSION})
project(${Jatta_OUTPUT_NAME} CXX)

# Determine system information
if(MINGW)
    set(SYSTEM_NAME mingw)
    set(SYSTEM_NAME_UPPER MinGW)
else()
    string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
    set(SYSTEM_NAME_UPPER ${CMAKE_SYSTEM_NAME})
endif()
math(EXPR SYSTEM_BITNESS "${CMAKE_SIZEOF_VOID_P} * 8")

# Check if we should pretend this build is 32bit
set(Jatta_PRETEND_BITNESS ${SYSTEM_BITNESS} CACHE STRING "The bitness that Jatta should pretend to be set at, initially set to the actual system bitness.")
set(SYSTEM_BITNESS ${Jatta_PRETEND_BITNESS})

# Fix up the installation path
set(Jatta_FIX_INSTALL_PATH ON CACHE BOOL "Causes Jatta to fix the installation path on first generation.")
if(NOT Jatta_FIX_INSTALL_PATH)
    set(FIRST OFF)
endif()
if(FIRST)
    set(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
    if(${INSTALL_PREFIX} STREQUAL "/usr/local")
        if(${SYSTEM_BITNESS} EQUAL 32)
            set(INSTALL_PREFIX "/usr/lib")
        else()
            set(INSTALL_PREFIX "/usr/lib${SYSTEM_BITNESS}")
        endif()
    endif()
    string(FIND "${CMAKE_INSTALL_PREFIX}" "${PROJECT_NAME}" INDEX)
    if(INDEX EQUAL -1)
        set(INSTALL_PREFIX ${INSTALL_PREFIX}/${PROJECT_NAME})
    endif()
    get_property(CACHE_DOC CACHE "CMAKE_INSTALL_PREFIX" PROPERTY HELPSTRING)
    get_property(CACHE_TYPE CACHE "CMAKE_INSTALL_PREFIX" PROPERTY TYPE)
    unset(CMAKE_INSTALL_PREFIX CACHE)
    set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE ${CACHE_TYPE} "${CACHE_DOC}")
endif()

# Set the dependecy directory to the default path
set(Jatta_DEPENDENCY_LIBRARY_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/deps-${SYSTEM_NAME}/lib${SYSTEM_BITNESS}" CACHE STRING "Directories to look for libraries.")
set(Jatta_DEPENDENCY_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/deps-${SYSTEM_NAME}/include" CACHE STRING "Directories to look for headers.")
set(DOXYGEN_ENABLE OFF CACHE BOOL "Specifies whether or not to use Doxygen to generate documentation.")
set(DOXYGEN_WARNINGS OFF CACHE BOOL "Turns on Doxygen warnings during doc generation stage.")
set(CMAKE_REQUIRED_INCLUDES ${Jatta_DEPENDENCY_INCLUDE_DIRS})
set(CMAKE_REQUIRED_DEFINITIONS "-DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_BOOLEAN")
if(MSVC)
    set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DMSVC")
endif()
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_DEFINITIONS})

# Look for libraries
include(libraries/libraries.cmake)

# Compile the library
add_subdirectory(src)

# Add a build step for Doxygen
include(resources/Doxygen.cmake)

# Allow packaging
include(resources/Package.cmake)<commit_msg>Reverted version to 0.1.0, since those are what the examples use.<commit_after># Jatta - General Utility Library
# Copyright (C) 2012-2013, <NAME> and <NAME>
# All rights reserved.
cmake_minimum_required(VERSION 2.8.7)
cmake_policy(VERSION 2.8.7)

# Setup cmake settings
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
set(CMAKE_DEBUG_POSTFIX "d")

# Allow the installation to go under a different name
set(Jatta_OUTPUT_NAME "Jatta" CACHE STRING "The name to install Jatta under.")

# Do some weirdness if this is the first generation
if("${CMAKE_INSTALL_PREFIX}" STREQUAL "")
    set(FIRST ON)
endif()

# Version information
set(Jatta_MAJOR_VERSION 0)
set(Jatta_MINOR_VERSION 1)
set(Jatta_PATCH_VERSION 0)
set(Jatta_VERSION ${Jatta_MAJOR_VERSION}.${Jatta_MINOR_VERSION}.${Jatta_PATCH_VERSION})
project(${Jatta_OUTPUT_NAME} CXX)

# Determine system information
if(MINGW)
    set(SYSTEM_NAME mingw)
    set(SYSTEM_NAME_UPPER MinGW)
else()
    string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME)
    set(SYSTEM_NAME_UPPER ${CMAKE_SYSTEM_NAME})
endif()
math(EXPR SYSTEM_BITNESS "${CMAKE_SIZEOF_VOID_P} * 8")

# Check if we should pretend this build is 32bit
set(Jatta_PRETEND_BITNESS ${SYSTEM_BITNESS} CACHE STRING "The bitness that Jatta should pretend to be set at, initially set to the actual system bitness.")
set(SYSTEM_BITNESS ${Jatta_PRETEND_BITNESS})

# Fix up the installation path
set(Jatta_FIX_INSTALL_PATH ON CACHE BOOL "Causes Jatta to fix the installation path on first generation.")
if(NOT Jatta_FIX_INSTALL_PATH)
    set(FIRST OFF)
endif()
if(FIRST)
    set(INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
    if(${INSTALL_PREFIX} STREQUAL "/usr/local")
        if(${SYSTEM_BITNESS} EQUAL 32)
            set(INSTALL_PREFIX "/usr/lib")
        else()
            set(INSTALL_PREFIX "/usr/lib${SYSTEM_BITNESS}")
        endif()
    endif()
    string(FIND "${CMAKE_INSTALL_PREFIX}" "${PROJECT_NAME}" INDEX)
    if(INDEX EQUAL -1)
        set(INSTALL_PREFIX ${INSTALL_PREFIX}/${PROJECT_NAME})
    endif()
    set(INSTALL_PREFIX ${INSTALL_PREFIX}-${Jatta_VERSION})
    get_property(CACHE_DOC CACHE "CMAKE_INSTALL_PREFIX" PROPERTY HELPSTRING)
    get_property(CACHE_TYPE CACHE "CMAKE_INSTALL_PREFIX" PROPERTY TYPE)
    unset(CMAKE_INSTALL_PREFIX CACHE)
    set(CMAKE_INSTALL_PREFIX ${INSTALL_PREFIX} CACHE ${CACHE_TYPE} "${CACHE_DOC}")
endif()

# Set the dependecy directory to the default path
set(Jatta_DEPENDENCY_LIBRARY_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/deps-${SYSTEM_NAME}/lib${SYSTEM_BITNESS}" CACHE STRING "Directories to look for libraries.")
set(Jatta_DEPENDENCY_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/deps-${SYSTEM_NAME}/include" CACHE STRING "Directories to look for headers.")
set(DOXYGEN_ENABLE OFF CACHE BOOL "Specifies whether or not to use Doxygen to generate documentation.")
set(DOXYGEN_WARNINGS OFF CACHE BOOL "Turns on Doxygen warnings during doc generation stage.")
set(CMAKE_REQUIRED_INCLUDES ${Jatta_DEPENDENCY_INCLUDE_DIRS})
set(CMAKE_REQUIRED_DEFINITIONS "-DGLEW_NO_GLU -DGLEW_STATIC -DHAVE_BOOLEAN")
if(MSVC)
    set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -DMSVC")
endif()
set(CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_DEFINITIONS})

# Look for libraries
include(libraries/libraries.cmake)

# Compile the library
add_subdirectory(src)

# Add a build step for Doxygen
include(resources/Doxygen.cmake)

# Allow packaging
include(resources/Package.cmake)
{'fraction_non_alphanumeric': 0.09791572949467686, 'fraction_numerical': 0.007347428400059979, 'mean_word_length': 5.998950682056663, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6385518', 'n_tokens_mistral': 2421, 'n_tokens_neox': 2256, 'n_words': 559}