<commit_before># Create a setup.py file.
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/setup.py.in 
               ${VTK_BINARY_DIR}/Wrapping/Python/setup.py)

# create the VTK/Python  executable
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h.in
               ${VTK_BINARY_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h)
ADD_EXECUTABLE(vtkpython vtkPythonAppInit.cxx)

# Link against all the kit wrappers.
IF (APPLE)
  SET_TARGET_PROPERTIES(vtkpython PROPERTIES LINK_FLAGS "-flat_namespace -undefined suppress")
  OPTION(VTK_HAVE_FRAMEWORK_PYTHON "The system has Python installed by default (Mac OSX 10.2)" OFF)
  IF (VTK_HAVE_FRAMEWORK_PYTHON)
    TARGET_LINK_LIBRARIES (vtkpython "-framework Python")
  ELSE (VTK_HAVE_FRAMEWORK_PYTHON)
    TARGET_LINK_LIBRARIES (vtkpython ${PYTHON_LIBRARY})
  ENDIF (VTK_HAVE_FRAMEWORK_PYTHON)
ELSE (APPLE)
  TARGET_LINK_LIBRARIES (vtkpython
    vtkCommonPython
    vtkFilteringPython
    vtkIOPython
    vtkGraphicsPython
    vtkImagingPython
  )

  IF (VTK_USE_RENDERING)
    TARGET_LINK_LIBRARIES(vtkpython vtkRenderingPython)
  ENDIF (VTK_USE_RENDERING)

  IF (VTK_USE_PATENTED)
    TARGET_LINK_LIBRARIES(vtkpython vtkPatentedPython)
  ENDIF (VTK_USE_PATENTED)

  IF (VTK_USE_HYBRID)
    TARGET_LINK_LIBRARIES(vtkpython vtkHybridPython)
  ENDIF (VTK_USE_HYBRID)

  IF (VTK_USE_PARALLEL)
    TARGET_LINK_LIBRARIES(vtkpython vtkParallelPython)
  ENDIF (VTK_USE_PARALLEL)
ENDIF (APPLE)

# Create the pvtkpython Python wrapper executable with MPI support.
IF (VTK_USE_PARALLEL)
  IF (VTK_USE_MPI)
    ADD_EXECUTABLE(pvtkpython vtkParaPythonAppInit.cxx)

    TARGET_LINK_LIBRARIES (pvtkpython
      vtkCommonPython
      vtkFilteringPython
      vtkIOPython
      vtkGraphicsPython
      vtkImagingPython
      vtkParallelPython
    )

    IF (VTK_USE_PATENTED)
      TARGET_LINK_LIBRARIES(pvtkpython vtkPatentedPython)
    ENDIF (VTK_USE_PATENTED)
    IF (VTK_USE_HYBRID)
      TARGET_LINK_LIBRARIES(pvtkpython vtkHybridPython)
    ENDIF (VTK_USE_HYBRID)

    INSTALL_TARGETS(/bin pvtkpython)
  ENDIF (VTK_USE_MPI)
ENDIF (VTK_USE_PARALLEL)

FIND_LIBRARY(UTIL_LIBRARY
  NAMES util
  PATHS /usr/lib<commit_msg>No need for vtkpython to actually link vtk*Python. It only needs python library<commit_after># Create a setup.py file.
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/setup.py.in 
               ${VTK_BINARY_DIR}/Wrapping/Python/setup.py)

# create the VTK/Python  executable
CONFIGURE_FILE(${VTK_SOURCE_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h.in
               ${VTK_BINARY_DIR}/Wrapping/Python/vtkPythonAppInitConfigure.h)
ADD_EXECUTABLE(vtkpython vtkPythonAppInit.cxx)

# Link against all the kit wrappers.
IF (APPLE)
  SET_TARGET_PROPERTIES(vtkpython PROPERTIES LINK_FLAGS "-flat_namespace -undefined suppress")
  OPTION(VTK_HAVE_FRAMEWORK_PYTHON "The system has Python installed by default (Mac OSX 10.2)" OFF)
  IF (VTK_HAVE_FRAMEWORK_PYTHON)
    TARGET_LINK_LIBRARIES (vtkpython "-framework Python")
  ELSE (VTK_HAVE_FRAMEWORK_PYTHON)
    TARGET_LINK_LIBRARIES (vtkpython ${PYTHON_LIBRARY})
  ENDIF (VTK_HAVE_FRAMEWORK_PYTHON)
ELSE (APPLE)
  TARGET_LINK_LIBRARIES (vtkpython
    ${PYTHON_LIBRARY}
    vtkCommon
    vtkFiltering
    vtkIO
    vtkGraphics
    vtkImaging
  )

  IF (VTK_USE_RENDERING)
    TARGET_LINK_LIBRARIES(vtkpython vtkRendering)
  ENDIF (VTK_USE_RENDERING)

  IF (VTK_USE_PATENTED)
    TARGET_LINK_LIBRARIES(vtkpython vtkPatented)
  ENDIF (VTK_USE_PATENTED)

  IF (VTK_USE_HYBRID)
    TARGET_LINK_LIBRARIES(vtkpython vtkHybrid)
  ENDIF (VTK_USE_HYBRID)

  IF (VTK_USE_PARALLEL)
    TARGET_LINK_LIBRARIES(vtkpython vtkParallel)
  ENDIF (VTK_USE_PARALLEL)
ENDIF (APPLE)

# Create the pvtkpython Python wrapper executable with MPI support.
IF (VTK_USE_PARALLEL)
  IF (VTK_USE_MPI)
    ADD_EXECUTABLE(pvtkpython vtkParaPythonAppInit.cxx)

    TARGET_LINK_LIBRARIES (pvtkpython
      vtkCommon
      vtkFiltering
      vtkIO
      vtkGraphics
      vtkImaging
      vtkParallel
    )

    IF (VTK_USE_PATENTED)
      TARGET_LINK_LIBRARIES(pvtkpython vtkPatented)
    ENDIF (VTK_USE_PATENTED)
    IF (VTK_USE_HYBRID)
      TARGET_LINK_LIBRARIES(pvtkpython vtkHybrid)
    ENDIF (VTK_USE_HYBRID)

    INSTALL_TARGETS(/bin pvtkpython)
  ENDIF (VTK_USE_MPI)
ENDIF (VTK_USE_PARALLEL)

FIND_LIBRARY(UTIL_LIBRARY
  NAMES util
  PATHS /usr/lib
{'fraction_non_alphanumeric': 0.0660377358490566, 'fraction_numerical': 0.0013805798435342844, 'mean_word_length': 4.638132295719845, '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': '6587713', 'n_tokens_mistral': 1839, 'n_tokens_neox': 1701, 'n_words': 282}