<commit_before>

cmake_minimum_required(VERSION 2.8)
project(libeye CXX C) 

include (GenerateExportHeader)

#add versioning information Don't change these lines manually.
set (LIBEYE_VERSION_MAJOR 0)
set (LIBEYE_VERSION_MINOR 1)
set (LIBEYE_VERSION_MICRO 0)
set (LIBEYE_VERSION_STRING
     "\"libeye-${LIBEYE_VERSION_MAJOR}.${LIBEYE_VERSION_MINOR}.${LIBEYE_VERSION_MICRO}\""
    )

# define names used throughout the library
# library names
set (EYELOG_SHARED_LIB
     eyelog_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
     )

set (EYELOG_STATIC_LIB
     eyelog_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}-static
     )

set (BASE_SHARED_LIB
     base_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
     )

set (BASE_STATIC_LIB
     base_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}-static
     )


# location where to install the headers. This is the toplevel.
SET(INSTALL_HEADER_DIR
    include/${CMAKE_PROJECT_NAME}_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
    )


if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU" OR ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wextra -pedantic")
endif()

# setting of general options
option(BUILD_BINARIES "Build utilities that uses the library" ON)
option(BUILD_UNIT_TESTS "Build unit tests" ON)

#check for headers (Don't forget to update libeye-config.h.in)
INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES(stdatomic.h HAVE_STDATOMIC_H)
CHECK_INCLUDE_FILES(windows.h HAVE_WINDOWS_H)


# creation of a configure file
configure_file(
    ${PROJECT_SOURCE_DIR}/libeye-config.h.in
    ${PROJECT_BINARY_DIR}/libeye-config.h
    )
<commit_msg>Enable warnings while compiling on MSVC<commit_after>

cmake_minimum_required(VERSION 2.8)
project(libeye CXX C) 

include (GenerateExportHeader)

#add versioning information Don't change these lines manually.
set (LIBEYE_VERSION_MAJOR 0)
set (LIBEYE_VERSION_MINOR 1)
set (LIBEYE_VERSION_MICRO 0)
set (LIBEYE_VERSION_STRING
     "\"libeye-${LIBEYE_VERSION_MAJOR}.${LIBEYE_VERSION_MINOR}.${LIBEYE_VERSION_MICRO}\""
    )

# define names used throughout the library
# library names
set (EYELOG_SHARED_LIB
     eyelog_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
     )

set (EYELOG_STATIC_LIB
     eyelog_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}-static
     )

set (BASE_SHARED_LIB
     base_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
     )

set (BASE_STATIC_LIB
     base_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}-static
     )


# location where to install the headers. This is the toplevel.
SET(INSTALL_HEADER_DIR
    include/${CMAKE_PROJECT_NAME}_${LIBEYE_VERSION_MAJOR}_${LIBEYE_VERSION_MINOR}
    )

#enable compiler warnings
if (${CMAKE_CXX_COMPILER_ID} MATCHES "GNU" OR
    ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang"
    )
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -Wall -Wextra -pedantic")
elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "MSVC")
    set(CMAKE_CXX_FLAGS "$CMAKE_CXX_FLAGS /w4")
endif()

# setting of general options
option(BUILD_BINARIES "Build utilities that uses the library" ON)
option(BUILD_UNIT_TESTS "Build unit tests" ON)

#check for headers (Don't forget to update libeye-config.h.in)
INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES(stdatomic.h HAVE_STDATOMIC_H)
CHECK_INCLUDE_FILES(windows.h HAVE_WINDOWS_H)


# creation of a configure file
configure_file(
    ${PROJECT_SOURCE_DIR}/libeye-config.h.in
    ${PROJECT_BINARY_DIR}/libeye-config.h
    )

{'fraction_non_alphanumeric': 0.09543088490456912, 'fraction_numerical': 0.0037593984962406013, 'mean_word_length': 5.729571984435798, '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': '600609', 'n_tokens_mistral': 1424, 'n_tokens_neox': 1302, 'n_words': 242}