<commit_before>cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rospack(ompl)
rospack_add_boost_directories()
include_directories(${PROJECT_SOURCE_DIR}/code)
rospack_add_library(ompl code/ompl/base/util/src/time.cpp
			 code/ompl/base/util/src/output.cpp
			 code/ompl/base/util/src/random_utils.cpp
			 code/ompl/base/src/Planner.cpp
			 code/ompl/extension/samplingbased/kinematic/src/SpaceInformationKinematic.cpp
			 code/ompl/extension/samplingbased/kinematic/src/PathSmootherKinematic.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/ik/src/GAIK.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/rrt/src/RRT.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/rrt/src/LazyRRT.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/est/src/EST.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/sbl/src/SBL.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/kpiece/src/LBKPIECE1.cpp
			 )
rospack_add_compile_flags(ompl -Wextra)

### Tests


# Test the motion planners on a 2D map
rospack_add_gtest(test_2dmap code/tests/samplingbased/kinematic/2dmap/2dmap.cpp)
target_link_libraries(test_2dmap ompl)
rospack_link_boost(test_2dmap thread)


# Test datastructures implementation
rospack_add_gtest(test_grid code/tests/datastructures/grid/grid.cpp)
target_link_libraries(test_grid ompl)
rospack_link_boost(test_grid thread)

rospack_add_gtest(test_heap code/tests/datastructures/heap/heap.cpp)
target_link_libraries(test_heap ompl)
rospack_link_boost(test_heap thread)

rospack_add_gtest(test_gridx code/tests/datastructures/grid/gridx.cpp)
target_link_libraries(test_gridx ompl)
rospack_link_boost(test_gridx thread)
<commit_msg>setting build type to 'release', so we get optimization turned on<commit_after>cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rospack(ompl)
rospack_add_boost_directories()
include_directories(${PROJECT_SOURCE_DIR}/code)
set(CMAKE_BUILD_TYPE Release)
rospack_add_library(ompl code/ompl/base/util/src/time.cpp
			 code/ompl/base/util/src/output.cpp
			 code/ompl/base/util/src/random_utils.cpp
			 code/ompl/base/src/Planner.cpp
			 code/ompl/extension/samplingbased/kinematic/src/SpaceInformationKinematic.cpp
			 code/ompl/extension/samplingbased/kinematic/src/PathSmootherKinematic.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/ik/src/GAIK.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/rrt/src/RRT.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/rrt/src/LazyRRT.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/est/src/EST.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/sbl/src/SBL.cpp
			 code/ompl/extension/samplingbased/kinematic/extension/kpiece/src/LBKPIECE1.cpp
			 )
rospack_add_compile_flags(ompl -Wextra)

### Tests


# Test the motion planners on a 2D map
rospack_add_gtest(test_2dmap code/tests/samplingbased/kinematic/2dmap/2dmap.cpp)
target_link_libraries(test_2dmap ompl)
rospack_link_boost(test_2dmap thread)


# Test datastructures implementation
rospack_add_gtest(test_grid code/tests/datastructures/grid/grid.cpp)
target_link_libraries(test_grid ompl)
rospack_link_boost(test_grid thread)

rospack_add_gtest(test_heap code/tests/datastructures/heap/heap.cpp)
target_link_libraries(test_heap ompl)
rospack_link_boost(test_heap thread)

rospack_add_gtest(test_gridx code/tests/datastructures/grid/gridx.cpp)
target_link_libraries(test_gridx ompl)
rospack_link_boost(test_gridx thread)

{'fraction_non_alphanumeric': 0.09803370786516855, 'fraction_numerical': 0.0056179775280898875, 'mean_word_length': 6.342268041237113, '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': '6021162', 'n_tokens_mistral': 1427, 'n_tokens_neox': 1287, 'n_words': 126}