<commit_before>### Configuration
cmake_minimum_required(VERSION 2.8)

project(libOL)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

set(CMAKE_CXX_FLAGS                "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG          "-O0 -g")

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()

include_directories("${PROJECT_SOURCE_DIR}/src")

### libOL
set(LIBOL_SOURCES
  src/libOL/Blowfish/Blowfish.cpp
  src/libOL/ChunkHeader.cpp
  src/libOL/Chunks.cpp
  src/libOL/Header.cpp
  src/libOL/PayloadHeader.cpp
  src/libOL/Rofl.cpp
  src/libOL/Keyframe.cpp
  src/libOL/KeyframeHeader.cpp
  src/libOL/PlayerSegment.cpp
  src/libOL/MasteryEntry.cpp
  src/libOL/ItemEntry.cpp<commit_msg>Adds more warnings & fixes clang builds on non-Darwin systems<commit_after>### Configuration
cmake_minimum_required(VERSION 2.8)

project(libOL)

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

set(CMAKE_CXX_FLAGS                "${CMAKE_CXX_FLAGS} -Wall -Wpedantic -Werror -Wextra -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG          "-O0 -g")

if("${CMAKE_SYSTEM_NAME}" MATCHES "Darwin" AND "${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -stdlib=libc++")
endif()

include_directories("${PROJECT_SOURCE_DIR}/src")

### libOL
set(LIBOL_SOURCES
  src/libOL/Blowfish/Blowfish.cpp
  src/libOL/ChunkHeader.cpp
  src/libOL/Chunks.cpp
  src/libOL/Header.cpp
  src/libOL/PayloadHeader.cpp
  src/libOL/Rofl.cpp
  src/libOL/Keyframe.cpp
  src/libOL/KeyframeHeader.cpp
  src/libOL/PlayerSegment.cpp
  src/libOL/MasteryEntry.cpp
  src/libOL/ItemEntry.cpp
{'fraction_non_alphanumeric': 0.12695924764890282, 'fraction_numerical': 0.00522466039707419, 'mean_word_length': 5.447811447811448, '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': '710668', 'n_tokens_mistral': 821, 'n_tokens_neox': 759, 'n_words': 93}