<commit_before>cmake_minimum_required(VERSION 2.8.3)
project(controller_manager)

if(USE_ROSBUILD)

  include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

  rosbuild_init()

  rosbuild_add_library(${PROJECT_NAME} 
    src/controller_manager.cpp
    include/controller_manager/controller_manager.h
    include/controller_manager/controller_loader_interface.h
    include/controller_manager/controller_loader.h)

else()

  # Load catkin and all dependencies required for this package
  find_package(catkin REQUIRED COMPONENTS controller_interface controller_manager_msgs hardware_interface realtime_tools pluginlib)

  include_directories(include ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS})

  add_library(${PROJECT_NAME}
    src/controller_manager.cpp
    include/controller_manager/controller_manager.h
    include/controller_manager/controller_loader_interface.h
    include/controller_manager/controller_loader.h)

  add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})

  # Declare catkin package
  catkin_package(
    DEPENDS boost
    CATKIN_DEPENDS controller_interface controller_manager_msgs hardware_interface realtime_tools pluginlib
    INCLUDE_DIRS include
    LIBRARIES ${PROJECT_NAME}
    )

  # Install
  install(DIRECTORY include/${PROJECT_NAME}/
    DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

  install(TARGETS ${PROJECT_NAME}
    LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})

  install(DIRECTORY scripts/
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})<commit_msg>Fixing failure mode in new catkin cmakelists<commit_after>cmake_minimum_required(VERSION 2.8.3)
project(controller_manager)

if(USE_ROSBUILD)

  include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)

  rosbuild_init()

  rosbuild_add_library(${PROJECT_NAME} 
    src/controller_manager.cpp
    include/controller_manager/controller_manager.h
    include/controller_manager/controller_loader_interface.h
    include/controller_manager/controller_loader.h)

else()

  # Load catkin and all dependencies required for this package
  find_package(catkin REQUIRED COMPONENTS controller_interface controller_manager_msgs hardware_interface realtime_tools pluginlib)

  include_directories(include ${Boost_INCLUDE_DIR} ${catkin_INCLUDE_DIRS})

  add_library(${PROJECT_NAME}
    src/controller_manager.cpp
    include/controller_manager/controller_manager.h
    include/controller_manager/controller_loader_interface.h
    include/controller_manager/controller_loader.h)

  if(catkin_EXPORTED_TARGETS)
    add_dependencies(${PROJECT_NAME} ${catkin_EXPORTED_TARGETS})
  endif()

  # Declare catkin package
  catkin_package(
    DEPENDS boost
    CATKIN_DEPENDS controller_interface controller_manager_msgs hardware_interface realtime_tools pluginlib
    INCLUDE_DIRS include
    LIBRARIES ${PROJECT_NAME}
    )

  # Install
  install(DIRECTORY include/${PROJECT_NAME}/
    DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

  install(TARGETS ${PROJECT_NAME}
    LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION})

  install(DIRECTORY scripts/
    DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
{'fraction_non_alphanumeric': 0.06965495001612383, 'fraction_numerical': 0.0019348597226701064, 'mean_word_length': 6.1639722863741335, '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': '6794219', 'n_tokens_mistral': 1033, 'n_tokens_neox': 956, 'n_words': 145}