<commit_before>cmake_minimum_required (VERSION 3.2)

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
  message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the root and call cmake from there")
endif()

project (fixed_test)


set (CMAKE_CXX_STANDARD 14)
#compiler requirement
if (MSVC)
	add_compile_options(/W4)
else ()
	add_compile_options(-Wall -Wextra -Wpedantic -std=c++1z)
endif()

set(INCLUDE_DIRS 
	"${PROJECT_SOURCE_DIR}/../include/")

set(FIXED_EXPOSED_SOURCE_DIR "${INCLUDE_DIRS}/fixed")
set(FIXED_IMPL_SOURCE_DIR "${FIXED_EXPOSED_SOURCE_DIR}/impl")

include_directories(${INCLUDE_DIRS})

set(SOURCES
	"${PROJECT_SOURCE_DIR}/catch.hpp"
	"${PROJECT_SOURCE_DIR}/main.cpp"
	"${PROJECT_SOURCE_DIR}/test_unordered_map.cpp"
	"${PROJECT_SOURCE_DIR}/test_vector.cpp"
	
	"${FIXED_EXPOSED_SOURCE_DIR}/list.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/string.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/unordered_map.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/vector.hpp"
	
	"${FIXED_IMPL_SOURCE_DIR}/basic_allocation_pattern.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_allocation_sources.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_list.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_small_string.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_string.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_unordered_map.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_vector.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/fixed_def.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/fixed_type_traits.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/iterator.hpp"
	)

add_executable(fixed_test ${SOURCES})<commit_msg>Please cmake, don't override my std version<commit_after>cmake_minimum_required (VERSION 3.2)

if(${CMAKE_SOURCE_DIR} STREQUAL ${CMAKE_BINARY_DIR})
  message(FATAL_ERROR "Prevented in-tree built. Please create a build directory outside of the root and call cmake from there")
endif()

project (fixed_test)


#compiler requirement
if (MSVC)
	add_compile_options(/W4)
	set (CMAKE_CXX_STANDARD 14)
else ()
	add_compile_options(-Wall -Wextra -Wpedantic -std=c++1z)
endif()

set(INCLUDE_DIRS 
	"${PROJECT_SOURCE_DIR}/../include/")

set(FIXED_EXPOSED_SOURCE_DIR "${INCLUDE_DIRS}/fixed")
set(FIXED_IMPL_SOURCE_DIR "${FIXED_EXPOSED_SOURCE_DIR}/impl")

include_directories(${INCLUDE_DIRS})

set(SOURCES
	"${PROJECT_SOURCE_DIR}/catch.hpp"
	"${PROJECT_SOURCE_DIR}/main.cpp"
	"${PROJECT_SOURCE_DIR}/test_unordered_map.cpp"
	"${PROJECT_SOURCE_DIR}/test_vector.cpp"
	
	"${FIXED_EXPOSED_SOURCE_DIR}/list.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/string.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/unordered_map.hpp"
	"${FIXED_EXPOSED_SOURCE_DIR}/vector.hpp"
	
	"${FIXED_IMPL_SOURCE_DIR}/basic_allocation_pattern.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_allocation_sources.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_list.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_small_string.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_string.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_unordered_map.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/basic_vector.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/fixed_def.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/fixed_type_traits.hpp"
	"${FIXED_IMPL_SOURCE_DIR}/iterator.hpp"
	)

add_executable(fixed_test ${SOURCES})
{'fraction_non_alphanumeric': 0.1378861788617886, 'fraction_numerical': 0.003902439024390244, 'mean_word_length': 8.43558282208589, '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': '5131953', 'n_tokens_mistral': 1300, 'n_tokens_neox': 1246, 'n_words': 143}