<commit_before>SET(KIT Widgets)
# add tests that do not require data
SET(MyTests     
  BoxWidget.cxx
#  TestAffineWidget.cxx
#  TestAngleWidget.cxx
#  TestBalloonWidget.cxx
#  TestBorderWidget.cxx
#  TestCameraWidget.cxx
#  TestCaptionWidget.cxx
#  TestCheckerboardWidget.cxx
#  TestDistanceWidget.cxx
#  TestHandleWidget.cxx
#  TestHandleWidget2D.cxx
  TestImplicitPlaneWidget.cxx
#  TestLogoWidget.cxx
  TestOrientationMarkerWidget.cxx
#  TestPlaybackWidget.cxx
#  TestRectilinearWipeWidget.cxx
#  TestSeedWidget.cxx
#  TestSliderWidget.cxx
#  TestTextWidget.cxx
  )
IF (VTK_DATA_ROOT)
  # add tests that require data
  SET(MyTests ${MyTests}
    ImagePlaneWidget.cxx
#    TestConstrainedHandleWidget.cxx
#    TestFocalPlaneContour.cxx
#    TestOrientedGlyphContour.cxx
    TestImageTracerWidget.cxx
    TestLineWidget.cxx
#    TestLineWidget2.cxx
    TestOrthoPlanes.cxx
    TestPlaneWidget.cxx
    TestPointWidget.cxx
    TestScalarBarWidget.cxx
#    TestSeedWidget2.cxx
    TestSplineWidget.cxx
    )
ENDIF (VTK_DATA_ROOT)

# remove some tests if there is no display
IF(NOT VTK_USE_DISPLAY)
  REMOVE(MyTests     
    BoxWidget.cxx
    TestImplicitPlaneWidget.cxx
    TestOrientationMarkerWidget.cxx
    ImagePlaneWidget.cxx
    TestSplineWidget.cxx
    TestScalarBarWidget.cxx
    TestLineWidget.cxx
    TestPlaneWidget.cxx
    TestPointWidget.cxx
    TestImageTracerWidget.cxx
    )
ENDIF(NOT VTK_USE_DISPLAY)

CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
                       EXTRA_INCLUDE vtkTestDriver.h)

ADD_EXECUTABLE(${KIT}CxxTests ${Tests})
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkWidgets)
SET (TestsToRun ${Tests})
REMOVE (TestsToRun ${KIT}CxxTests.cxx)

#
# Add all the executables 
FOREACH (test ${TestsToRun})
  GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
  IF (VTK_DATA_ROOT)
    ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
        -V Baseline/${KIT}/${TName}.png)
  ELSE (VTK_DATA_ROOT)
    ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
  ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test) 
<commit_msg>COMP: Do not run TestOrthoPlanes when VTK_USE_DISPLAY is OFF. STYLE: Keep test list alphabetical.<commit_after>SET(KIT Widgets)
# add tests that do not require data
SET(MyTests     
  BoxWidget.cxx
#  TestAffineWidget.cxx
#  TestAngleWidget.cxx
#  TestBalloonWidget.cxx
#  TestBorderWidget.cxx
#  TestCameraWidget.cxx
#  TestCaptionWidget.cxx
#  TestCheckerboardWidget.cxx
#  TestDistanceWidget.cxx
#  TestHandleWidget.cxx
#  TestHandleWidget2D.cxx
  TestImplicitPlaneWidget.cxx
#  TestLogoWidget.cxx
  TestOrientationMarkerWidget.cxx
#  TestPlaybackWidget.cxx
#  TestRectilinearWipeWidget.cxx
#  TestSeedWidget.cxx
#  TestSliderWidget.cxx
#  TestTextWidget.cxx
  )
IF (VTK_DATA_ROOT)
  # add tests that require data
  SET(MyTests ${MyTests}
    ImagePlaneWidget.cxx
#    TestConstrainedHandleWidget.cxx
#    TestFocalPlaneContour.cxx
#    TestOrientedGlyphContour.cxx
    TestImageTracerWidget.cxx
    TestLineWidget.cxx
#    TestLineWidget2.cxx
    TestOrthoPlanes.cxx
    TestPlaneWidget.cxx
    TestPointWidget.cxx
    TestScalarBarWidget.cxx
#    TestSeedWidget2.cxx
    TestSplineWidget.cxx
    )
ENDIF (VTK_DATA_ROOT)

# remove some tests if there is no display
IF(NOT VTK_USE_DISPLAY)
  REMOVE(MyTests     
    BoxWidget.cxx
    ImagePlaneWidget.cxx
    TestImageTracerWidget.cxx
    TestImplicitPlaneWidget.cxx
    TestLineWidget.cxx
    TestOrientationMarkerWidget.cxx
    TestOrthoPlanes.cxx
    TestPlaneWidget.cxx
    TestPointWidget.cxx
    TestScalarBarWidget.cxx
    TestSplineWidget.cxx
    )
ENDIF(NOT VTK_USE_DISPLAY)

CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx ${MyTests}
                       EXTRA_INCLUDE vtkTestDriver.h)

ADD_EXECUTABLE(${KIT}CxxTests ${Tests})
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkWidgets)
SET (TestsToRun ${Tests})
REMOVE (TestsToRun ${KIT}CxxTests.cxx)

#
# Add all the executables 
FOREACH (test ${TestsToRun})
  GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
  IF (VTK_DATA_ROOT)
    ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName}
        -D ${VTK_DATA_ROOT}
        -V Baseline/${KIT}/${TName}.png)
  ELSE (VTK_DATA_ROOT)
    ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
  ENDIF (VTK_DATA_ROOT)
ENDFOREACH (test) 

{'fraction_non_alphanumeric': 0.08800186741363213, 'fraction_numerical': 0.0014005602240896359, 'mean_word_length': 4.264127764127764, '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': '2250405', 'n_tokens_mistral': 1677, 'n_tokens_neox': 1649, 'n_words': 252}