<commit_before>#-----------------------------------------------------------------------------
# US source files
#-----------------------------------------------------------------------------

set(_srcs
  util/usAny.cpp
  util/usThreads.cpp
  util/usUtils.cpp

  service/usLDAPExpr.cpp
  service/usLDAPFilter.cpp
  service/usServiceException.cpp
  service/usServiceEvent.cpp
  service/usServiceListenerEntry.cpp
  service/usServiceListenerEntry_p.h
  service/usServiceListeners.cpp
  service/usServiceListeners_p.h
  service/usServiceProperties.cpp
  service/usServiceReference.cpp
  service/usServiceReferencePrivate.cpp
  service/usServiceRegistration.cpp
  service/usServiceRegistrationPrivate.cpp
  service/usServiceRegistry.cpp
  service/usServiceRegistry_p.h

  module/usCoreModuleContext_p.h
  module/usCoreModuleContext.cpp
  module/usModuleContext.cpp
  module/usModule.cpp
  module/usModuleEvent.cpp
  module/usModuleInfo.cpp
  module/usModulePrivate.cpp
  module/usModuleRegistry.cpp
  module/usModuleUtils.cpp
  module/usModuleVersion.cpp
)

set(_private_headers
  util/usAtomicInt_p.h
  util/usExportMacros_p.h
  util/usFunctor_p.h
  util/usStaticInit_p.h
  util/usThreads_p.h
  util/usUtils_p.h
  
  service/usServiceTracker.tpp
  service/usServiceTrackerPrivate.h
  service/usServiceTrackerPrivate.tpp
  service/usTrackedService_p.h
  service/usTrackedServiceListener_p.h
  service/usTrackedService.tpp
  
  module/usModuleAbstractTracked_p.h
  module/usModuleAbstractTracked.tpp
  module/usModuleUtils_p.h
)

set(_public_headers
  util/usAny.h
  util/usSharedData.h
  
  service/usLDAPFilter.h
  service/usServiceEvent.h
  service/usServiceException.h
  service/usServiceInterface.h
  service/usServiceProperties.h
  service/usServiceReference.h
  service/usServiceRegistration.h
  service/usServiceTracker.h
  service/usServiceTrackerCustomizer.h
  
  module/usGetModuleContext.h
  module/usModule.h
  module/usModuleActivator.h
  module/usModuleContext.h
  module/usModuleEvent.h
  module/usModuleInfo.h
  module/usModuleInitialization.h
  module/usModuleRegistry.h
  module/usModuleVersion.h
)

if(_us_baseclass_default)
  list(APPEND _public_headers util/usBase.h)
endif()

if(US_ENABLE_THREADING_SUPPORT)
  list(APPEND _private_headers util/usThreads_p.h)
endif()

if(US_ENABLE_SERVICE_FACTORY_SUPPORT)
  list(APPEND _public_headers service/usServiceFactory.h)
endif()

if(US_IS_EMBEDDED)
  set(US_SOURCES )
  get_filename_component(_path_prefix "${PROJECT_SOURCE_DIR}" NAME)
  set(_path_prefix "${_path_prefix}/src")
  foreach(_src ${_srcs} ${_public_headers} ${_private_headers})
    list(APPEND US_SOURCES ${_path_prefix}/${_src})
  endforeach()
  set(US_SOURCES ${US_SOURCES} PARENT_SCOPE)
endif()

#-----------------------------------------------------------------------------
# Create library (only if not in embedded mode)
#-----------------------------------------------------------------------------

if(NOT US_IS_EMBEDDED)
  include_directories(${US_INTERNAL_INCLUDE_DIRS})
  if(US_LINK_DIRS)
    link_directories(${US_LINK_DIRS})
  endif()

  if(US_BUILD_SHARED_LIBS)
    usFunctionGenerateModuleInit(_srcs NAME ${PROJECT_NAME} VERSION "0.9.0")
  endif()

  add_library(${PROJECT_NAME} ${_srcs} ${_public_headers} ${_private_headers})<commit_msg>Remove obsolete header file addition.<commit_after>#-----------------------------------------------------------------------------
# US source files
#-----------------------------------------------------------------------------

set(_srcs
  util/usAny.cpp
  util/usThreads.cpp
  util/usUtils.cpp

  service/usLDAPExpr.cpp
  service/usLDAPFilter.cpp
  service/usServiceException.cpp
  service/usServiceEvent.cpp
  service/usServiceListenerEntry.cpp
  service/usServiceListenerEntry_p.h
  service/usServiceListeners.cpp
  service/usServiceListeners_p.h
  service/usServiceProperties.cpp
  service/usServiceReference.cpp
  service/usServiceReferencePrivate.cpp
  service/usServiceRegistration.cpp
  service/usServiceRegistrationPrivate.cpp
  service/usServiceRegistry.cpp
  service/usServiceRegistry_p.h

  module/usCoreModuleContext_p.h
  module/usCoreModuleContext.cpp
  module/usModuleContext.cpp
  module/usModule.cpp
  module/usModuleEvent.cpp
  module/usModuleInfo.cpp
  module/usModulePrivate.cpp
  module/usModuleRegistry.cpp
  module/usModuleUtils.cpp
  module/usModuleVersion.cpp
)

set(_private_headers
  util/usAtomicInt_p.h
  util/usExportMacros_p.h
  util/usFunctor_p.h
  util/usStaticInit_p.h
  util/usThreads_p.h
  util/usUtils_p.h
  
  service/usServiceTracker.tpp
  service/usServiceTrackerPrivate.h
  service/usServiceTrackerPrivate.tpp
  service/usTrackedService_p.h
  service/usTrackedServiceListener_p.h
  service/usTrackedService.tpp
  
  module/usModuleAbstractTracked_p.h
  module/usModuleAbstractTracked.tpp
  module/usModuleUtils_p.h
)

set(_public_headers
  util/usAny.h
  util/usSharedData.h
  
  service/usLDAPFilter.h
  service/usServiceEvent.h
  service/usServiceException.h
  service/usServiceInterface.h
  service/usServiceProperties.h
  service/usServiceReference.h
  service/usServiceRegistration.h
  service/usServiceTracker.h
  service/usServiceTrackerCustomizer.h
  
  module/usGetModuleContext.h
  module/usModule.h
  module/usModuleActivator.h
  module/usModuleContext.h
  module/usModuleEvent.h
  module/usModuleInfo.h
  module/usModuleInitialization.h
  module/usModuleRegistry.h
  module/usModuleVersion.h
)

if(_us_baseclass_default)
  list(APPEND _public_headers util/usBase.h)
endif()

if(US_ENABLE_SERVICE_FACTORY_SUPPORT)
  list(APPEND _public_headers service/usServiceFactory.h)
endif()

if(US_IS_EMBEDDED)
  set(US_SOURCES )
  get_filename_component(_path_prefix "${PROJECT_SOURCE_DIR}" NAME)
  set(_path_prefix "${_path_prefix}/src")
  foreach(_src ${_srcs} ${_public_headers} ${_private_headers})
    list(APPEND US_SOURCES ${_path_prefix}/${_src})
  endforeach()
  set(US_SOURCES ${US_SOURCES} PARENT_SCOPE)
endif()

#-----------------------------------------------------------------------------
# Create library (only if not in embedded mode)
#-----------------------------------------------------------------------------

if(NOT US_IS_EMBEDDED)
  include_directories(${US_INTERNAL_INCLUDE_DIRS})
  if(US_LINK_DIRS)
    link_directories(${US_LINK_DIRS})
  endif()

  if(US_BUILD_SHARED_LIBS)
    usFunctionGenerateModuleInit(_srcs NAME ${PROJECT_NAME} VERSION "0.9.0")
  endif()

  add_library(${PROJECT_NAME} ${_srcs} ${_public_headers} ${_private_headers})
{'fraction_non_alphanumeric': 0.17345050878815912, 'fraction_numerical': 0.0009250693802035153, 'mean_word_length': 3.201424870466321, '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': '6915768', 'n_tokens_mistral': 2126, 'n_tokens_neox': 2096, 'n_words': 256}