<commit_before>cmake_minimum_required(VERSION 2.8.4)

# Set -Dtest=ON to build unit tests.
option(test "Build all tests." OFF)

project(SCRY)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(Boost COMPONENTS program_options filesystem system REQUIRED)
find_package(YamlCpp REQUIRED)
find_package(Armadillo REQUIRED)
find_package(GLEW REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)


set(CORELIBS ${GLEW_LIBRARIES} ${GLFW_LIBRARIES} ${ARMADILLO_LIBRARIES} ${Boost_LIBRARIES} ${GLUT_LIBRARY} ${OPENGL_LIBRARY} ${YAMLCPP_LIBRARY})
set(INCLUDE_DIRS ${GLFW_INCLUDE_DIRS} ${GLEW_INCLUDE_DIRS})

set(CMAKE_CXX_FLAGS "-g -Wall")

add_definitions(-std=c++11)<commit_msg>Enable compiler optimization and remove unused packages<commit_after>cmake_minimum_required(VERSION 2.8.4)

# Set -Dtest=ON to build unit tests.
option(test "Build all tests." OFF)
option(debug "Debug mode." OFF)

project(SCRY)

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")

find_package(OpenGL REQUIRED)
find_package(Boost COMPONENTS program_options filesystem system REQUIRED)
find_package(YamlCpp REQUIRED)
find_package(Armadillo REQUIRED)
find_package(GLEW REQUIRED)

find_package(PkgConfig REQUIRED)
pkg_search_module(GLFW REQUIRED glfw3)


set(CORELIBS ${GLEW_LIBRARIES} ${GLFW_LIBRARIES} ${ARMADILLO_LIBRARIES} ${Boost_LIBRARIES} ${OPENGL_LIBRARY} ${YAMLCPP_LIBRARY})
set(INCLUDE_DIRS ${GLFW_INCLUDE_DIRS} ${GLEW_INCLUDE_DIRS})

if (debug)
    set(CMAKE_CXX_FLAGS "-g -Wall")
else()
    set(CMAKE_CXX_FLAGS "-Ofast")
endif()

add_definitions(-std=c++11)
{'fraction_non_alphanumeric': 0.11248527679623085, 'fraction_numerical': 0.007067137809187279, 'mean_word_length': 8.994117647058824, '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': '3164329', 'n_tokens_mistral': 715, 'n_tokens_neox': 649, 'n_words': 118}