<commit_before># prevent multiple inclusion
if(DEFINED _CATKIN_ALL_INCLUDED_)
  message(FATAL_ERROR "catkin/cmake/all.cmake included multiple times")
endif()
set(_CATKIN_ALL_INCLUDED_ TRUE)

if(NOT DEFINED catkin_EXTRAS_DIR)
  message(FATAL_ERROR "catkin_EXTRAS_DIR is not set")
endif()

# define buildspace
set(CATKIN_BUILD_PREFIX "${CMAKE_BINARY_DIR}/buildspace")

# create workspace marker
set(_sourcespaces "${CMAKE_SOURCE_DIR}")
if(EXISTS "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE")
  # prepend to existing list of sourcespaces
  file(READ "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE" _existing_sourcespaces)
  list(FIND _existing_sourcespaces "${CMAKE_SOURCE_DIR}" _index)
  if(_index EQUAL -1)
    list(INSERT _existing_sourcespaces 0 ${CMAKE_SOURCE_DIR})
  endif()
  set(_sourcespaces ${_existing_sourcespaces})
endif()
file(WRITE "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE" "${_sourcespaces}")


# use either CMAKE_PREFIX_PATH explicitly passed to CMake as a command line argument
# or CMAKE_PREFIX_PATH from the environment
if(NOT DEFINED CMAKE_PREFIX_PATH)
  if(NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
    string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
  endif()
endif()
if(CMAKE_PREFIX_PATH)
  # skip buildspace if it is in CMAKE_PREFIX_PATH so that it is not part of CATKIN_WORKSPACES
  list(REMOVE_ITEM CMAKE_PREFIX_PATH ${CATKIN_BUILD_PREFIX})
  message(STATUS "Using CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
endif()<commit_msg>added option to override catkin devel space<commit_after># prevent multiple inclusion
if(DEFINED _CATKIN_ALL_INCLUDED_)
  message(FATAL_ERROR "catkin/cmake/all.cmake included multiple times")
endif()
set(_CATKIN_ALL_INCLUDED_ TRUE)

if(NOT DEFINED catkin_EXTRAS_DIR)
  message(FATAL_ERROR "catkin_EXTRAS_DIR is not set")
endif()

# define buildspace
if(CATKIN_DEVEL_SPACE)
  set(CATKIN_DEVEL_SPACE ${CATKIN_DEVEL_SPACE} CACHE PATH "catkin devel space")
else()
  set(CATKIN_DEVEL_SPACE "${CMAKE_BINARY_DIR}/develspace")
endif()
message(STATUS "Using CATKIN_DEVEL_SPACE: ${CATKIN_DEVEL_SPACE}")
set(CATKIN_BUILD_PREFIX "${CATKIN_DEVEL_SPACE}")

# create workspace marker
set(_sourcespaces "${CMAKE_SOURCE_DIR}")
if(EXISTS "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE")
  # prepend to existing list of sourcespaces
  file(READ "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE" _existing_sourcespaces)
  list(FIND _existing_sourcespaces "${CMAKE_SOURCE_DIR}" _index)
  if(_index EQUAL -1)
    list(INSERT _existing_sourcespaces 0 ${CMAKE_SOURCE_DIR})
  endif()
  set(_sourcespaces ${_existing_sourcespaces})
endif()
file(WRITE "${CATKIN_BUILD_PREFIX}/.CATKIN_WORKSPACE" "${_sourcespaces}")


# use either CMAKE_PREFIX_PATH explicitly passed to CMake as a command line argument
# or CMAKE_PREFIX_PATH from the environment
if(NOT DEFINED CMAKE_PREFIX_PATH)
  if(NOT "$ENV{CMAKE_PREFIX_PATH}" STREQUAL "")
    string(REPLACE ":" ";" CMAKE_PREFIX_PATH $ENV{CMAKE_PREFIX_PATH})
  endif()
endif()
if(CMAKE_PREFIX_PATH)
  # skip buildspace if it is in CMAKE_PREFIX_PATH so that it is not part of CATKIN_WORKSPACES
  list(REMOVE_ITEM CMAKE_PREFIX_PATH ${CATKIN_BUILD_PREFIX})
  message(STATUS "Using CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
endif()
{'fraction_non_alphanumeric': 0.09968652037617555, 'fraction_numerical': 0.0012539184952978057, 'mean_word_length': 7.64769647696477, 'pattern_counts': {'":': 2, '<': 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': '3548503', 'n_tokens_mistral': 1195, 'n_tokens_neox': 1138, 'n_words': 247}