<commit_before># DESIRED_QT_VERSION is set in the VTK top-level CMakeLists.txt
IF(DESIRED_QT_VERSION MATCHES 0)
  MESSAGE("Please set the DESIRED_QT_VERSION")
ELSE(DESIRED_QT_VERSION MATCHES 0)
  
# set up sources to build
SET ( QVTKLibSrcs
    vtkEventQtSlotConnect.cxx
    vtkQtConnection.cxx
    QVTKWidget.cxx
    )

SET ( QVTKMocHeaders
    ${CMAKE_CURRENT_BINARY_DIR}/QVTKWidget.h 
    vtkQtConnection.h
    )

INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR} )


IF(DESIRED_QT_VERSION MATCHES 4)

  SET(Q_SIGNALS Q_SIGNALS)
  SET(Q_SLOTS Q_SLOTS)

  # add files that require Qt 4
  SET ( QVTKLibSrcs
      ${QVTKLibSrcs}
      QVTKPaintEngine.cxx
      QVTKPaintEngine.h
      vtkQtAbstractModelAdapter.cxx
      vtkQtAnnotationLayersModelAdapter.cxx
      vtkQtInitialization.cxx
      vtkQtSQLDatabase.cxx
      vtkQtSQLQuery.cxx
      vtkQtTableModelAdapter.cxx
      vtkQtTimePointUtility.cxx
      vtkQtTreeModelAdapter.cxx 
      )
    
  SET ( QVTKMocHeaders
      ${QVTKMocHeaders}
      vtkQtAbstractModelAdapter.h
      vtkQtAnnotationLayersModelAdapter.h
      vtkQtTableModelAdapter.h
      vtkQtTreeModelAdapter.h
      )

  # add additional files depending on infovis and/or views
  IF(VTK_USE_VIEWS)
    SET( QVTKLibSrcs ${QVTKLibSrcs}
      vtkQtAnnotationView.cxx
      vtkQtBarChartView.cxx
      vtkQtChartRepresentation.cxx
      vtkQtChartView.cxx
      vtkQtLineChartView.cxx
      vtkQtListView.cxx
      vtkQtRecordView.cxx
      vtkQtStackedChartView.cxx
      vtkQtStatisticalBoxChartView.cxx
      vtkQtTableRepresentation.cxx
      vtkQtTableView.cxx
      vtkQtTreeView.cxx
      vtkQtView.cxx
      ) 
    SET_SOURCE_FILES_PROPERTIES(vtkQtView.cxx ABSTRACT )
    SET ( QVTKMocHeaders ${QVTKMocHeaders}
      vtkQtAnnotationView.h
      vtkQtBarChartView.h
      vtkQtChartView.h
      vtkQtLineChartView.h
      vtkQtListView.h
      vtkQtRecordView.h
      vtkQtTableView.h
      vtkQtTreeView.h
      vtkQtView.h
      )
    # Column view is only supported in Qt >= 4.3.0
    STRING(REGEX MATCH "^4\\.0\\.[0-9]+" QT_VERSION_4_0 "${QTVERSION}")
    STRING(REGEX MATCH "^4\\.1\\.[0-9]+" QT_VERSION_4_1 "${QTVERSION}")
    STRING(REGEX MATCH "^4\\.2\\.[0-9]+" QT_VERSION_4_2 "${QTVERSION}")
    IF(QT_VERSION_4_0 OR QT_VERSION_4_1 OR QT_VERSION_4_2)<commit_msg>BUG: Add missing headers to QVTKMocHeaders list so they get installed.<commit_after># DESIRED_QT_VERSION is set in the VTK top-level CMakeLists.txt
IF(DESIRED_QT_VERSION MATCHES 0)
  MESSAGE("Please set the DESIRED_QT_VERSION")
ELSE(DESIRED_QT_VERSION MATCHES 0)
  
# set up sources to build
SET ( QVTKLibSrcs
    vtkEventQtSlotConnect.cxx
    vtkQtConnection.cxx
    QVTKWidget.cxx
    )

SET ( QVTKMocHeaders
    ${CMAKE_CURRENT_BINARY_DIR}/QVTKWidget.h 
    vtkQtConnection.h
    )

INCLUDE_DIRECTORIES ( ${CMAKE_CURRENT_BINARY_DIR} )


IF(DESIRED_QT_VERSION MATCHES 4)

  SET(Q_SIGNALS Q_SIGNALS)
  SET(Q_SLOTS Q_SLOTS)

  # add files that require Qt 4
  SET ( QVTKLibSrcs
      ${QVTKLibSrcs}
      QVTKPaintEngine.cxx
      QVTKPaintEngine.h
      vtkQtAbstractModelAdapter.cxx
      vtkQtAnnotationLayersModelAdapter.cxx
      vtkQtInitialization.cxx
      vtkQtSQLDatabase.cxx
      vtkQtSQLQuery.cxx
      vtkQtTableModelAdapter.cxx
      vtkQtTimePointUtility.cxx
      vtkQtTreeModelAdapter.cxx 
      )
    
  SET ( QVTKMocHeaders
      ${QVTKMocHeaders}
      vtkQtAbstractModelAdapter.h
      vtkQtAnnotationLayersModelAdapter.h
      vtkQtTableModelAdapter.h
      vtkQtTreeModelAdapter.h
      )

  # add additional files depending on infovis and/or views
  IF(VTK_USE_VIEWS)
    SET( QVTKLibSrcs ${QVTKLibSrcs}
      vtkQtAnnotationView.cxx
      vtkQtBarChartView.cxx
      vtkQtChartRepresentation.cxx
      vtkQtChartView.cxx
      vtkQtLineChartView.cxx
      vtkQtListView.cxx
      vtkQtRecordView.cxx
      vtkQtStackedChartView.cxx
      vtkQtStatisticalBoxChartView.cxx
      vtkQtTableRepresentation.cxx
      vtkQtTableView.cxx
      vtkQtTreeView.cxx
      vtkQtView.cxx
      ) 
    SET_SOURCE_FILES_PROPERTIES(vtkQtView.cxx ABSTRACT )
    SET ( QVTKMocHeaders ${QVTKMocHeaders}
      vtkQtAnnotationView.h
      vtkQtBarChartView.h
      vtkQtChartRepresentation.h
      vtkQtChartView.h
      vtkQtLineChartView.h
      vtkQtListView.h
      vtkQtRecordView.h
      vtkQtStackedChartView.h
      vtkQtStatisticalBoxChartView.h
      vtkQtTableRepresentation.h
      vtkQtTableView.h
      vtkQtTreeView.h
      vtkQtView.h
      )
    # Column view is only supported in Qt >= 4.3.0
    STRING(REGEX MATCH "^4\\.0\\.[0-9]+" QT_VERSION_4_0 "${QTVERSION}")
    STRING(REGEX MATCH "^4\\.1\\.[0-9]+" QT_VERSION_4_1 "${QTVERSION}")
    STRING(REGEX MATCH "^4\\.2\\.[0-9]+" QT_VERSION_4_2 "${QTVERSION}")
    IF(QT_VERSION_4_0 OR QT_VERSION_4_1 OR QT_VERSION_4_2)
{'fraction_non_alphanumeric': 0.07229419139155871, 'fraction_numerical': 0.012954450480568324, 'mean_word_length': 3.0567796610169493, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '787779', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1824, 'n_words': 283}