<commit_before>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(VtkOsgConverter)
SET(VTKOSGCONVERTER_MAJOR_VERSION 1)
SET(VTKOSGCONVERTER_MINOR_VERSION 1)
SET(VTKOSGCONVERTER_PATCH_VERSION 0)
SET(VTKOSGCONVERTER_VERSION
  ${VTKOSGCONVERTER_MAJOR_VERSION}.${VTKOSGCONVERTER_MINOR_VERSION}.${VTKOSGCONVERTER_PATCH_VERSION})

# Find
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}")
FIND_PACKAGE(ParaView QUIET)
FIND_PACKAGE(OpenSG COMPONENTS OSGBase OSGSystem REQUIRED)
IF(ParaView_FOUND)
  INCLUDE(${PARAVIEW_USE_FILE})
  OPTION(INSTALL_IN_PARAVIEW "This will install the plugin in ParaView." OFF)
  IF(ParaView_VERSION VERSION_GREATER 3.14.1)
    ADD_DEFINITIONS(-DNEW_VTK)
  ENDIF()
ELSE()
  FIND_PACKAGE(VTK)
  IF(OGS_BUILD_GUI AND (VTK_VERSION_MAJOR LESS 5 OR VTK_VERSION_MINOR LESS 8))
    MESSAGE(FATAL_ERROR "VTK not found but is required! Minimum version: VTK 5.8.x")
  ENDIF()<commit_msg>ParaView should only be searched for when building standalone.<commit_after>CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
PROJECT(VtkOsgConverter)
SET(VTKOSGCONVERTER_MAJOR_VERSION 1)
SET(VTKOSGCONVERTER_MINOR_VERSION 1)
SET(VTKOSGCONVERTER_PATCH_VERSION 0)
SET(VTKOSGCONVERTER_VERSION
  ${VTKOSGCONVERTER_MAJOR_VERSION}.${VTKOSGCONVERTER_MINOR_VERSION}.${VTKOSGCONVERTER_PATCH_VERSION})

# Find
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
IF(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
  FIND_PACKAGE(ParaView QUIET)
ENDIF()
FIND_PACKAGE(OpenSG COMPONENTS OSGBase OSGSystem REQUIRED)
IF(ParaView_FOUND)
  INCLUDE(${PARAVIEW_USE_FILE})
  OPTION(INSTALL_IN_PARAVIEW "This will install the plugin in ParaView." OFF)
  IF(ParaView_VERSION VERSION_GREATER 3.14.1)
    ADD_DEFINITIONS(-DNEW_VTK)
  ENDIF()
ELSE()
  FIND_PACKAGE(VTK)
  IF(OGS_BUILD_GUI AND (VTK_VERSION_MAJOR LESS 5 OR VTK_VERSION_MINOR LESS 8))
    MESSAGE(FATAL_ERROR "VTK not found but is required! Minimum version: VTK 5.8.x")
  ENDIF()
{'fraction_non_alphanumeric': 0.08493008803728638, 'fraction_numerical': 0.013464526152252718, 'mean_word_length': 8.37864077669903, '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': '2522749', 'n_tokens_mistral': 845, 'n_tokens_neox': 787, 'n_words': 133}