<commit_before># If any utility projects have their own testing targets,
# tell Dart.cmake to generate the Experimental test target with the
# project name.  This avoids the conflict in msdev between the
# Experimental testing targets for main ITK and nested projects.
set(DART_EXPERIMENTAL_USE_PROJECT_NAME 1)

# Create a header to hold the options for use of third party
# utilities.
configure_file(${ITK_SOURCE_DIR}/Utilities/itkThirdParty.h.in
               ${ITK_BINARY_DIR}/Utilities/itkThirdParty.h @ONLY IMMEDIATE)

#-----------------------------------------------------------------------------
# Create the kwsys library for ITK.
set(KWSYS_NAMESPACE itksys)
set(KWSYS_USE_SystemTools 1)
set(KWSYS_USE_RegularExpression 1)
set(KWSYS_USE_Directory 1)
set(KWSYS_USE_Base64 1)
set(KWSYS_USE_FundamentalType 1)
set(KWSYS_USE_CommandLineArguments 1)
set(KWSYS_USE_Process 1)
set(KWSYS_USE_DynamicLoader 1)
set(KWSYS_USE_Glob 1)
set(KWSYS_USE_Registry 1)
set(KWSYS_USE_SystemInformation 1)
set(KWSYS_HEADER_ROOT ${ITK_BINARY_DIR}/Utilities)
set(KWSYS_PROPERTIES_CXX ${ITK_LIBRARY_PROPERTIES})
set(KWSYS_LIBRARY_INSTALL_DIR)
if(NOT ITK_INSTALL_NO_LIBRARIES)
  set(KWSYS_LIBRARY_INSTALL_DIR ${ITK_INSTALL_LIB_DIR})
endif(NOT ITK_INSTALL_NO_LIBRARIES)
set(KWSYS_HEADER_INSTALL_DIR)
if(NOT ITK_INSTALL_NO_DEVELOPMENT)
  set(KWSYS_HEADER_INSTALL_DIR ${ITK_INSTALL_INCLUDE_DIR}/Utilities)
endif(NOT ITK_INSTALL_NO_DEVELOPMENT)
set(KWSYS_INSTALL_COMPONENT_NAME_RUNTIME RuntimeLibraries)
set(KWSYS_INSTALL_COMPONENT_NAME_DEVELOPMENT Development)
add_subdirectory(kwsys)

#------------------------------------------------------------------------------
# Build third-party utilities.


ITK_THIRD_PARTY_SUBDIR(ZLIB itkzlib)
ITK_THIRD_PARTY_SUBDIR(PNG  itkpng)
# Build jpeg first because tiff needs it
ITK_THIRD_PARTY_SUBDIR(JPEG itkjpeg)
ITK_THIRD_PARTY_SUBDIR(TIFF itktiff)
set(OPJ_PREFIX "itk")
ITK_THIRD_PARTY_SUBDIR(OpenJPEG openjpeg)

# GDCM needs expat
add_subdirectory(expat)

set(GDCM_TARGETS_NAME ITKTargets)
set(GDCM_BUILD_TESTING_DEFAULT OFF)
set(GDCM_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} CACHE BOOL "" FORCE)
set(GDCM_USE_SYSTEM_EXPAT ON CACHE BOOL "" FORCE)
# ITKEXPAT can not be a system one:
set(EXPAT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/expat" CACHE PATH "" FORCE)
set(EXPAT_LIBRARY ITKEXPAT CACHE FILEPATH "" FORCE)
# ITKOpenJPEG can not be a system one:
set(GDCM_USE_SYSTEM_OPENJPEG ON CACHE BOOL "" FORCE)
set(OPENJPEG_MAJOR_VERSION 2)
# FIXME: Simply fill in values from ITK
set(OPENJPEG_LIBRARY itkopenjpeg CACHE FILEPATH "" FORCE)<commit_msg>Fix compilation error on continuous<commit_after># If any utility projects have their own testing targets,
# tell Dart.cmake to generate the Experimental test target with the
# project name.  This avoids the conflict in msdev between the
# Experimental testing targets for main ITK and nested projects.
set(DART_EXPERIMENTAL_USE_PROJECT_NAME 1)

# Create a header to hold the options for use of third party
# utilities.
configure_file(${ITK_SOURCE_DIR}/Utilities/itkThirdParty.h.in
               ${ITK_BINARY_DIR}/Utilities/itkThirdParty.h @ONLY IMMEDIATE)

#-----------------------------------------------------------------------------
# Create the kwsys library for ITK.
set(KWSYS_NAMESPACE itksys)
set(KWSYS_USE_SystemTools 1)
set(KWSYS_USE_RegularExpression 1)
set(KWSYS_USE_Directory 1)
set(KWSYS_USE_Base64 1)
set(KWSYS_USE_FundamentalType 1)
set(KWSYS_USE_CommandLineArguments 1)
set(KWSYS_USE_Process 1)
set(KWSYS_USE_DynamicLoader 1)
set(KWSYS_USE_Glob 1)
set(KWSYS_USE_Registry 1)
set(KWSYS_USE_SystemInformation 1)
set(KWSYS_HEADER_ROOT ${ITK_BINARY_DIR}/Utilities)
set(KWSYS_PROPERTIES_CXX ${ITK_LIBRARY_PROPERTIES})
set(KWSYS_LIBRARY_INSTALL_DIR)
if(NOT ITK_INSTALL_NO_LIBRARIES)
  set(KWSYS_LIBRARY_INSTALL_DIR ${ITK_INSTALL_LIB_DIR})
endif(NOT ITK_INSTALL_NO_LIBRARIES)
set(KWSYS_HEADER_INSTALL_DIR)
if(NOT ITK_INSTALL_NO_DEVELOPMENT)
  set(KWSYS_HEADER_INSTALL_DIR ${ITK_INSTALL_INCLUDE_DIR}/Utilities)
endif(NOT ITK_INSTALL_NO_DEVELOPMENT)
set(KWSYS_INSTALL_COMPONENT_NAME_RUNTIME RuntimeLibraries)
set(KWSYS_INSTALL_COMPONENT_NAME_DEVELOPMENT Development)
add_subdirectory(kwsys)

#------------------------------------------------------------------------------
# Build third-party utilities.


ITK_THIRD_PARTY_SUBDIR(ZLIB itkzlib)
ITK_THIRD_PARTY_SUBDIR(PNG  itkpng)
# Build jpeg first because tiff needs it
ITK_THIRD_PARTY_SUBDIR(JPEG itkjpeg)
ITK_THIRD_PARTY_SUBDIR(TIFF itktiff)
set(OPJ_PREFIX "itk")
ITK_THIRD_PARTY_SUBDIR(OpenJPEG openjpeg)

# GDCM needs expat
add_subdirectory(expat)

set(GDCM_TARGETS_NAME ITKTargets)
set(GDCM_BUILD_TESTING_DEFAULT OFF)
set(GDCM_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS} CACHE BOOL "" FORCE)
set(GDCM_USE_SYSTEM_EXPAT ON CACHE BOOL "" FORCE)
# ITKEXPAT can not be a system one:
set(EXPAT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/expat" CACHE PATH "" FORCE)
set(EXPAT_LIBRARY ITKEXPAT CACHE FILEPATH "" FORCE)
# ITKOpenJPEG can not be a system one:
set(GDCM_USE_SYSTEM_OPENJPEG ON CACHE BOOL "" FORCE)
set(OPENJPEG_MAJOR_VERSION 2)
# FIXME: Simply fill in values from ITK
set(OPENJPEG_LIBRARY itkopenjpeg CACHE FILEPATH "" FORCE)
SET(OPENJPEG_LIBRARIES ${OPENJPEG_LIBRARY})
{'fraction_non_alphanumeric': 0.12461479198767335, 'fraction_numerical': 0.005778120184899846, 'mean_word_length': 5.234093637454982, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4086192', 'n_tokens_mistral': 2027, 'n_tokens_neox': 1901, 'n_words': 393}