<commit_before>
# configure the test driver
FIND_PROGRAM(IMAGE_COMPARE ImageCompare)

IF(CMAKE_CONFIGURATION_TYPES)

  FOREACH(config ${CMAKE_CONFIGURATION_TYPES})

    # WrapITK can be installed, without configuration dirs, or in the build tree with the config dir
    SET(PYTHON_TEST_LIB_PATH "${WrapITK_DIR}/lib/${config}/" "${WrapITK_DIR}/lib/")
    SET(PYTHON_TEST_PYTHON_PATH "${WrapITK_DIR}/Python/${config}/" "${WrapITK_DIR}/Python/" "${PROJECT_BINARY_DIR}/lib/${config}/")
    SET(PYTHON_TEST_WRAPITK_PYTHON_PATH "${PROJECT_BINARY_DIR}/Python/")

    CONFIGURE_FILE("${WRAP_ITK_CMAKE_DIR}/Python/Tests/pythonTestDriver.py.in"
                "${CMAKE_CURRENT_BINARY_DIR}/${config}/pythonTestDriver.py"
                @ONLY IMMEDIATE)

  ENDFOREACH(config)

ELSE(CMAKE_CONFIGURATION_TYPES)

  SET(PYTHON_TEST_LIB_PATH "${WrapITK_DIR}/lib/")
  SET(PYTHON_TEST_PYTHON_PATH "${WrapITK_DIR}/Python/")
  SET(PYTHON_TEST_WRAPITK_PYTHON_PATH "${PROJECT_BINARY_DIR}/Python/")

  CONFIGURE_FILE("${WRAP_ITK_CMAKE_DIR}/Python/Tests/pythonTestDriver.py.in"
              "${CMAKE_CURRENT_BINARY_DIR}/pythonTestDriver.py"
              @ONLY IMMEDIATE)

ENDIF(CMAKE_CONFIGURATION_TYPES)


SET(PYTHON_DRIVER "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_BINARY_DIR}/\${CTEST_CONFIGURATION_TYPE}/pythonTestDriver.py")




ADD_TEST(PythonMultithreader
  ${PYTHON_DRIVER}
  ${CMAKE_CURRENT_SOURCE_DIR}/multithreader.py
)

<commit_msg>BUG: use itkTestDriver instead of the old (and no more there) pythonTestDriver.py<commit_after>
# configure the test driver
FIND_PROGRAM(IMAGE_COMPARE ImageCompare)
SET(PYTHON_DRIVER ${PYTHON_DRIVER}  --add-before-env PYTHONPATH "${LIBRARY_OUTPUT_PATH}/\${CTEST_CONFIGURATION_TYPE}"
  --add-before-env WRAPITK_PYTHON_PATH "${PROJECT_BINARY_DIR}/Python/\${CTEST_CONFIGURATION_TYPE}"
)


ADD_TEST(PythonMultithreader
  ${PYTHON_DRIVER}
  ${CMAKE_CURRENT_SOURCE_DIR}/multithreader.py
)


{'fraction_non_alphanumeric': 0.12388451443569554, 'fraction_numerical': 0.0, 'mean_word_length': 5.956204379562044, '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': '1467566', 'n_tokens_mistral': 745, 'n_tokens_neox': 715, 'n_words': 87}