<commit_before>enable_testing()

set (TESTS_PLUGIN_JSON tests_plugin_json)
file (GLOB TESTS_PLUGIN_JSON_SOURCES *.cc)
list (APPEND TESTS_PLUGIN_JSON_SOURCES "../../test_helper.cc" "../../gtest.cc")

add_executable (${TESTS_PLUGIN_JSON} ${TESTS_PLUGIN_JSON_SOURCES})

include_directories (${LIBDISIR_TEST_INCLUDE_DIRS})
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/)
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/boost_fdstream)
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/jsoncpp)
include_directories (${CMAKE_SOURCE_DIR}/include/)
# Private include headers
include_directories (${CMAKE_SOURCE_DIR}/lib/include/)

target_link_libraries (${TESTS_PLUGIN_JSON} ${PROJECT_SO_LIBRARY})
target_link_libraries (${TESTS_PLUGIN_JSON} ${GTEST_BOTH_LIBRARIES})
# TODO: Why pthread not part of gtest?? (it is on fedora)
target_link_libraries (${TESTS_PLUGIN_JSON} pthread)

add_test (LibDisirPluginJSONTest ${TESTS_PLUGIN_JSON})

<commit_msg>build: included cpp experimental fs<commit_after>enable_testing()

set (TESTS_PLUGIN_JSON tests_plugin_json)
file (GLOB TESTS_PLUGIN_JSON_SOURCES *.cc)
list (APPEND TESTS_PLUGIN_JSON_SOURCES "../../test_helper.cc" "../../gtest.cc")

add_executable (${TESTS_PLUGIN_JSON} ${TESTS_PLUGIN_JSON_SOURCES})

include_directories (${LIBDISIR_TEST_INCLUDE_DIRS})
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/)
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/boost_fdstream)
include_directories (${CMAKE_SOURCE_DIR}/3rdparty/jsoncpp)
include_directories (${CMAKE_SOURCE_DIR}/include/)
# Private include headers
include_directories (${CMAKE_SOURCE_DIR}/lib/include/)

target_link_libraries (${TESTS_PLUGIN_JSON} ${PROJECT_SO_LIBRARY})
target_link_libraries (${TESTS_PLUGIN_JSON} ${GTEST_BOTH_LIBRARIES})
# TODO: Why pthread not part of gtest?? (it is on fedora)
target_link_libraries (${TESTS_PLUGIN_JSON} pthread)
# cpp experimental filesystem
target_link_libraries (${TESTS_PLUGIN_JSON} stdc++fs)

add_test (LibDisirPluginJSONTest ${TESTS_PLUGIN_JSON})

{'fraction_non_alphanumeric': 0.11779448621553884, 'fraction_numerical': 0.0030075187969924814, 'mean_word_length': 9.67379679144385, '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': '5428431', 'n_tokens_mistral': 770, 'n_tokens_neox': 736, 'n_words': 118}