<commit_before>function(catkin_workspace)
  if (NOT IS_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
  endif()

  assert(catkin_EXTRAS_DIR)
  assert_file_exists(${catkin_EXTRAS_DIR}/templates/topologically_traverse.py.in "${catkin_EXTRAS_DIR}")
  assert_file_exists(${catkin_EXTRAS_DIR}/em/topologically_traverse.cmake.em "file not found")
  include_directories(${CMAKE_BINARY_DIR}/gen/cpp)

  set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

  foreach(path ${CMAKE_INCLUDE_PATH})
    include_directories(${path})
  endforeach()
  foreach(path ${CMAKE_PREFIX_PATH})
    message(STATUS "Include directory added: ${path}/include")
    include_directories(${path}/include)
  endforeach()  

  # libraries.cmake
  configure_shared_library_build_settings()

  em_expand(
    ${catkin_EXTRAS_DIR}/templates/topologically_traverse.py.in
    ${CMAKE_CURRENT_BINARY_DIR}/topologically_traverse.py
    ${catkin_EXTRAS_DIR}/em/topologically_traverse.cmake.em
    ${CMAKE_CURRENT_BINARY_DIR}/topologically_traverse.cmake
    )

endfunction()
<commit_msg>catkin variable pointing at rosdep roots.<commit_after>function(catkin_workspace)
  if (NOT IS_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
    file(MAKE_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
  endif()

  assert(catkin_EXTRAS_DIR)
  assert_file_exists(${catkin_EXTRAS_DIR}/templates/topologically_traverse.py.in "${catkin_EXTRAS_DIR}")
  assert_file_exists(${catkin_EXTRAS_DIR}/em/topologically_traverse.cmake.em "file not found")
  include_directories(${CMAKE_BINARY_DIR}/gen/cpp)

  set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
  set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
  set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

  # This is convenient when the platform has no 'system' path (e.g. windows).
  set(CATKIN_ROSDEPS_PATH "" CACHE STRING "Semi-colon separated list of root directories to search for rosdeps.") 
  foreach(path ${CATKIN_ROSDEPS_PATH})
    message(STATUS "Rosdep root search path added: ${path}")
    # Help cmake's find_file and find_library
    if (CMAKE_PREFIX_PATH)
      set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH};${path}")
    else() 
      set(CMAKE_PREFIX_PATH "${path}")
    endif()
    # CMAKE_PREFIX_PATH doesn't add it to the compile search path for includes.
    include_directories(${path}/include)
  endforeach()

  # libraries.cmake
  configure_shared_library_build_settings()

  em_expand(
    ${catkin_EXTRAS_DIR}/templates/topologically_traverse.py.in
    ${CMAKE_CURRENT_BINARY_DIR}/topologically_traverse.py
    ${catkin_EXTRAS_DIR}/em/topologically_traverse.cmake.em
    ${CMAKE_CURRENT_BINARY_DIR}/topologically_traverse.cmake
    )

endfunction()

{'fraction_non_alphanumeric': 0.10806054206265399, 'fraction_numerical': 0.0, 'mean_word_length': 6.231552162849873, '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': '2984875', 'n_tokens_mistral': 1062, 'n_tokens_neox': 1007, 'n_words': 138}