<commit_before>PROJECT(ITK)
INCLUDE_REGULAR_EXPRESSION("^(itk|vtk|vnl|vcl|f2c).*$")
SOURCE_GROUP("XML Files" "\.xml$")

SUBDIRS(Utilities Code Testing Examples)

INCLUDE_DIRECTORIES(
${ITK_BINARY_DIR} 
${ITK_SOURCE_DIR}/Code/Numerics
${ITK_SOURCE_DIR}/Code/Common 
${ITK_BINARY_DIR}/Code/Numerics/vxl 
${ITK_SOURCE_DIR}/Code/Numerics/vxl 
${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl 
${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl 
)

IF(UNIX)
  LINK_LIBRARIES(${CMAKE_THREAD_LIBS} ${CMAKE_DL_LIBS})
ENDIF(UNIX)

LINK_DIRECTORIES(
${ITK_BINARY_DIR}/Code/Common 
${ITK_BINARY_DIR}/Code/Numerics/vxl )


# look for the make program
IF(NOT UNIX) 
  FIND_PROGRAM(MAKEPROGRAM msdev )
ENDIF(NOT UNIX)
FIND_PROGRAM(MAKEPROGRAM gmake )
FIND_PROGRAM(MAKEPROGRAM make )

FIND_PROGRAM(CVSCOMMAND cvs )

FIND_PROGRAM(GREPCOMMAND grep )

FIND_PROGRAM(COMPRESSIONCOMMAND gzip)
FIND_PROGRAM(COMPRESSIONCOMMAND compress)
FIND_PROGRAM(COMPRESSIONCOMMAND zip )

FIND_PROGRAM(GUNZIPCOMMAND gunzip )
IF (UNIX)
  FIND_PROGRAM(TCLSHCOMMAND cygtclsh80 )
ENDIF(UNIX)
FIND_PROGRAM(JAVACOMMAND java )
FIND_PROGRAM(TCLSHCOMMAND tclsh )
FIND_PROGRAM(TCLSHCOMMAND tclsh83)
FIND_PROGRAM(TCLSHCOMMAND tclsh8.3)
FIND_PROGRAM(TCLSHCOMMAND tclsh82)
FIND_PROGRAM(TCLSHCOMMAND tclsh8.2)
FIND_PROGRAM(TCLSHCOMMAND tclsh80 )
FIND_PROGRAM(TCLSHCOMMAND tclsh8.0 )
FIND_PROGRAM(HOSTNAME hostname /usr/bsd /usr/sbin /usr/bin /bin /sbin)
FIND_PROGRAM(NSLOOKUP nslookup /usr/bin /usr/sbin /usr/local/bin)

# set the site name
SITE_NAME(SITE)
# set the build name
BUILD_NAME(BUILDNAME)
# set the build command
BUILD_COMMAND(MAKECOMMAND ${MAKEPROGRAM} )


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/itkConfigure.h.in 
${ITK_BINARY_DIR}/itkConfigure.h)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Code/doxygen.config.in
${ITK_BINARY_DIR}/Code/doxygen.config)

MAKE_DIRECTORY(${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl)
MAKE_DIRECTORY(${ITK_BINARY_DIR}/Testing/HTML/TestingResults/Sites/${SITE}/${BUILDNAME})

IF(RUN_CONFIGURE)
  EXEC_PROGRAM(${ITK_SOURCE_DIR}/Code/Numerics/vxl/configure 
               ${ITK_BINARY_DIR}/Code/Numerics/vxl)
  EXEC_PROGRAM(${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/configure 
               ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl)
ELSE(RUN_CONFIGURE)
  CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vxl_config.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vxl_config.h)
  CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_compiler.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_compiler.h)
  CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_headers.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_headers.h)
  CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_manual.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_manual.h)
ENDIF(RUN_CONFIGURE)


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Utility.conf.in
${ITK_BINARY_DIR}/Testing/Utilities/Utility.conf )

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Build.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Build.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Utility.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Utility.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/DashboardManager.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/DashboardManager.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Test.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Test.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Submit.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Submit.tcl COPYONLY)


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Doxygen.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Doxygen.tcl COPYONLY)


ADD_CUSTOM_TARGET(Nightly 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Start Build Test Submit")
ADD_CUSTOM_TARGET(NightlyBuild 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Start Build")
ADD_CUSTOM_TARGET(NightlyTest 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Test")
ADD_CUSTOM_TARGET(NightlyCoverage 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Coverage")
ADD_CUSTOM_TARGET(NightlySubmit 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Submit")
ADD_CUSTOM_TARGET(NightlyDashboardStart 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly DashboardStart")
ADD_CUSTOM_TARGET(NightlyDashboardEnd 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly DashboardEnd")
ADD_CUSTOM_TARGET(ExperimentalBuild 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Start Build")
ADD_CUSTOM_TARGET(ExperimentalTest 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Test")
ADD_CUSTOM_TARGET(ExperimentalCoverage 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Coverage")
ADD_CUSTOM_TARGET(ExperimentalSubmit 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Submit")
ADD_CUSTOM_TARGET(Experimental 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Start Build Test Submit")


# Find the CABLE utility.
UTILITY_SOURCE(CABLE cable Utilities/Cable/Executables)
FIND_PROGRAM(CABLE cable)

<commit_msg>BUG: don't use vc config files for vxl on unix...<commit_after>PROJECT(ITK)
INCLUDE_REGULAR_EXPRESSION("^(itk|vtk|vnl|vcl|f2c).*$")
SOURCE_GROUP("XML Files" "\.xml$")

SUBDIRS(Utilities Code Testing Examples)

INCLUDE_DIRECTORIES(
${ITK_BINARY_DIR} 
${ITK_SOURCE_DIR}/Code/Numerics
${ITK_SOURCE_DIR}/Code/Common 
${ITK_BINARY_DIR}/Code/Numerics/vxl 
${ITK_SOURCE_DIR}/Code/Numerics/vxl 
${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl 
${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl 
)

IF(UNIX)
  LINK_LIBRARIES(${CMAKE_THREAD_LIBS} ${CMAKE_DL_LIBS})
ENDIF(UNIX)

LINK_DIRECTORIES(
${ITK_BINARY_DIR}/Code/Common 
${ITK_BINARY_DIR}/Code/Numerics/vxl )


# look for the make program
IF(NOT UNIX) 
  FIND_PROGRAM(MAKEPROGRAM msdev )
ENDIF(NOT UNIX)
FIND_PROGRAM(MAKEPROGRAM gmake )
FIND_PROGRAM(MAKEPROGRAM make )

FIND_PROGRAM(CVSCOMMAND cvs )

FIND_PROGRAM(GREPCOMMAND grep )

FIND_PROGRAM(COMPRESSIONCOMMAND gzip)
FIND_PROGRAM(COMPRESSIONCOMMAND compress)
FIND_PROGRAM(COMPRESSIONCOMMAND zip )

FIND_PROGRAM(GUNZIPCOMMAND gunzip )
IF (UNIX)
  FIND_PROGRAM(TCLSHCOMMAND cygtclsh80 )
ENDIF(UNIX)
FIND_PROGRAM(JAVACOMMAND java )
FIND_PROGRAM(TCLSHCOMMAND tclsh )
FIND_PROGRAM(TCLSHCOMMAND tclsh83)
FIND_PROGRAM(TCLSHCOMMAND tclsh8.3)
FIND_PROGRAM(TCLSHCOMMAND tclsh82)
FIND_PROGRAM(TCLSHCOMMAND tclsh8.2)
FIND_PROGRAM(TCLSHCOMMAND tclsh80 )
FIND_PROGRAM(TCLSHCOMMAND tclsh8.0 )
FIND_PROGRAM(HOSTNAME hostname /usr/bsd /usr/sbin /usr/bin /bin /sbin)
FIND_PROGRAM(NSLOOKUP nslookup /usr/bin /usr/sbin /usr/local/bin)

# set the site name
SITE_NAME(SITE)
# set the build name
BUILD_NAME(BUILDNAME)
# set the build command
BUILD_COMMAND(MAKECOMMAND ${MAKEPROGRAM} )


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/itkConfigure.h.in 
${ITK_BINARY_DIR}/itkConfigure.h)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Code/doxygen.config.in
${ITK_BINARY_DIR}/Code/doxygen.config)

MAKE_DIRECTORY(${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl)
MAKE_DIRECTORY(${ITK_BINARY_DIR}/Testing/HTML/TestingResults/Sites/${SITE}/${BUILDNAME})

IF(RUN_CONFIGURE)
  EXEC_PROGRAM(${ITK_SOURCE_DIR}/Code/Numerics/vxl/configure 
               ${ITK_BINARY_DIR}/Code/Numerics/vxl)
  EXEC_PROGRAM(${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/configure 
               ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl)
ENDIF(RUN_CONFIGURE)

IF(NOT UNIX)
  IF(WIN32)
    CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vxl_config.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vxl_config.h)
    CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_compiler.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_compiler.h)
    CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_headers.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_headers.h)
    CONFIGURE_FILE_NOAUTOCONF(
        ${ITK_SOURCE_DIR}/Code/Numerics/vxl/vcl/config.win32-vc60/vcl_config_manual.h
        ${ITK_BINARY_DIR}/Code/Numerics/vxl/vcl/vcl_config_manual.h)
  ENDIF(WIN32)
ENDIF(NOT UNIX)


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Utility.conf.in
${ITK_BINARY_DIR}/Testing/Utilities/Utility.conf )

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Build.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Build.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Utility.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Utility.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/DashboardManager.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/DashboardManager.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Test.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Test.tcl COPYONLY)

CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Submit.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Submit.tcl COPYONLY)


CONFIGURE_FILE(
${ITK_SOURCE_DIR}/Testing/Utilities/Doxygen.tcl.in
${ITK_BINARY_DIR}/Testing/Utilities/Doxygen.tcl COPYONLY)


ADD_CUSTOM_TARGET(Nightly 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Start Build Test Submit")
ADD_CUSTOM_TARGET(NightlyBuild 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Start Build")
ADD_CUSTOM_TARGET(NightlyTest 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Test")
ADD_CUSTOM_TARGET(NightlyCoverage 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Coverage")
ADD_CUSTOM_TARGET(NightlySubmit 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly Submit")
ADD_CUSTOM_TARGET(NightlyDashboardStart 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly DashboardStart")
ADD_CUSTOM_TARGET(NightlyDashboardEnd 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Nightly DashboardEnd")
ADD_CUSTOM_TARGET(ExperimentalBuild 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Start Build")
ADD_CUSTOM_TARGET(ExperimentalTest 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Test")
ADD_CUSTOM_TARGET(ExperimentalCoverage 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Coverage")
ADD_CUSTOM_TARGET(ExperimentalSubmit 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Submit")
ADD_CUSTOM_TARGET(Experimental 
"${TCLSHCOMMAND} Testing/Utilities/DashboardManager.tcl Experimental Start Build Test Submit")


# Find the CABLE utility.
UTILITY_SOURCE(CABLE cable Utilities/Cable/Executables)
FIND_PROGRAM(CABLE cable)


{'fraction_non_alphanumeric': 0.11350748349911685, 'fraction_numerical': 0.0061355396486009114, 'mean_word_length': 6.96299037749815, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '293485', 'n_tokens_mistral': 4431, 'n_tokens_neox': 4364, 'n_words': 476}