<commit_before>cmake_minimum_required (VERSION 2.8)

project (JonoonDB_Tutorial)

if(APPLE)
  set(CMAKE_CXX_FLAGS
    "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++ -m64")
elseif(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
  set(CMAKE_CXX_FLAGS
    "${CMAKE_CXX_FLAGS} -std=c++14 -m64")
endif()

# jonoondb
if(JONOONDB_ROOT)
  message(JONOONDB_ROOT = ${JONOONDB_ROOT})
else()
  message("JONOONDB_ROOT is not set. Standard system locations will be used to lookup headers and libs.")
endif()

include_directories(${JONOONDB_ROOT}/include)
find_library (JonoonDB_LIBRARY jonoondb_api ${JONOONDB_ROOT}/lib)

set (DB_PATH ${PROJECT_BINARY_DIR})
set (SCHEMA_PATH ${PROJECT_SOURCE_DIR}/schemas)
configure_file (
  "${PROJECT_SOURCE_DIR}/config.h.in"
  "${PROJECT_SOURCE_DIR}/config_generated.h")

# jonoondb_tutorial
add_executable(
 jonoondb_tutorial
 ${PROJECT_SOURCE_DIR}/main.cc)
target_link_libraries(jonoondb_tutorial ${JonoonDB_LIBRARY})<commit_msg>Using versioned lib<commit_after>cmake_minimum_required (VERSION 2.8)

project (JonoonDB_Tutorial)

if(APPLE)
  set(CMAKE_CXX_FLAGS
    "${CMAKE_CXX_FLAGS} -std=c++14 -stdlib=libc++ -m64")
elseif(CMAKE_COMPILER_IS_GNUCXX OR ${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
  set(CMAKE_CXX_FLAGS
    "${CMAKE_CXX_FLAGS} -std=c++14 -m64")
endif()

# jonoondb
if(JONOONDB_ROOT)
  message(JONOONDB_ROOT = ${JONOONDB_ROOT})
else()
  message("JONOONDB_ROOT is not set. Standard system locations will be used to lookup headers and libs.")
endif()


include_directories(${JONOONDB_ROOT}/include)
find_library (JonoonDB_LIBRARY jonoondb_api_v0 ${JONOONDB_ROOT}/lib)

set (DB_PATH ${PROJECT_BINARY_DIR})
set (SCHEMA_PATH ${PROJECT_SOURCE_DIR}/schemas)
configure_file (
  "${PROJECT_SOURCE_DIR}/config.h.in"
  "${PROJECT_SOURCE_DIR}/config_generated.h")

# jonoondb_tutorial
add_executable(
 jonoondb_tutorial
 ${PROJECT_SOURCE_DIR}/main.cc)
target_link_libraries(jonoondb_tutorial ${JonoonDB_LIBRARY})
{'fraction_non_alphanumeric': 0.12155260469867211, 'fraction_numerical': 0.010725229826353423, 'mean_word_length': 7.668141592920354, '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': '1146033', 'n_tokens_mistral': 854, 'n_tokens_neox': 796, 'n_words': 125}