<commit_before># Build Elision.
#

# Verify the version of CMake required.
cmake_minimum_required( VERSION 2.8 )

# Testing!
enable_testing()

# Define the project and the current version numbers.
project( elision )
SET( ELI_MAJOR 0 )
SET( ELI_MINOR 0 )
SET( ELI_VERSION ${ELI_MAJOR}.${ELI_MINOR} )
SET( ELI_DIST_NAME "elision-${ELI_VERSION}" )

# Find Boost and include it.
FIND_PACKAGE(Boost)
IF (Boost_FOUND)
    INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
    ADD_DEFINITIONS( "-DHAS_BOOST" )
    # Look for the Boost multiprecision library.  We need it.
    find_file(CPP_INT "cpp_int.hpp" "${Boost_INCLUDE_DIR}/boost/multiprecision/")
    if(NOT CPP_INT)
        message(WARNING "Boost does not have multiprecision; falling back to int64_t.")
    else()
        add_definitions(-DHAVE_BOOST_CPP_INT)
    endif()
ENDIF()

# Locate valgrind.
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)

# Specify the list of source files to use for the core library here.
FILE(GLOB_RECURSE lib_sources RELATIVE ${CMAKE_HOME_DIRECTORY} src/*.cpp)

# Specify the list of tests to complile.
FILE(GLOB_RECURSE tests RELATIVE ${CMAKE_HOME_DIRECTORY} test/*_test.cpp)<commit_msg>Added policy stuff for CMake on mac.<commit_after># Build Elision.
#

# Verify the version of CMake required.
cmake_minimum_required( VERSION 2.8 )

# Testing!
enable_testing()

# Define the project and the current version numbers.
project( elision )
SET( ELI_MAJOR 0 )
SET( ELI_MINOR 0 )
SET( ELI_VERSION ${ELI_MAJOR}.${ELI_MINOR} )
SET( ELI_DIST_NAME "elision-${ELI_VERSION}" )
SET( MACOSX_RPATH 1 )
cmake_policy(SET CMP0042 NEW)

# Find Boost and include it.
FIND_PACKAGE(Boost)
IF (Boost_FOUND)
    INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
    ADD_DEFINITIONS( "-DHAS_BOOST" )
    # Look for the Boost multiprecision library.  We need it.
    find_file(CPP_INT "cpp_int.hpp" "${Boost_INCLUDE_DIR}/boost/multiprecision/")
    if(NOT CPP_INT)
        message(WARNING "Boost does not have multiprecision; falling back to int64_t.")
    else()
        add_definitions(-DHAVE_BOOST_CPP_INT)
    endif()
ENDIF()

# Locate valgrind.
find_program(CTEST_MEMORYCHECK_COMMAND NAMES valgrind)

# Specify the list of source files to use for the core library here.
FILE(GLOB_RECURSE lib_sources RELATIVE ${CMAKE_HOME_DIRECTORY} src/*.cpp)

# Specify the list of tests to complile.
FILE(GLOB_RECURSE tests RELATIVE ${CMAKE_HOME_DIRECTORY} test/*_test.cpp)
{'fraction_non_alphanumeric': 0.09565217391304348, 'fraction_numerical': 0.007039337474120083, 'mean_word_length': 4.821686746987952, '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': '5953273', 'n_tokens_mistral': 921, 'n_tokens_neox': 868, 'n_words': 231}