<commit_before># The bridge serves two purposes:
# 1. Show the users how to implement a vtkGenericDataSet
# 2. Test and validate the filters on a vtkGenericDataset on standard VTK
# classes.

# C++ tests for the bridge between standard VTK classes and the
# vtkGenericDataSet.

IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)

INCLUDE_DIRECTORIES(
  ${VTK_SOURCE_DIR}/GenericFiltering/Testing/Cxx/Bridge
  )

#SET(KIT Bridge)
SET(KIT GenericFiltering)
SET(UKIT BRIDGE)
SET( Kit_SRCS
vtkBridgeCell.cxx
vtkBridgeDataSet.cxx
vtkBridgeAttribute.cxx
vtkBridgeCellIterator.cxx
vtkBridgePointIterator.cxx
vtkBridgeCellIteratorStrategy.cxx
vtkBridgeCellIteratorOnDataSet.cxx
vtkBridgeCellIteratorOne.cxx
vtkBridgeCellIteratorOnCellBoundaries.cxx
vtkBridgeCellIteratorOnCellList.cxx
)

SET_SOURCE_FILES_PROPERTIES(
vtkBridgeCell.cxx
vtkBridgeCellIterator.cxx
vtkBridgePointIterator.cxx
vtkBridgeAttribute.cxx
vtkBridgeCellIteratorStrategy.cxx
vtkBridgeCellIteratorOnDataSet.cxx
vtkBridgeCellIteratorOne.cxx
vtkBridgeCellIteratorOnCellBoundaries.cxx
vtkBridgeCellIteratorOnCellList.cxx
  WRAP_EXCLUDE
)

#
# Create a test lists
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
  otherCreation.cxx
  TestGenericDataSetTessellator.cxx
)

ADD_EXECUTABLE(${KIT}CxxTests ${Tests} ${Kit_SRCS} )
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkGenericFiltering vtkRendering vtkIO)

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

#
# Add all the executables
#FOREACH (test ${TestsToRun})
#  GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
#  ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})<commit_msg>Added TestGenericGeometryFilter, TestGenericGlyph3DFilter, TestGenericContourFilter, TestGenericClip and TestGenericCutter<commit_after># The bridge serves two purposes:
# 1. Show the users how to implement a vtkGenericDataSet
# 2. Test and validate the filters on a vtkGenericDataset on standard VTK
# classes.

# C++ tests for the bridge between standard VTK classes and the
# vtkGenericDataSet.

IF (VTK_USE_RENDERING AND VTK_USE_DISPLAY)

INCLUDE_DIRECTORIES(
  ${VTK_SOURCE_DIR}/GenericFiltering/Testing/Cxx/Bridge
  )

#SET(KIT Bridge)
SET(KIT GenericFiltering)
SET(UKIT BRIDGE)
SET( Kit_SRCS
vtkBridgeCell.cxx
vtkBridgeDataSet.cxx
vtkBridgeAttribute.cxx
vtkBridgeCellIterator.cxx
vtkBridgePointIterator.cxx
vtkBridgeCellIteratorStrategy.cxx
vtkBridgeCellIteratorOnDataSet.cxx
vtkBridgeCellIteratorOne.cxx
vtkBridgeCellIteratorOnCellBoundaries.cxx
vtkBridgeCellIteratorOnCellList.cxx
)

SET_SOURCE_FILES_PROPERTIES(
vtkBridgeCell.cxx
vtkBridgeCellIterator.cxx
vtkBridgePointIterator.cxx
vtkBridgeAttribute.cxx
vtkBridgeCellIteratorStrategy.cxx
vtkBridgeCellIteratorOnDataSet.cxx
vtkBridgeCellIteratorOne.cxx
vtkBridgeCellIteratorOnCellBoundaries.cxx
vtkBridgeCellIteratorOnCellList.cxx
  WRAP_EXCLUDE
)

#
# Create a test lists
CREATE_TEST_SOURCELIST(Tests ${KIT}CxxTests.cxx
  otherCreation.cxx
  TestGenericDataSetTessellator.cxx
  TestGenericGeometryFilter.cxx
  TestGenericGlyph3DFilter.cxx
  TestGenericContourFilter.cxx
  TestGenericClip.cxx
  TestGenericCutter.cxx
)

ADD_EXECUTABLE(${KIT}CxxTests ${Tests} ${Kit_SRCS} )
TARGET_LINK_LIBRARIES(${KIT}CxxTests vtkGenericFiltering vtkRendering vtkIO)

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

#
# Add all the executables
#FOREACH (test ${TestsToRun})
#  GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
#  ADD_TEST(${TName} ${CXX_TEST_PATH}/${KIT}CxxTests ${TName})
{'fraction_non_alphanumeric': 0.07431059506531204, 'fraction_numerical': 0.0017416545718432512, 'mean_word_length': 8.044619422572179, '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': '4031392', 'n_tokens_mistral': 1286, 'n_tokens_neox': 1247, 'n_words': 228}