<commit_before>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 "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated-declarations" )
    if($ENV{REAPING2_PROFILE})
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
    endif($ENV{REAPING2_PROFILE})
endif( CMAKE_HOST_UNIX )

list(APPEND 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()
# Ensure that it's cached and absolute
find_path(REAPING2_DEPS_INSTALL_DIR ${REAPING2_DEPS_INSTALL_DIR}
    HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
    )

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_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
foreach(CONFIG_NAME DEBUG RELEASE RELWITHDEBINFO)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/bin/$<LOWER_CASE:$<CONFIG>>)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/lib/$<LOWER_CASE:$<CONFIG>>)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/lib/$<LOWER_CASE:$<CONFIG>>)
endforeach()

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" )
    elseif(MSVC)
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
        option(ENABLE_MSVC_MP "Enable multi-processor compilation" ON)
        if(ENABLE_MSVC_MP)
            set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP" )
        endif(ENABLE_MSVC_MP)
    endif()
endif(WIN32)<commit_msg>Also set pdb output directory.<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 "${CMAKE_CXX_FLAGS} -Wall -Wno-deprecated-declarations" )
    if($ENV{REAPING2_PROFILE})
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pg" )
    endif($ENV{REAPING2_PROFILE})
endif( CMAKE_HOST_UNIX )

list(APPEND 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()
# Ensure that it's cached and absolute
find_path(REAPING2_DEPS_INSTALL_DIR ${REAPING2_DEPS_INSTALL_DIR}
    HINTS ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
    )

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_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
set(CMAKE_PDB_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/pdb)
foreach(CONFIG_NAME DEBUG RELEASE RELWITHDEBINFO)
    set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/bin/$<LOWER_CASE:$<CONFIG>>)
    set(CMAKE_LIBRARY_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/lib/$<LOWER_CASE:$<CONFIG>>)
    set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/lib/$<LOWER_CASE:$<CONFIG>>)
    string(TOLOWER ${CONFIG_NAME} config_name_lower)
    set(CMAKE_PDB_OUTPUT_DIRECTORY_${CONFIG_NAME} ${PROJECT_BINARY_DIR}/pdb/${config_name_lower})
endforeach()

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" )
    elseif(MSVC)
        set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj" )
        option(ENABLE_MSVC_MP "Enable multi-processor compilation" ON)
        if(ENABLE_MSVC_MP)
            set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP" )
        endif(ENABLE_MSVC_MP)
    endif()
endif(WIN32)
{'fraction_non_alphanumeric': 0.10582129963898917, 'fraction_numerical': 0.01263537906137184, 'mean_word_length': 6.643103448275862, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '6835462', 'n_tokens_mistral': 1886, 'n_tokens_neox': 1740, 'n_words': 230}