<commit_before>cmake_minimum_required(VERSION 2.8.3)

project(${pkg_name})
# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS
  rqt_gui
  rqt_gui_cpp
${dependencies_1}
)

if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  find_package(Qt5Widgets REQUIRED)
else()
  find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
  include($${QT_USE_FILE})
endif()

# Flags
SET(CMAKE_CXX_FLAGS "-std=c++11 $${CMAKE_CXX_FLAGS}")

set($${PROJECT_NAME}_SRCS
  src/$${PROJECT_NAME}/${file_name}.cpp
)

set($${PROJECT_NAME}_HDRS
  include/$${PROJECT_NAME}/${file_name}.h
)

set($${PROJECT_NAME}_UIS
  src/$${PROJECT_NAME}/${file_name}.ui
)

set($${PROJECT_NAME}_QRC
  resource/resources.qrc
)

set(ui_INCLUDE_DIR
  "$${CATKIN_DEVEL_PREFIX}/$${CATKIN_GLOBAL_INCLUDE_DESTINATION}/$${PROJECT_NAME}"
)

set($${PROJECT_NAME}_INCLUDE_DIRECTORIES
  include
  $${ui_INCLUDE_DIR}/..
)

if(NOT EXISTS $${ui_INCLUDE_DIR})
  file(MAKE_DIRECTORY $${ui_INCLUDE_DIR})
endif()

catkin_package(
#  INCLUDE_DIRS
#    $${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
#  LIBRARIES $${PROJECT_NAME}
  CATKIN_DEPENDS
    rqt_gui
    rqt_gui_cpp
${dependencies_2}
)

# include directories before wrap cpp
include_directories($${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
  $${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
  $${catkin_INCLUDE_DIRS}
)


if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  include_directories($${Qt5Widgets_INCLUDE_DIRS})
  add_definitions($${Qt5Widgets_DEFINITIONS})
  qt5_wrap_cpp($${PROJECT_NAME}_MOCS $${$${PROJECT_NAME}_HDRS})
  qt5_add_resources($${PROJECT_NAME}_RCC $${$${PROJECT_NAME}_QRC})
else()
  qt4_wrap_cpp($${PROJECT_NAME}_MOCS $${$${PROJECT_NAME}_HDRS})
  qt4_add_resources($${PROJECT_NAME}_RCC $${$${PROJECT_NAME}_QRC})
endif()

# ensure generated header files are being created in the devel space
set(_cmake_current_binary_dir "$${CMAKE_CURRENT_BINARY_DIR}")
set(CMAKE_CURRENT_BINARY_DIR $${ui_INCLUDE_DIR})
if("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  qt5_wrap_ui($${PROJECT_NAME}_UIS_H $${$${PROJECT_NAME}_UIS})
else()
  qt4_wrap_ui($${PROJECT_NAME}_UIS_H $${$${PROJECT_NAME}_UIS})
endif()
set(CMAKE_CURRENT_BINARY_DIR "$${_cmake_current_binary_dir}")

add_library($${PROJECT_NAME}
  $${$${PROJECT_NAME}_SRCS}
  $${$${PROJECT_NAME}_HDRS}
  $${$${PROJECT_NAME}_MOCS}
  $${$${PROJECT_NAME}_UIS_H}
  $${$${PROJECT_NAME}_RCC}
)

target_link_libraries($${PROJECT_NAME}
  $${catkin_LIBRARIES}
)

if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  target_link_libraries($${PROJECT_NAME} Qt5::Widgets)
else()
  target_link_libraries($${PROJECT_NAME} $${QT_QTCORE_LIBRARY} $${QT_QTGUI_LIBRARY})
endif()

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

find_package(class_loader)
class_loader_hide_library_symbols($${PROJECT_NAME})

install(FILES plugin.xml
  DESTINATION $${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(TARGETS $${PROJECT_NAME}
  ARCHIVE DESTINATION $${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION $${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION $${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(PROGRAMS scripts/$${PROJECT_NAME}
  DESTINATION $${CATKIN_PACKAGE_BIN_DESTINATION}
)

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

# uncomment, if this widget will be used by any other QObject (e.g., a widget)
#install(DIRECTORY ${ui_INCLUDE_DIR}/..
#  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
#)

#install(
#  DIRECTORY resource
#  DESTINATION $${CATKIN_PACKAGE_SHARE_DESTINATION}
#  FILES_MATCHING
#  PATTERN "*.png"
#  PATTERN "*.svg"
#)<commit_msg>Set proper path in install instructions.<commit_after>cmake_minimum_required(VERSION 2.8.3)

project(${pkg_name})
# Load catkin and all dependencies required for this package
find_package(catkin REQUIRED COMPONENTS
  rqt_gui
  rqt_gui_cpp
${dependencies_1}
)

if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  find_package(Qt5Widgets REQUIRED)
else()
  find_package(Qt4 COMPONENTS QtCore QtGui REQUIRED)
  include($${QT_USE_FILE})
endif()

# Flags
SET(CMAKE_CXX_FLAGS "-std=c++11 $${CMAKE_CXX_FLAGS}")

set($${PROJECT_NAME}_SRCS
  src/$${PROJECT_NAME}/${file_name}.cpp
)

set($${PROJECT_NAME}_HDRS
  include/$${PROJECT_NAME}/${file_name}.h
)

set($${PROJECT_NAME}_UIS
  src/$${PROJECT_NAME}/${file_name}.ui
)

set($${PROJECT_NAME}_QRC
  resource/resources.qrc
)

set(ui_INCLUDE_DIR
  "$${CATKIN_DEVEL_PREFIX}/$${CATKIN_GLOBAL_INCLUDE_DESTINATION}/$${PROJECT_NAME}"
)

set($${PROJECT_NAME}_INCLUDE_DIRECTORIES
  include
  $${ui_INCLUDE_DIR}/..
)

if(NOT EXISTS $${ui_INCLUDE_DIR})
  file(MAKE_DIRECTORY $${ui_INCLUDE_DIR})
endif()

catkin_package(
#  INCLUDE_DIRS
#    $${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
#  LIBRARIES $${PROJECT_NAME}
  CATKIN_DEPENDS
    rqt_gui
    rqt_gui_cpp
${dependencies_2}
)

# include directories before wrap cpp
include_directories($${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
  $${$${PROJECT_NAME}_INCLUDE_DIRECTORIES}
  $${catkin_INCLUDE_DIRS}
)


if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  include_directories($${Qt5Widgets_INCLUDE_DIRS})
  add_definitions($${Qt5Widgets_DEFINITIONS})
  qt5_wrap_cpp($${PROJECT_NAME}_MOCS $${$${PROJECT_NAME}_HDRS})
  qt5_add_resources($${PROJECT_NAME}_RCC $${$${PROJECT_NAME}_QRC})
else()
  qt4_wrap_cpp($${PROJECT_NAME}_MOCS $${$${PROJECT_NAME}_HDRS})
  qt4_add_resources($${PROJECT_NAME}_RCC $${$${PROJECT_NAME}_QRC})
endif()

# ensure generated header files are being created in the devel space
set(_cmake_current_binary_dir "$${CMAKE_CURRENT_BINARY_DIR}")
set(CMAKE_CURRENT_BINARY_DIR $${ui_INCLUDE_DIR})
if("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  qt5_wrap_ui($${PROJECT_NAME}_UIS_H $${$${PROJECT_NAME}_UIS})
else()
  qt4_wrap_ui($${PROJECT_NAME}_UIS_H $${$${PROJECT_NAME}_UIS})
endif()
set(CMAKE_CURRENT_BINARY_DIR "$${_cmake_current_binary_dir}")

add_library($${PROJECT_NAME}
  $${$${PROJECT_NAME}_SRCS}
  $${$${PROJECT_NAME}_HDRS}
  $${$${PROJECT_NAME}_MOCS}
  $${$${PROJECT_NAME}_UIS_H}
  $${$${PROJECT_NAME}_RCC}
)

target_link_libraries($${PROJECT_NAME}
  $${catkin_LIBRARIES}
)

if ("$${qt_gui_cpp_USE_QT_MAJOR_VERSION} " STREQUAL "5 ")
  target_link_libraries($${PROJECT_NAME} Qt5::Widgets)
else()
  target_link_libraries($${PROJECT_NAME} $${QT_QTCORE_LIBRARY} $${QT_QTGUI_LIBRARY})
endif()

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

find_package(class_loader)
class_loader_hide_library_symbols($${PROJECT_NAME})

install(FILES plugin.xml
  DESTINATION $${CATKIN_PACKAGE_SHARE_DESTINATION}
)

install(TARGETS $${PROJECT_NAME}
  ARCHIVE DESTINATION $${CATKIN_PACKAGE_LIB_DESTINATION}
  LIBRARY DESTINATION $${CATKIN_PACKAGE_LIB_DESTINATION}
  RUNTIME DESTINATION $${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(PROGRAMS scripts/$${PROJECT_NAME}
  DESTINATION $${CATKIN_PACKAGE_BIN_DESTINATION}
)

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

# uncomment, if this widget will be used by any other QObject (e.g., a widget)
#install(DIRECTORY ${ui_INCLUDE_DIR}/
#  DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
#)

#install(
#  DIRECTORY resource
#  DESTINATION $${CATKIN_PACKAGE_SHARE_DESTINATION}
#  FILES_MATCHING
#  PATTERN "*.png"
#  PATTERN "*.svg"
#)
{'fraction_non_alphanumeric': 0.14975978037062457, 'fraction_numerical': 0.0060398078242964994, 'mean_word_length': 8.524183006535948, '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': '5897688', 'n_tokens_mistral': 3203, 'n_tokens_neox': 3067, 'n_words': 381}