<commit_before>if(VigraAddDepIncluded)
    return()
endif()

# Store the path to this file as a cached, hidden variable.
set(VigraAddDepPath "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")

get_property(_VigraAddDepIncludedOnce GLOBAL PROPERTY VigraAddDepIncludedOnce)
if(NOT _VigraAddDepIncludedOnce)
  # On first inclusion, we erase the global cache variable representing the list of
  # directories containing the libraries added via add_library().
  set(_VAD_LIBRARY_DIR_LIST "" CACHE INTERNAL "")
  function(VAD_CREATE_ACTIVATE)
    if(WIN32)
      set(VAD_LIBRARY_DIR_LIST "${_VAD_LIBRARY_DIR_LIST}")
      configure_file("${VigraAddDepPath}/vad_activate.bat.in" "${CMAKE_BINARY_DIR}/.vad/vad_activate.bat.generate" @ONLY)
      configure_file("${VigraAddDepPath}/vad_path.in" "${CMAKE_BINARY_DIR}/.vad/vad_path.generate" @ONLY)
    endif()
  endfunction()
  variable_watch(_VAD_LIBRARY_DIR_LIST VAD_CREATE_ACTIVATE)
  set_property(GLOBAL PROPERTY VigraAddDepIncludedOnce TRUE)
  if(WIN32)
    #file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/vad_activate_$<CONFIG>.bat" INPUT "${CMAKE_CURRENT_BINARY_DIR}/.vad/vad_activate.bat.generate")
    #file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/vad_deactivate.bat" INPUT "${VigraAddDepPath}/vad_deactivate.bat.in")
    #file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/.vad/vad_path_$<CONFIG>" INPUT "${CMAKE_CURRENT_BINARY_DIR}/.vad/vad_path.generate")
  endif()
endif()

include(CMakeParseArguments)
include(VAD_target_properties)

#hardcoded package name aliases (TODO put in extra file? (and allow user to provide extra overrides))
set(_VAD_Eigen_ALIAS Eigen3)

if(VAD_EXTERNAL_ROOT)
  message(STATUS "The root of external dependencies has been specified by the user: ${VAD_EXTERNAL_ROOT}")
else()
  set(VAD_EXTERNAL_ROOT ${PROJECT_SOURCE_DIR}/external)
  message(STATUS "The root of external dependencies has not been been specified by the user, setting it to the default: ${VAD_EXTERNAL_ROOT}")<commit_msg>reenable active scripts<commit_after>if(VigraAddDepIncluded)
    return()
endif()

# Store the path to this file as a cached, hidden variable.
set(VigraAddDepPath "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "")

get_property(_VigraAddDepIncludedOnce GLOBAL PROPERTY VigraAddDepIncludedOnce)
if(NOT _VigraAddDepIncludedOnce)
  # On first inclusion, we erase the global cache variable representing the list of
  # directories containing the libraries added via add_library().
  set(_VAD_LIBRARY_DIR_LIST "" CACHE INTERNAL "")
  function(VAD_CREATE_ACTIVATE)
    if(WIN32)
      set(VAD_LIBRARY_DIR_LIST "${_VAD_LIBRARY_DIR_LIST}")
      configure_file("${VigraAddDepPath}/vad_activate.bat.in" "${CMAKE_BINARY_DIR}/.vad/vad_activate.bat.generate" @ONLY)
      configure_file("${VigraAddDepPath}/vad_path.in" "${CMAKE_BINARY_DIR}/.vad/vad_path.generate" @ONLY)
    endif()
  endfunction()
  variable_watch(_VAD_LIBRARY_DIR_LIST VAD_CREATE_ACTIVATE)
  set_property(GLOBAL PROPERTY VigraAddDepIncludedOnce TRUE)
  if(WIN32)
    file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/vad_activate_$<CONFIG>.bat" INPUT "${CMAKE_CURRENT_BINARY_DIR}/.vad/vad_activate.bat.generate")
    file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/vad_deactivate.bat" INPUT "${VigraAddDepPath}/vad_deactivate.bat.in")
    file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/.vad/vad_path_$<CONFIG>" INPUT "${CMAKE_CURRENT_BINARY_DIR}/.vad/vad_path.generate")
  endif()
endif()

include(CMakeParseArguments)
include(VAD_target_properties)

#hardcoded package name aliases (TODO put in extra file? (and allow user to provide extra overrides))
set(_VAD_Eigen_ALIAS Eigen3)

if(VAD_EXTERNAL_ROOT)
  message(STATUS "The root of external dependencies has been specified by the user: ${VAD_EXTERNAL_ROOT}")
else()
  set(VAD_EXTERNAL_ROOT ${PROJECT_SOURCE_DIR}/external)
  message(STATUS "The root of external dependencies has not been been specified by the user, setting it to the default: ${VAD_EXTERNAL_ROOT}")
{'fraction_non_alphanumeric': 0.10443931229150628, 'fraction_numerical': 0.0025660764690787785, 'mean_word_length': 6.68836291913215, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '1499475', 'n_tokens_mistral': 1391, 'n_tokens_neox': 1360, 'n_words': 281}