<commit_before>###############################################################################
# find swig
#find_package(SWIG REQUIRED)
#include(${SWIG_USE_FILE})

###############################################################################
# Build swig

option(ITK_USE_SYSTEM_SWIG "Use system swig. If OFF, swig is built as an external project." OFF)

# Require at least SWIG 3.0.0
if(ITK_USE_SYSTEM_SWIG)
  if(${SWIG_VERSION} VERSION_LESS 3.0.0)
    message(WARNING "Swig version less than 3.0.0: \"${SWIG_VERSION}\".")
  endif()
endif()

set(swig_version 3.0.0)
set(swig_md5     9c8278fad527dda4bf38edffe5acc394)
set(swigwin_md5  c1d85fee2421d4edac552923fc4e5bde)

if(WIN32)
  set(swig_ep "${CMAKE_CURRENT_BINARY_DIR}/swigwin-${swig_version}/swig.exe")
else()
    # follow the standard EP_PREFIX locations
    set ( swig_binary_dir ${CMAKE_CURRENT_BINARY_DIR}/swig-prefix/src/swig-build )
    set ( swig_source_dir ${CMAKE_CURRENT_BINARY_DIR}/swig-prefix/src/swig )
    set ( swig_install_dir ${CMAKE_CURRENT_BINARY_DIR}/swig )
<commit_msg>ENH: Update to swig 3.0.2<commit_after>###############################################################################
# find swig
#find_package(SWIG REQUIRED)
#include(${SWIG_USE_FILE})

###############################################################################
# Build swig

option(ITK_USE_SYSTEM_SWIG "Use system swig. If OFF, swig is built as an external project." OFF)

# Require at least SWIG 3.0.0
if(ITK_USE_SYSTEM_SWIG)
  if(${SWIG_VERSION} VERSION_LESS 3.0.0)
    message(WARNING "Swig version less than 3.0.0: \"${SWIG_VERSION}\".")
  endif()
endif()

set(swig_version 3.0.2)
set(swig_md5     62f9b0d010cef36a13a010dc530d0d41)
set(swigwin_md5  3f18de4fc09ab9abb0d3be37c11fbc8f)

if(WIN32)
  set(swig_ep "${CMAKE_CURRENT_BINARY_DIR}/swigwin-${swig_version}/swig.exe")
else()
    # follow the standard EP_PREFIX locations
    set ( swig_binary_dir ${CMAKE_CURRENT_BINARY_DIR}/swig-prefix/src/swig-build )
    set ( swig_source_dir ${CMAKE_CURRENT_BINARY_DIR}/swig-prefix/src/swig )
    set ( swig_install_dir ${CMAKE_CURRENT_BINARY_DIR}/swig )

{'fraction_non_alphanumeric': 0.2504752851711027, 'fraction_numerical': 0.04752851711026616, 'mean_word_length': 6.438162544169611, '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': '4843', 'n_tokens_mistral': 843, 'n_tokens_neox': 781, 'n_words': 132}