<commit_before>cmake_minimum_required(VERSION 2.8)
project(BurdenOfProof_demo1b)

set(CMAKE_VERBOSE_MAKEFILE OFF CACHE BOOL "Verbose Makefile : ON or OFF" FORCE)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type : Release or Debug" FORCE)

# Warnings
add_definitions("-Wall -Wextra -Wpedantic")

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
	set(CMAKE_CXX_FLAGS "-std=c++11")
endif()

# Optimization
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
	add_definitions("-march=native")
endif()

# Python command
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
	set(PYTHON_COMMAND python2)
else()
	set(PYTHON_COMMAND ppython)
endif()

# Dependencies
set(Boost_USE_STATIC_LIBS    OFF)
set(Boost_USE_MULTITHREADED  ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost COMPONENTS python REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
	set(Boost_LIBRARIES boost_python)

	set(PYTHON_INCLUDE_DIRS "/System/Library/Frameworks/Python.framework/Versions/2.5/Headers")
	set(PYTHON_LIBRARIES "/System/Library/Frameworks/Python.framework/Versions/2.5/Python")<commit_msg>Updated demo1b to compile on Windows<commit_after>cmake_minimum_required(VERSION 2.8)
project(BurdenOfProof_demo1b)

set(CMAKE_VERBOSE_MAKEFILE OFF CACHE BOOL "Verbose Makefile : ON or OFF" FORCE)
set(CMAKE_BUILD_TYPE Debug CACHE STRING "Build type : Release or Debug" FORCE)

# Warnings
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
	add_definitions("-Wall -Wextra -Wpedantic")
endif()

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" OR CMAKE_SYSTEM_NAME STREQUAL "Linux")
	set(CMAKE_CXX_FLAGS "-std=c++11")
endif()

# Optimization
if(NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
	add_definitions("-march=native")
endif()

# Python command
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
	set(PYTHON_COMMAND python2)
else()
	set(PYTHON_COMMAND ppython)
endif()

# Dependencies
set(Boost_USE_STATIC_LIBS    OFF)
set(Boost_USE_MULTITHREADED  ON)
set(Boost_USE_STATIC_RUNTIME OFF)
find_package(Boost COMPONENTS python REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})

if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
	set(Boost_LIBRARIES boost_python)

	set(PYTHON_INCLUDE_DIRS "/System/Library/Frameworks/Python.framework/Versions/2.5/Headers")
	set(PYTHON_LIBRARIES "/System/Library/Frameworks/Python.framework/Versions/2.5/Python")
{'fraction_non_alphanumeric': 0.10021413276231263, 'fraction_numerical': 0.008993576017130621, 'mean_word_length': 7.984615384615385, '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': '1850782', 'n_tokens_mistral': 952, 'n_tokens_neox': 875, 'n_words': 161}