<commit_before># if we have rendering and views add the following tests
IF(VTK_USE_RENDERING AND VTK_USE_VIEWS)

  SET(KIT Charts)
  # add tests that do not require data
  SET(MyTests
    TestContextScene.cxx
    TestVector.cxx
    )

  IF (VTK_DATA_ROOT)
    # add tests that require data
    SET(MyTests ${MyTests}
      #TestContextUnicode.cxx # Disabled until Freetype unicode works
      TestBarGraph.cxx
      TestBarGraphHorizontal.cxx
      TestColorTransferFunction.cxx
      TestChartsOn3D.cxx
      TestContext.cxx
      TestContextImage.cxx
      TestDiagram.cxx
      #TestFreeTypeContextUnicode.cxx
      #TestFreeTypeRender.cxx
      TestHistogram2D.cxx
      TestLegendHiddenPlots.cxx
      TestLinePlot.cxx
      TestLinePlotInteraction.cxx
      TestMultipleChartRenderers.cxx
      TestMultipleRenderers.cxx
      TestMultipleScalarsToColors.cxx
      TestParallelCoordinates.cxx
      TestPieChart.cxx
      TestPlotMatrix.cxx
      TestScalarsToColors.cxx
      TestScatterPlot.cxx
      TestScientificPlot.cxx
      TestStackedBarGraph.cxx
      TestStackedPlot.cxx
      )
    IF(VTK_USE_GLSL_SHADERS)
      SET(MyTests ${MyTests}
        TestGLSL.cxx
        )
    ENDIF(VTK_USE_GLSL_SHADERS)
    # Set the tolerance higher for a few tests that need it
    set(TestGLSL 12)
    set(TestChartsOn3D 16)
    SET(TestLinePlotError 25)
    SET(TestLinePlotInteractionError 25)
    SET(TestMultipleRenderersError 25)
    SET(TestMultipleScalarsToColorsError 25)
    SET(TestParallelCoordinatesError 15)
  ENDIF (VTK_DATA_ROOT)

  IF (VTK_USE_QT)
    #add tests that require Qt
    INCLUDE(${QT_USE_FILE})
    IF (VTK_DATA_ROOT)
      SET(MyTests ${MyTests}
        #TestQtDiagram.cxx
        #TestQtContextUnicode.cxx
        )
      SET(TestQtDiagramError 25)
      SET(TestQtContextUnicodeError 30)
    ENDIF (VTK_DATA_ROOT)
  ENDIF(VTK_USE_QT)
  # Use the testing object factory, to reduce boilerplate code in tests.
  INCLUDE("${VTK_SOURCE_DIR}/Rendering/vtkTestingObjectFactory.cmake")<commit_msg>Needs to be appended with Error to be used.<commit_after># if we have rendering and views add the following tests
IF(VTK_USE_RENDERING AND VTK_USE_VIEWS)

  SET(KIT Charts)
  # add tests that do not require data
  SET(MyTests
    TestContextScene.cxx
    TestVector.cxx
    )

  IF (VTK_DATA_ROOT)
    # add tests that require data
    SET(MyTests ${MyTests}
      #TestContextUnicode.cxx # Disabled until Freetype unicode works
      TestBarGraph.cxx
      TestBarGraphHorizontal.cxx
      TestColorTransferFunction.cxx
      TestChartsOn3D.cxx
      TestContext.cxx
      TestContextImage.cxx
      TestDiagram.cxx
      #TestFreeTypeContextUnicode.cxx
      #TestFreeTypeRender.cxx
      TestHistogram2D.cxx
      TestLegendHiddenPlots.cxx
      TestLinePlot.cxx
      TestLinePlotInteraction.cxx
      TestMultipleChartRenderers.cxx
      TestMultipleRenderers.cxx
      TestMultipleScalarsToColors.cxx
      TestParallelCoordinates.cxx
      TestPieChart.cxx
      TestPlotMatrix.cxx
      TestScalarsToColors.cxx
      TestScatterPlot.cxx
      TestScientificPlot.cxx
      TestStackedBarGraph.cxx
      TestStackedPlot.cxx
      )
    IF(VTK_USE_GLSL_SHADERS)
      SET(MyTests ${MyTests}
        TestGLSL.cxx
        )
    ENDIF(VTK_USE_GLSL_SHADERS)
    # Set the tolerance higher for a few tests that need it
    set(TestGLSLError 12)
    set(TestChartsOn3DError 16)
    SET(TestLinePlotError 25)
    SET(TestLinePlotInteractionError 25)
    SET(TestMultipleRenderersError 25)
    SET(TestMultipleScalarsToColorsError 25)
    SET(TestParallelCoordinatesError 15)
  ENDIF (VTK_DATA_ROOT)

  IF (VTK_USE_QT)
    #add tests that require Qt
    INCLUDE(${QT_USE_FILE})
    IF (VTK_DATA_ROOT)
      SET(MyTests ${MyTests}
        #TestQtDiagram.cxx
        #TestQtContextUnicode.cxx
        )
      SET(TestQtDiagramError 25)
      SET(TestQtContextUnicodeError 30)
    ENDIF (VTK_DATA_ROOT)
  ENDIF(VTK_USE_QT)
  # Use the testing object factory, to reduce boilerplate code in tests.
  INCLUDE("${VTK_SOURCE_DIR}/Rendering/vtkTestingObjectFactory.cmake")
{'fraction_non_alphanumeric': 0.05759803921568627, 'fraction_numerical': 0.010294117647058823, 'mean_word_length': 3.130566801619433, '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': '7199635', 'n_tokens_mistral': 1454, 'n_tokens_neox': 1388, 'n_words': 267}