<commit_before>SET_PROPERTY(GLOBAL APPEND PROPERTY BUILD_COMPONENTS sdb_btree)

SET(sdb_btree_SRC sdb_btree_header.cpp)

ADD_LIBRARY(sdb_btree_shared SHARED ${sdb_btree_SRC})
SET_TARGET_PROPERTIES(sdb_btree_shared PROPERTIES
  OUTPUT_NAME "sdb_btree"
  CLEAN_DIRECT_OUTPUT 1
  VERSION ${PROJECT_VERSION}
  )

ADD_LIBRARY(sdb_btree_static STATIC ${sdb_btree_SRC})
SET_TARGET_PROPERTIES(sdb_btree_static PROPERTIES
  OUTPUT_NAME "sdb_btree"
  CLEAN_DIRECT_OUTPUT 1
  )

INSTALL(TARGETS sdb_btree_static sdb_btree_shared
  EXPORT sdb_btree
  ARCHIVE DESTINATION ${VERSION_INSTALL_PREFIX}/lib
  LIBRARY DESTINATION shared
  COMPONENT "sdb_btree"
  )

INSTALL(EXPORT sdb_btree
  DESTINATION ${VERSION_INSTALL_PREFIX}/cmake
  COMPONENT "sdb_btree"
  )<commit_msg>does not compile sdb_btree if cannot find sys/stat.h<commit_after># also depends on febird, boost_thread, boost_serialization, but not
# required in building the library

IF(HAVE_SYS_STAT_H)

  SET_PROPERTY(GLOBAL APPEND PROPERTY BUILD_COMPONENTS sdb_btree)

  SET(sdb_btree_SRC sdb_btree_header.cpp)

  ADD_LIBRARY(sdb_btree_shared SHARED ${sdb_btree_SRC})
  SET_TARGET_PROPERTIES(sdb_btree_shared PROPERTIES
    OUTPUT_NAME "sdb_btree"
    CLEAN_DIRECT_OUTPUT 1
    VERSION ${PROJECT_VERSION}
    )

  ADD_LIBRARY(sdb_btree_static STATIC ${sdb_btree_SRC})
  SET_TARGET_PROPERTIES(sdb_btree_static PROPERTIES
    OUTPUT_NAME "sdb_btree"
    CLEAN_DIRECT_OUTPUT 1
    )

  INSTALL(TARGETS sdb_btree_static sdb_btree_shared
    EXPORT sdb_btree
    ARCHIVE DESTINATION ${VERSION_INSTALL_PREFIX}/lib
    LIBRARY DESTINATION shared
    COMPONENT "sdb_btree"
    )

  INSTALL(EXPORT sdb_btree
    DESTINATION ${VERSION_INSTALL_PREFIX}/cmake
    COMPONENT "sdb_btree"
    )

ELSE(HAVE_SYS_STAT_H)

  SET_PROPERTY(GLOBAL APPEND PROPERTY NON_BUILD_COMPONENTS sdb_btree)
  MESSAGE(STATUS "! WARNING: Cannot find <sys/stat.h> to build sdb_btree")

ENDIF(HAVE_SYS_STAT_H)
{'fraction_non_alphanumeric': 0.05995828988529719, 'fraction_numerical': 0.0020855057351407717, 'mean_word_length': 6.029304029304029, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '3610063', 'n_tokens_mistral': 795, 'n_tokens_neox': 746, 'n_words': 131}