<commit_before>cmake_minimum_required(VERSION 3.1)
project("REXSpeeder")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)

add_library(rexspeeder ../src/REXSpeeder.cpp)
add_executable(example ../example/example.cpp)
target_link_libraries(example rexspeeder)

# Include the "include" folder for headers
target_include_directories(rexspeeder PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)

# We depend upon zlib
find_package(ZLIB REQUIRED)
if (ZLIB_FOUND)
	include_directories(${ZLIB_INCLUDE_DIRS})
	target_link_libraries(rexspeeder ${ZLIB_LIBRARIES})
endif()
<commit_msg>Add symlink creation to the CMake file<commit_after>cmake_minimum_required(VERSION 3.1)
project("REXSpeeder")

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED on)

add_library(rexspeeder ../src/REXSpeeder.cpp)
add_executable(example ../example/example.cpp)
target_link_libraries(example rexspeeder)

# Include the "include" folder for headers
target_include_directories(rexspeeder PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
)

# We depend upon zlib
find_package(ZLIB REQUIRED)
if (ZLIB_FOUND)
	include_directories(${ZLIB_INCLUDE_DIRS})
	target_link_libraries(rexspeeder ${ZLIB_LIBRARIES})
endif()

# Create a symlink to the files needed for example
add_custom_command(
    TARGET rexspeeder POST_BUILD
    COMMAND ln -sf ../example/files .
)

{'fraction_non_alphanumeric': 0.09754335260115607, 'fraction_numerical': 0.005780346820809248, 'mean_word_length': 7.549382716049383, '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': '6302728', 'n_tokens_mistral': 540, 'n_tokens_neox': 492, 'n_words': 91}