<commit_before>CMAKE_MINIMUM_REQUIRED( VERSION 2.8 FATAL_ERROR )

PROJECT( libkeen )

SET( LIBKEEN_MAJOR "0" CACHE STRING "LibKeen major version" )
SET( LIBKEEN_MINOR "0" CACHE STRING "LibKeen minor version" )
SET( LIBKEEN_PATCH "0" CACHE STRING "LibKeen patch version" )
SET( LIBKEEN_VERSION "${LIBKEEN_MAJOR}.${LIBKEEN_MINOR}.${LIBKEEN_PATCH}"
  CACHE STRING "LibKeen version string"  )

SET( LIBKEEN_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" CACHE PATH   "root directory" )
SET( LIBKEEN_DEPS "${LIBKEEN_ROOT}/deps" CACHE PATH  "dependencies directory" )
SET( LIBKEEN_TESTS "${LIBKEEN_ROOT}/tests" CACHE PATH  "unit tests directory" )
SET( LIBKEEN_SOURCE  "${LIBKEEN_ROOT}/source"  CACHE PATH "sources directory" )
SET( LIBKEEN_INCLUDE "${LIBKEEN_ROOT}/include" CACHE PATH "include directory" )

ADD_DEFINITIONS( -DASIO_STANDALONE )
IF( MSVC )
  ADD_DEFINITIONS(
    -DVC_EXTRALEAN
    -DWINVER=0x0601
    -D_WIN32_WINNT=0x0601
    -DWIN32_LEAN_AND_MEAN
    -D_CRT_SECURE_NO_WARNINGS )
  SET(CMAKE_EXE_LINKER_FLAGS_DEBUG
    "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT")
ENDIF()

ADD_DEFINITIONS(
  -DCURL_STATICLIB
  -DSQLITE_THREADSAFE=3 )

SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
  "${LIBKEEN_ROOT}/tools/share/cmake" )
INCLUDE( FindLibCURL REQUIRED )

INCLUDE_DIRECTORIES(
  "${LIBKEEN_DEPS}/asio/asio/include"
  "${LIBKEEN_DEPS}/sqlite"
  "${LIBKEEN_SOURCE}"<commit_msg>silence another harmless warning on sqlite3<commit_after>CMAKE_MINIMUM_REQUIRED( VERSION 2.8 FATAL_ERROR )

PROJECT( libkeen )

SET( LIBKEEN_MAJOR "0" CACHE STRING "LibKeen major version" )
SET( LIBKEEN_MINOR "0" CACHE STRING "LibKeen minor version" )
SET( LIBKEEN_PATCH "0" CACHE STRING "LibKeen patch version" )
SET( LIBKEEN_VERSION "${LIBKEEN_MAJOR}.${LIBKEEN_MINOR}.${LIBKEEN_PATCH}"
  CACHE STRING "LibKeen version string"  )

SET( LIBKEEN_ROOT "${CMAKE_CURRENT_SOURCE_DIR}" CACHE PATH   "root directory" )
SET( LIBKEEN_DEPS "${LIBKEEN_ROOT}/deps" CACHE PATH  "dependencies directory" )
SET( LIBKEEN_TESTS "${LIBKEEN_ROOT}/tests" CACHE PATH  "unit tests directory" )
SET( LIBKEEN_SOURCE  "${LIBKEEN_ROOT}/source"  CACHE PATH "sources directory" )
SET( LIBKEEN_INCLUDE "${LIBKEEN_ROOT}/include" CACHE PATH "include directory" )

ADD_DEFINITIONS( -DASIO_STANDALONE )
IF( MSVC )
  ADD_DEFINITIONS(
    -DVC_EXTRALEAN
    -DWINVER=0x0601
    -D_WIN32_WINNT=0x0601
    -DWIN32_LEAN_AND_MEAN
    -D_CRT_SECURE_NO_WARNINGS
	/wd4996 )
  SET(CMAKE_EXE_LINKER_FLAGS_DEBUG
    "${CMAKE_EXE_LINKER_FLAGS_DEBUG} /NODEFAULTLIB:MSVCRT")
ENDIF()

ADD_DEFINITIONS(
  -DCURL_STATICLIB
  -DSQLITE_THREADSAFE=3 )

SET( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH}
  "${LIBKEEN_ROOT}/tools/share/cmake" )
INCLUDE( FindLibCURL REQUIRED )

INCLUDE_DIRECTORIES(
  "${LIBKEEN_DEPS}/asio/asio/include"
  "${LIBKEEN_DEPS}/sqlite"
  "${LIBKEEN_SOURCE}"
{'fraction_non_alphanumeric': 0.11221945137157108, 'fraction_numerical': 0.016031350195938723, 'mean_word_length': 5.967741935483871, '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': '6045932', 'n_tokens_mistral': 1222, 'n_tokens_neox': 1139, 'n_words': 209}