<commit_before>itk_module_test()
set(ITKImageCompareTests
itkAbsoluteValueDifferenceImageFilterTest.cxx
itkSquaredDifferenceImageFilterTest.cxx
itkCheckerBoardImageFilterTest.cxx
itkConstrainedValueDifferenceImageFilterTest.cxx
itkSimilarityIndexImageFilterTest.cxx
itkSTAPLEImageFilterTest.cxx
itkTestingComparisonImageFilterTest.cxx
)

CreateTestDriver(ITKImageCompare  "${ITKImageCompare-Test_LIBRARIES}" "${ITKImageCompareTests}")

itk_add_test(NAME itkAbsoluteValueDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver itkAbsoluteValueDifferenceImageFilterTest)
itk_add_test(NAME itkSquaredDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver itkSquaredDifferenceImageFilterTest)
itk_add_test(NAME itkCheckerBoardImageFilterTest
      COMMAND ITKImageCompareTestDriver
    --compare-MD5 ${ITK_TEST_OUTPUT_DIR}/itkCheckerBoardImageFilterTest.png
              277faa96444775070dcc8f6be2d71eb2
    itkCheckerBoardImageFilterTest ${ITK_TEST_OUTPUT_DIR}/itkCheckerBoardImageFilterTest.png)
itk_add_test(NAME itkConstrainedValueDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver
    --compare-MD5 ${ITK_TEST_OUTPUT_DIR}/itkConstrainedValueDifferenceImageFilterTest.png
              87028680dd2bbc12f57b141f7272d295
    itkConstrainedValueDifferenceImageFilterTest ${ITK_TEST_OUTPUT_DIR}/itkConstrainedValueDifferenceImageFilterTest.png)
itk_add_test(NAME itkSimilarityIndexImageFilterTest
      COMMAND ITKImageCompareTestDriver itkSimilarityIndexImageFilterTest)
itk_add_test(NAME itkSTAPLEImageFilterTest
  COMMAND ITKImageCompareTestDriver
--compare DATA{${ITK_DATA_ROOT}/Baseline/Algorithms/STAPLEImageFilterTest.mha}
          ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha
itkSTAPLEImageFilterTest 2 ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha 255 0.5 100 DATA{${ITK_DATA_ROOT}/Input/STAPLE1.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE2.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE3.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE4.png})
itk_add_test(NAME itkTestingComparisonImageFilterTest
      COMMAND ITKImageCompareTestDriver
      --compare DATA{Input/itkTestingComparisonImageFilterTest.png}
              ${ITK_TEST_OUTPUT_DIR}/itkTestingComparisonImageFilterTest.png
    itkTestingComparisonImageFilterTest DATA{${ITK_DATA_ROOT}/Input/cake_easy.png} DATA{${ITK_DATA_ROOT}/Input/cake_hard.png} ${ITK_TEST_OUTPUT_DIR}/itkTestingComparisonImageFilterTest.png 0 10 1 1647 11 66 16.2999 26846
)
<commit_msg>BUG: Fix `itk::STAPLEImageFilter` test argument order<commit_after>itk_module_test()
set(ITKImageCompareTests
itkAbsoluteValueDifferenceImageFilterTest.cxx
itkSquaredDifferenceImageFilterTest.cxx
itkCheckerBoardImageFilterTest.cxx
itkConstrainedValueDifferenceImageFilterTest.cxx
itkSimilarityIndexImageFilterTest.cxx
itkSTAPLEImageFilterTest.cxx
itkTestingComparisonImageFilterTest.cxx
)

CreateTestDriver(ITKImageCompare  "${ITKImageCompare-Test_LIBRARIES}" "${ITKImageCompareTests}")

itk_add_test(NAME itkAbsoluteValueDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver itkAbsoluteValueDifferenceImageFilterTest)
itk_add_test(NAME itkSquaredDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver itkSquaredDifferenceImageFilterTest)
itk_add_test(NAME itkCheckerBoardImageFilterTest
      COMMAND ITKImageCompareTestDriver
    --compare-MD5 ${ITK_TEST_OUTPUT_DIR}/itkCheckerBoardImageFilterTest.png
              277faa96444775070dcc8f6be2d71eb2
    itkCheckerBoardImageFilterTest ${ITK_TEST_OUTPUT_DIR}/itkCheckerBoardImageFilterTest.png)
itk_add_test(NAME itkConstrainedValueDifferenceImageFilterTest
      COMMAND ITKImageCompareTestDriver
    --compare-MD5 ${ITK_TEST_OUTPUT_DIR}/itkConstrainedValueDifferenceImageFilterTest.png
              87028680dd2bbc12f57b141f7272d295
    itkConstrainedValueDifferenceImageFilterTest ${ITK_TEST_OUTPUT_DIR}/itkConstrainedValueDifferenceImageFilterTest.png)
itk_add_test(NAME itkSimilarityIndexImageFilterTest
      COMMAND ITKImageCompareTestDriver itkSimilarityIndexImageFilterTest)
itk_add_test(NAME itkSTAPLEImageFilterTest
  COMMAND ITKImageCompareTestDriver
--compare DATA{${ITK_DATA_ROOT}/Baseline/Algorithms/STAPLEImageFilterTest.mha}
          ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha
itkSTAPLEImageFilterTest 2 ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha 255 100 0.5 DATA{${ITK_DATA_ROOT}/Input/STAPLE1.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE2.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE3.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE4.png})
itk_add_test(NAME itkTestingComparisonImageFilterTest
      COMMAND ITKImageCompareTestDriver
      --compare DATA{Input/itkTestingComparisonImageFilterTest.png}
              ${ITK_TEST_OUTPUT_DIR}/itkTestingComparisonImageFilterTest.png
    itkTestingComparisonImageFilterTest DATA{${ITK_DATA_ROOT}/Input/cake_easy.png} DATA{${ITK_DATA_ROOT}/Input/cake_hard.png} ${ITK_TEST_OUTPUT_DIR}/itkTestingComparisonImageFilterTest.png 0 10 1 1647 11 66 16.2999 26846
)

{'fraction_non_alphanumeric': 0.0633859862292426, 'fraction_numerical': 0.032806804374240585, 'mean_word_length': 8.318867924528302, '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': '7385222', 'n_tokens_mistral': 1758, 'n_tokens_neox': 1639, 'n_words': 167}