<commit_before>INCLUDE_DIRECTORIES(
  "${LIBKEEN_DEPS}/catch/include"
  "${LIBKEEN_TESTS}" )

FILE( GLOB test_sources "${LIBKEEN_TESTS}/*.cpp" )
FOREACH( test_source ${test_sources} )
  GET_FILENAME_COMPONENT( test_name ${test_source} NAME_WE )
  SET( test_target_name "test.${test_name}" )
  ADD_EXECUTABLE( "${test_target_name}" ${test_source} )
  ADD_TEST( NAME ${test_name} COMMAND "${test_target_name}" )
ENDFOREACH()<commit_msg>tests must be linked against the static target<commit_after>INCLUDE_DIRECTORIES(
  "${LIBKEEN_DEPS}/catch/include"
  "${LIBKEEN_TESTS}" )

FILE( GLOB test_sources "${LIBKEEN_TESTS}/*.cpp" )
FOREACH( test_source ${test_sources} )
  GET_FILENAME_COMPONENT( test_name ${test_source} NAME_WE )
  SET( test_target_name "test.${test_name}" )
  ADD_EXECUTABLE( "${test_target_name}" ${test_source} )
  TARGET_LINK_LIBRARIES( "${test_target_name}" libkeen.static )
  ADD_TEST( NAME ${test_name} COMMAND "${test_target_name}" )
ENDFOREACH()
{'fraction_non_alphanumeric': 0.14715025906735751, 'fraction_numerical': 0.0, 'mean_word_length': 7.4, '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': '5176803', 'n_tokens_mistral': 371, 'n_tokens_neox': 360, 'n_words': 61}