<commit_before>
set_directory_properties (PROPERTIES PREFIX "")

macro (add_dplugin folder)
  add_library (dplugin_${folder} SHARED ${folder}/main.cc)
  set_target_properties (dplugin_${folder} PROPERTIES PREFIX "")
  link_libraries (${PROJECT_SO_LIBRARY})
  install (
    TARGETS dplugin_${folder}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/disir/
  )
endmacro()

add_dplugin (test)
add_dplugin (test_config_toml)
add_dplugin (test_config_json)
add_dplugin (toml)
add_dplugin (json)<commit_msg>squash build: Refactor cmake<commit_after>
include_directories (
  ${CMAKE_SOURCE_DIR}/include
)

macro (add_dplugin folder)
  add_library (dplugin_${folder} SHARED ${folder}/main.cc)
  set_target_properties (dplugin_${folder} PROPERTIES PREFIX "")

  link_libraries (${PROJECT_SO_LIBRARY})
  install (
    TARGETS dplugin_${folder}
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}/disir/
  )
endmacro()

add_dplugin (test)
add_dplugin (test_config_toml)
add_dplugin (test_config_json)
add_dplugin (toml)
add_dplugin (json)
{'fraction_non_alphanumeric': 0.10665362035225048, 'fraction_numerical': 0.0, 'mean_word_length': 6.869230769230769, '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': '1321196', 'n_tokens_mistral': 398, 'n_tokens_neox': 374, 'n_words': 69}