<commit_before>
# Fetch the VMTK Package
#-----------------------------------------------------------------------------

# Sanity checks
if(DEFINED VMTK_DIR AND NOT EXISTS ${VMTK_DIR})
  message(FATAL_ERROR "VMTK_DIR variable is defined but corresponds to non-existing directory")
endif()

set(proj VMTK)

# re-define git protocol if necessary
if(NOT DEFINED git_protocol)
  set( git_protocol "git")
endif()

if(NOT DEFINED VMTK_DIR)
  message(STATUS "Adding external project: ${proj}")
  ExternalProject_Add(${proj}
    GIT_REPOSITORY "${git_protocol}://github.com/haehn/vmtk.git"
    GIT_TAG "origin/master"
    SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}
    BINARY_DIR ${proj}-build
    CMAKE_GENERATOR ${gen}
    CMAKE_ARGS
      ${ep_common_args}
      -DCMAKE_BUILD_TYPE:STRING=${build_type}
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=${CMAKE_CURRENT_BINARY_DIR}/SlicerVmtk4-build/${Slicer_QTLOADABLEMODULES_LIB_DIR}<commit_msg>Change VMTK repository back to upstream master.<commit_after># Fetch the VMTK Package
#-----------------------------------------------------------------------------

# Sanity checks
if(DEFINED VMTK_DIR AND NOT EXISTS ${VMTK_DIR})
  message(FATAL_ERROR "VMTK_DIR variable is defined but corresponds to non-existing directory")
endif()

set(proj VMTK)

# re-define git protocol if necessary
if(NOT DEFINED git_protocol)
  set( git_protocol "git")
endif()

if(NOT DEFINED VMTK_DIR)
  message(STATUS "Adding external project: ${proj}")
  ExternalProject_Add(${proj}
    GIT_REPOSITORY "${git_protocol}://github.com/lantiga/vmtk.git"
    GIT_TAG "origin/master"
    SOURCE_DIR ${CMAKE_CURRENT_BINARY_DIR}/${proj}
    BINARY_DIR ${proj}-build
    CMAKE_GENERATOR ${gen}
    CMAKE_ARGS
      ${ep_common_args}
      -DCMAKE_BUILD_TYPE:STRING=${build_type}
      -DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=${CMAKE_CURRENT_BINARY_DIR}/SlicerVmtk4-build/${Slicer_QTLOADABLEMODULES_LIB_DIR}
{'fraction_non_alphanumeric': 0.17929952953476216, 'fraction_numerical': 0.0010454783063251437, 'mean_word_length': 3.4615384615384617, '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': '7037349', 'n_tokens_mistral': 677, 'n_tokens_neox': 644, 'n_words': 127}