<commit_before>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

set(CMAKE_VERBOSE_MAKEFILE ON)

set( CMAKE_CXX_STANDARD 11 )

# support for YouCompleteMe
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)
if(UNIX)
    set( CMAKE_CXX_FLAGS "-Wno-deprecated-declarations" )
endif(UNIX)
if($ENV{REAPING2_PROFILE})
    set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
endif($ENV{REAPING2_PROFILE})

project(Reaping2)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_support)

if(NOT DEFINED REAPING2_DEPS_INSTALL_DIR AND EXISTS ${PROJECT_SOURCE_DIR}/local)
    set(REAPING2_DEPS_INSTALL_DIR ${PROJECT_SOURCE_DIR}/local)
endif()

list(APPEND CMAKE_FIND_ROOT_PATH ${REAPING2_DEPS_INSTALL_DIR})
set(CMAKE_PREFIX_PATH ${REAPING2_DEPS_INSTALL_DIR})

include( FindDeps ) 
include( CMakeHelper )

set(BUILD_SHARED_LIBS ON)

set(CMAKE_BUILD_TYPE "Debug")

set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/bin/release)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/bin/release)
if(WIN32)
    set( WIN32_ENET_INCLUDE_WS2_32 ws2_32.lib )
    set( WIN32_ENET_INCLUDE_WINMM winmm.lib )
    if(MINGW)
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj" )
    else(MINGW)
        # Had to use this when compiled debug+64bit with msvc
        # see: https://msdn.microsoft.com/en-us/library/8578y171.aspx
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
    endif(MINGW)
endif(WIN32)
<commit_msg>A: added debug/release flags, don't force debug build on linux host<commit_after>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)

project(Reaping2)

set(CMAKE_VERBOSE_MAKEFILE ON)

set( CMAKE_CXX_STANDARD 11 )

# support for YouCompleteMe
set(CMAKE_EXPORT_COMPILE_COMMANDS 1)

if( CMAKE_HOST_UNIX )
    set( CMAKE_CXX_FLAGS "-Wno-deprecated-declarations" )
    if($ENV{REAPING2_PROFILE})
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
    endif($ENV{REAPING2_PROFILE})

    set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g -Wall")
    set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -g -Wall")
endif( CMAKE_HOST_UNIX )

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake_support)

if(NOT DEFINED REAPING2_DEPS_INSTALL_DIR AND EXISTS ${PROJECT_SOURCE_DIR}/local)
    set(REAPING2_DEPS_INSTALL_DIR ${PROJECT_SOURCE_DIR}/local)
endif()

list(APPEND CMAKE_FIND_ROOT_PATH ${REAPING2_DEPS_INSTALL_DIR})
set(CMAKE_PREFIX_PATH ${REAPING2_DEPS_INSTALL_DIR})

include( FindDeps ) 
include( CMakeHelper )

set(BUILD_SHARED_LIBS ON)

set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_EXECUTABLE_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/bin/release)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_DEBUG ${CMAKE_CURRENT_SOURCE_DIR}/bin/debug)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE ${CMAKE_CURRENT_SOURCE_DIR}/bin/release)
if(WIN32)
    set( WIN32_ENET_INCLUDE_WS2_32 ws2_32.lib )
    set( WIN32_ENET_INCLUDE_WINMM winmm.lib )
    if(MINGW)
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wa,-mbig-obj" )
    else(MINGW)
        # Had to use this when compiled debug+64bit with msvc
        # see: https://msdn.microsoft.com/en-us/library/8578y171.aspx
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
    endif(MINGW)
endif(WIN32)

{'fraction_non_alphanumeric': 0.09992027637523253, 'fraction_numerical': 0.019133669944193462, 'mean_word_length': 6.825363825363826, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '2302647', 'n_tokens_mistral': 1633, 'n_tokens_neox': 1473, 'n_words': 204}