<commit_before># Raster Library
# Copyright (C) 2015-2019 <NAME>

cmake_minimum_required(VERSION 3.4)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(raster CXX)
option(RASTER_TESTS "Compile raster tests" on)
option(RASTER_TOOLS "Compile raster tools" on)
option(RASTER_BENCHMARKS "Compile raster benchmarks" on)

include_directories(.)

if(WIN32)
  add_definitions(-D_SCL_SECURE_NO_WARNINGS)
endif()

if(RASTER_TESTS)
  enable_testing()
  add_subdirectory(tests)
endif()

if(RASTER_TOOLS)
  add_subdirectory(tools)
endif()

if(RASTER_BENCHMARKS)
  add_subdirectory(benchmarks)
endif()<commit_msg>Link with pthread which is required by benchmarks<commit_after># Raster Library
# Copyright (C) 2015-2019 <NAME>

cmake_minimum_required(VERSION 3.4)

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)

project(raster CXX)
option(RASTER_TESTS "Compile raster tests" on)
option(RASTER_TOOLS "Compile raster tools" on)
option(RASTER_BENCHMARKS "Compile raster benchmarks" on)

if(UNIX AND NOT APPLE)
  set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pthread")
endif()

include_directories(.)

if(WIN32)
  add_definitions(-D_SCL_SECURE_NO_WARNINGS)
endif()

if(RASTER_TESTS)
  enable_testing()
  add_subdirectory(tests)
endif()

if(RASTER_TOOLS)
  add_subdirectory(tools)
endif()

if(RASTER_BENCHMARKS)
  add_subdirectory(benchmarks)
endif()
{'fraction_non_alphanumeric': 0.09717186366932559, 'fraction_numerical': 0.02030456852791878, 'mean_word_length': 8.078947368421053, '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': '4282420', 'n_tokens_mistral': 585, 'n_tokens_neox': 534, 'n_words': 102}