<commit_before>cmake_minimum_required (VERSION 2.6)
project (valijson)

set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)

find_package(Boost 1.55.0 COMPONENTS regex REQUIRED)

# jsoncpp library
add_library(jsoncpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_reader.cpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_value.cpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_writer.cpp
)

# Build local gtest
add_subdirectory(thirdparty/gtest-1.7.0)

# Include path
include_directories(
  include
  thirdparty/gtest-1.7.0/include
  thirdparty/jsoncpp-0.9.4/include
  thirdparty/rapidjson-0.1/include
  ${Boost_INCLUDE_DIRS}
)

# Custom schema validation example
add_executable(custom_schema
    examples/custom_schema.cpp
)

# External schema validation example
add_executable(external_schema
    examples/external_schema.cpp
)

# Unit tests executable
add_executable(test_suite
    tests/test_adapter_comparison.cpp
    tests/test_dereference_callback.cpp
    tests/test_jsoncpp_adapter.cpp
    tests/test_property_tree_adapter.cpp
    tests/test_rapidjson_adapter.cpp
    tests/test_uri_resolution.cpp
    tests/test_validation_errors.cpp
    tests/test_validator.cpp
)

set(TEST_LIBS gtest gtest_main jsoncpp)

target_link_libraries(test_suite ${TEST_LIBS} ${Boost_LIBRARIES})
target_link_libraries(custom_schema ${Boost_LIBRARIES})
target_link_libraries(external_schema ${Boost_LIBRARIES})

<commit_msg>Update test suite sources in CMakeList.txt file<commit_after>cmake_minimum_required (VERSION 2.6)
project (valijson)

set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)

find_package(Boost 1.55.0 COMPONENTS regex REQUIRED)

# jsoncpp library
add_library(jsoncpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_reader.cpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_value.cpp
    thirdparty/jsoncpp-0.9.4/src/lib_json/json_writer.cpp
)

# Build local gtest
add_subdirectory(thirdparty/gtest-1.7.0)

# Include path
include_directories(
  include
  thirdparty/gtest-1.7.0/include
  thirdparty/jsoncpp-0.9.4/include
  thirdparty/rapidjson-0.1/include
  ${Boost_INCLUDE_DIRS}
)

# Custom schema validation example
add_executable(custom_schema
    examples/custom_schema.cpp
)

# External schema validation example
add_executable(external_schema
    examples/external_schema.cpp
)

# Unit tests executable
add_executable(test_suite
    tests/test_adapter_comparison.cpp
    tests/test_fetch_document_callback.cpp
    tests/test_jsoncpp_adapter.cpp
    tests/test_property_tree_adapter.cpp
    tests/test_rapidjson_adapter.cpp
    tests/test_uri_resolution.cpp
    tests/test_validation_errors.cpp
    tests/test_validator.cpp
)

set(TEST_LIBS gtest gtest_main jsoncpp)

target_link_libraries(test_suite ${TEST_LIBS} ${Boost_LIBRARIES})
target_link_libraries(custom_schema ${Boost_LIBRARIES})
target_link_libraries(external_schema ${Boost_LIBRARIES})


{'fraction_non_alphanumeric': 0.08240081383519837, 'fraction_numerical': 0.017633095964733808, 'mean_word_length': 5.6441441441441444, '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': '565993', 'n_tokens_mistral': 1099, 'n_tokens_neox': 1058, 'n_words': 144}