<commit_before># Top Level CMakeLists.txt File
cmake_minimum_required( VERSION 2.8 )
# set the installation prefix
# Note: setting this *before* the project imposes a default that the user is
# able to change.
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install/" CACHE PATH "installation prefix")

project( SerTools )
enable_language (Fortran)

set(TEST_SCRIPT ${CMAKE_BINARY_DIR}/run_tests.sh)
file(WRITE ${TEST_SCRIPT} "#!/bin/sh\n")
file(APPEND ${TEST_SCRIPT} "res=0\n")

set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran )

install(DIRECTORY ${CMAKE_BINARY_DIR}/fortran/ DESTINATION include/fortran FILES_MATCHING PATTERN "*.mod" PATTERN "CMake*" EXCLUDE )

set(CXX11_FLAGS "-std=c++11")

set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11")

function(sertools_add_test test_name )
  #ignore the execute prefix in case it is not a valid executable prefix
  add_test(NAME ${test_name} COMMAND $<TARGET_FILE:${test_name}> ${ARGN})
  file(APPEND ${TEST_SCRIPT} "${CMAKE_CURRENT_BINARY_DIR}/${test_name}" " ${ARGN}" "\n")
  file(APPEND ${TEST_SCRIPT} "if [ $? -ne 0 ] ; then\n echo \"Error: problem found in Unittest\"\nfi\n")
  file(APPEND ${TEST_SCRIPT} "res=$((res || $? ))\n")
endfunction(sertools_add_test)

if( CMAKE_HOST_UNIX )
    message(STATUS "Compiling shared library on Unix")<commit_msg>add boost to requirements<commit_after># Top Level CMakeLists.txt File
cmake_minimum_required( VERSION 2.8 )
# set the installation prefix
# Note: setting this *before* the project imposes a default that the user is
# able to change.
SET(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install/" CACHE PATH "installation prefix")

project( SerTools )
enable_language (Fortran)

find_package( Boost )
include_directories( SYSTEM ${Boost_INCLUDE_DIRS} )

set(TEST_SCRIPT ${CMAKE_BINARY_DIR}/run_tests.sh)
file(WRITE ${TEST_SCRIPT} "#!/bin/sh\n")
file(APPEND ${TEST_SCRIPT} "res=0\n")

set(CMAKE_Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/fortran )

install(DIRECTORY ${CMAKE_BINARY_DIR}/fortran/ DESTINATION include/fortran FILES_MATCHING PATTERN "*.mod" PATTERN "CMake*" EXCLUDE )

set(CXX11_FLAGS "-std=c++11")

set(CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS} "-std=c++11")

function(sertools_add_test test_name )
  #ignore the execute prefix in case it is not a valid executable prefix
  add_test(NAME ${test_name} COMMAND $<TARGET_FILE:${test_name}> ${ARGN})
  file(APPEND ${TEST_SCRIPT} "${CMAKE_CURRENT_BINARY_DIR}/${test_name}" " ${ARGN}" "\n")
  file(APPEND ${TEST_SCRIPT} "if [ $? -ne 0 ] ; then\n echo \"Error: problem found in Unittest\"\nfi\n")
  file(APPEND ${TEST_SCRIPT} "res=$((res || $? ))\n")
endfunction(sertools_add_test)

if( CMAKE_HOST_UNIX )
    message(STATUS "Compiling shared library on Unix")
{'fraction_non_alphanumeric': 0.13855200294009556, 'fraction_numerical': 0.00735023888276369, 'mean_word_length': 6.437158469945355, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '6560538', 'n_tokens_mistral': 1051, 'n_tokens_neox': 970, 'n_words': 233}