<commit_before>message(STATUS "Looking for mongodb API in ${CMAKE_CURRENT_LIST_DIR}")

find_library(MONGOCLIENT
	mongoclient
	HINTS ${CMAKE_CURRENT_LIST_DIR}/lib
)

find_path(MONGOCLIENT_INCLUDE_DIR 
	mongo/config.h
    HINTS ${CMAKE_CURRENT_LIST_DIR}/include
)

find_library(BOOST_SYSTEM
    boost_system
)

find_library(BOOST_THREAD
    boost_thread
)

find_library(BOOST_REGEX
    boost_regex
)

find_path(BOOST_INCLUDE_DIR 
    boost/version.hpp
)<commit_msg>Disable mongodb if boost is not found<commit_after>find_library(BOOST_REGEX  boost_regex)
find_library(BOOST_SYSTEM boost_system)
find_library(BOOST_THREAD boost_thread)
find_path(BOOST_INCLUDE_DIR boost/version.hpp)

if(NOT EXISTS ${BOOST_REGEX})
    message(STATUS "libboost-regex-dev not found, disabling mongodb")
    return()
endif()

if(NOT EXISTS ${BOOST_SYSTEM})
    message(STATUS "libboost-system-dev not found, disabling mongodb")
    return()
endif()

if(NOT EXISTS ${BOOST_THREAD})
    message(STATUS "libboost-thread-dev not found, disabling mongodb")
    return()
endif()

message(STATUS "Looking for mongodb API in ${CMAKE_CURRENT_LIST_DIR}")

find_library(MONGOCLIENT
	mongoclient
	HINTS ${CMAKE_CURRENT_LIST_DIR}/lib
)

find_path(MONGOCLIENT_INCLUDE_DIR 
	mongo/config.h
    HINTS ${CMAKE_CURRENT_LIST_DIR}/include
)
{'fraction_non_alphanumeric': 0.08943716268311488, 'fraction_numerical': 0.0, 'mean_word_length': 6.211111111111111, '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': '2741974', 'n_tokens_mistral': 493, 'n_tokens_neox': 449, 'n_words': 85}