<commit_before>cmake_minimum_required(VERSION 2.8)
Project("load_plugins")

include_directories(".")

# create two shared libs
file(GLOB foo_src ${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/foo/*)
add_library(plugin_foo SHARED ${foo_src})

file(GLOB bar_src ${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/bar/*)
add_library(plugin_bar SHARED ${bar_src})

# create one executable
file(GLOB load_plugins_src 
	${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/src/*
	${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/*)
add_executable(load_plugins ${load_plugins_src})
add_dependencies(PluginFactory plugin_foo plugin_bar) 
target_link_libraries(load_plugins PluginFactory ${Boost_LIBRARIES})<commit_msg>Adding set_property() to our CMake to ensure symbols in our shared libraries are exported.<commit_after>cmake_minimum_required(VERSION 2.8)
Project("load_plugins")

include_directories(".")

# create two shared libs
file(GLOB foo_src ${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/foo/*)
add_library(plugin_foo SHARED ${foo_src})

file(GLOB bar_src ${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/bar/*)
add_library(plugin_bar SHARED ${bar_src})

# create one executable
file(GLOB load_plugins_src 
	${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/src/*
	${CMAKE_CURRENT_SOURCE_DIR}/load_plugins/*)
add_executable(load_plugins ${load_plugins_src})
add_dependencies(PluginFactory plugin_foo plugin_bar) 
target_link_libraries(load_plugins PluginFactory ${Boost_LIBRARIES})

if(POSIX)
    set_property(TARGET plugin_foo PROPERTY COMPILE_FLAGS --export-dynamic)
    set_property(TARGET plugin_bar PROPERTY COMPILE_FLAGS --export-dynamic)
endif()

{'fraction_non_alphanumeric': 0.1008140262993112, 'fraction_numerical': 0.002504696305572949, 'mean_word_length': 9.178343949044587, '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': '1563678', 'n_tokens_mistral': 554, 'n_tokens_neox': 524, 'n_words': 94}