<commit_before>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(konstructs)

#-----------------------------------------------------------------------
# Check for C++11 enabled compiler
#-----------------------------------------------------------------------

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
    message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()

#-----------------------------------------------------------------------
# Nano GUI
#-----------------------------------------------------------------------
option(NANOGUI_BUILD_PYTHON OFF)
option(NANOGUI_BUILD_EXAMPLE OFF)
add_subdirectory(dependencies/nanogui)

#-----------------------------------------------------------------------
# Misc
#-----------------------------------------------------------------------

set(CMAKE_BUILD_TYPE Debug)

find_package(ZLIB REQUIRED)
include_directories(
  ${ZLIB_INCLUDE_DIRS}
  dependencies/nanogui/include
  dependencies/nanogui/ext/glfw/include
  dependencies/nanogui/ext/eigen
  dependencies/nanogui/ext/nanovg/src
  dependencies/lodepng)

FILE(GLOB SOURCE_FILES src/*.cpp dependencies/lodepng/lodepng.cpp src/noise/*.cpp)
add_executable(konstructs ${SOURCE_FILES})

if(MINGW)
  target_link_libraries(konstructs ws2_32.lib
    ${ZLIB_LIBRARIES} nanogui)
else()
  target_link_libraries(konstructs
    ${ZLIB_LIBRARIES} nanogui glfw)
endif()<commit_msg>Add -Wunknown-pragmas on MinGW builds.<commit_after>cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(konstructs)

#-----------------------------------------------------------------------
# Check for C++11 enabled compiler
#-----------------------------------------------------------------------

include(CheckCXXCompilerFlag)
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
CHECK_CXX_COMPILER_FLAG("-std=c++0x" COMPILER_SUPPORTS_CXX0X)
if(COMPILER_SUPPORTS_CXX11)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
elseif(COMPILER_SUPPORTS_CXX0X)
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
else()
    message(STATUS "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support. Please use a different C++ compiler.")
endif()

#-----------------------------------------------------------------------
# Nano GUI
#-----------------------------------------------------------------------
option(NANOGUI_BUILD_PYTHON OFF)
option(NANOGUI_BUILD_EXAMPLE OFF)
add_subdirectory(dependencies/nanogui)

#-----------------------------------------------------------------------
# Misc
#-----------------------------------------------------------------------

set(CMAKE_BUILD_TYPE Debug)

find_package(ZLIB REQUIRED)
include_directories(
  ${ZLIB_INCLUDE_DIRS}
  dependencies/nanogui/include
  dependencies/nanogui/ext/glfw/include
  dependencies/nanogui/ext/eigen
  dependencies/nanogui/ext/nanovg/src
  dependencies/lodepng)

FILE(GLOB SOURCE_FILES src/*.cpp dependencies/lodepng/lodepng.cpp src/noise/*.cpp)
add_executable(konstructs ${SOURCE_FILES})

if(MINGW)
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wunknown-pragmas")
  target_link_libraries(konstructs ws2_32.lib
    ${ZLIB_LIBRARIES} nanogui)
else()
  target_link_libraries(konstructs
    ${ZLIB_LIBRARIES} nanogui glfw)
endif()
{'fraction_non_alphanumeric': 0.3260684970280215, 'fraction_numerical': 0.011887913954146618, 'mean_word_length': 1.9873203719357566, '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': '7169204', 'n_tokens_mistral': 1147, 'n_tokens_neox': 1075, 'n_words': 156}