<commit_before>set (lwm2m_common_SOURCES
  lwm2m_list.c
  coap_abstraction_libcoap.c
  lwm2m_debug.c
  lwm2m_util.c
  lwm2m_object_store.c
  lwm2m_attributes.c
  lwm2m_definition.c
  xml.c
  lwm2m_tree_node.c
  lwm2m_endpoints.c
  lwm2m_result.c
  lwm2m_types.c
)

set (lwm2m_common_INCLUDE_DIRS
  ${LIBCOAP_INCLUDE_DIR}
  ${LIBJSMN_INCLUDE_DIR}
  ${API_INCLUDE_DIR}
)

# Virtual library to avoid building .o files twice:<commit_msg>Define API_INCLUDE_DIR in common CMakeLists.txt to avoid circular dependency<commit_after>set (lwm2m_common_SOURCES
  lwm2m_list.c
  coap_abstraction_libcoap.c
  lwm2m_debug.c
  lwm2m_util.c
  lwm2m_object_store.c
  lwm2m_attributes.c
  lwm2m_definition.c
  xml.c
  lwm2m_tree_node.c
  lwm2m_endpoints.c
  lwm2m_result.c
  lwm2m_types.c
)

# currently the API and core are a little tangled so we need to define the include
# path here. the API tests depend on core, which depends on the API.
set (API_INCLUDE_DIR ../../../api/include CACHE INTERNAL "API_INCLUDE_DIR")

set (lwm2m_common_INCLUDE_DIRS
  ${LIBCOAP_INCLUDE_DIR}
  ${LIBJSMN_INCLUDE_DIR}
  ${API_INCLUDE_DIR}
)

# Virtual library to avoid building .o files twice:
{'fraction_non_alphanumeric': 0.07081174438687392, 'fraction_numerical': 0.02072538860103627, 'mean_word_length': 4.572115384615385, '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': '1184435', 'n_tokens_mistral': 523, 'n_tokens_neox': 493, 'n_words': 96}