<commit_before>include_directories(
    ../googletest
    ../googletest/include
    ..
  )

set(
  Autowiring_SRCS
  Autowired.cpp
  Autowired.h
  AutowirableSlot.h
  AutowirableSlot.cpp
  Autowirer.cpp
  Autowirer.h
  CMakeLists.txt
  ContextMap.h
  ContextMember.cpp
  ContextMember.h
  CoreContext.cpp
  CoreContext.h
  CoreThread.cpp
  CoreThread.h
  CurrentContextPusher.cpp
  CurrentContextPusher.h
  DeferredBase.h
  DeferredBase.cpp
  DependentContext.h
  DispatchQueue.h
  DispatchQueue.cpp
  EventManager.h
  InstantiatorLink.h  
  GlobalCoreContext.cpp
  GlobalCoreContext.h
  Object.h
  OutstandingCountTracker.cpp
  OutstandingCountTracker.h
  SharedPtrWrap.cpp
  SharedPtrWrap.h
  ThreadStatusMaintainer.cpp
  ThreadStatusMaintainer.h
)

if(BUILD_WINDOWS)
  set(Autowiring_SRCS
    CoreThreadWin.cpp
    ${Autowiring_SRCS}
  )
else()
  set(Autowiring_SRCS
    CoreThreadUnix.cpp
    ${Autowiring_SRCS}
  )
endif()

set(
  AutowiringTest_SRCS
  ContextCleanupTest.h
  ContextCleanupTest.cpp
  ContextMapTest.h
  ContextMapTest.cpp
  CtorProxyTest.h
  CtorProxyTest.cpp
  CurrentContextPusherTest.h
  CurrentContextPusherTest.cpp
  DependentContextTest.h
  DependentContextTest.cpp
  EnclosedContextTestBase.h
  EnclosedContextTestBase.cpp
  EventReceiverTest.h
  EventReceiverTest.cpp
  GlobalInitTest.h
  GlobalInitTest.cpp
  MultiInheritTest.h
  MultiInheritTest.cpp
  PostConstructTest.h
  PostConstructTest.cpp
  ScopeTest.h
  ScopeTest.cpp
  TestFixtures/SimpleObject.h
  TestFixtures/SimpleThreaded.h
  TestFixtures/MultiInherit.h
)

ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" Autowiring_SRCS)
add_library(Autowiring STATIC ${Autowiring_SRCS})
if(NOT BUILD_WINDOWS)
  set(Boost_SYSTEM_LIBRARY libboost_system)
  add_library(${Boost_SYSTEM_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_SYSTEM_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_SYSTEM_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
  set(Boost_THREAD_LIBRARY libboost_thread)
  add_library(${Boost_THREAD_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_THREAD_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_THREAD_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
  set(Boost_CHRONO_LIBRARY libboost_chrono)
  add_library(${Boost_CHRONO_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_CHRONO_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_CHRONO_LIBRARY}${STATIC_LIBRARY_SUFFIX})

  if(NOT BUILD_MAC)
    target_link_libraries(Autowiring -lrt)
  endif()
  target_link_libraries(Autowiring -lpthread ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_CHRONO_LIBRARY})
endif()

if(BUILD_TESTING)
  ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" AutowiringTest_SRCS)
  add_executable(AutowiringTest ${AutowiringTest_SRCS} "../gtest-all-guard.cpp")
  
  target_link_libraries(AutowiringTest Autowiring)
endif(BUILD_TESTING)<commit_msg>Added forgotten source file<commit_after>include_directories(
    ../googletest
    ../googletest/include
    ..
  )

set(
  Autowiring_SRCS
  Autowired.cpp
  Autowired.h
  AutowirableSlot.h
  AutowirableSlot.cpp
  Autowirer.cpp
  Autowirer.h
  CMakeLists.txt
  ContextMap.h
  ContextMember.cpp
  ContextMember.h
  CoreContext.cpp
  CoreContext.h
  CoreThread.cpp
  CoreThread.h
  CurrentContextPusher.cpp
  CurrentContextPusher.h
  DeferredBase.h
  DeferredBase.cpp
  DependentContext.h
  DispatchQueue.h
  DispatchQueue.cpp
  EventManager.h
  EventManager.cpp
  InstantiatorLink.h  
  GlobalCoreContext.cpp
  GlobalCoreContext.h
  Object.h
  OutstandingCountTracker.cpp
  OutstandingCountTracker.h
  SharedPtrWrap.cpp
  SharedPtrWrap.h
  ThreadStatusMaintainer.cpp
  ThreadStatusMaintainer.h
)

if(BUILD_WINDOWS)
  set(Autowiring_SRCS
    CoreThreadWin.cpp
    ${Autowiring_SRCS}
  )
else()
  set(Autowiring_SRCS
    CoreThreadUnix.cpp
    ${Autowiring_SRCS}
  )
endif()

set(
  AutowiringTest_SRCS
  ContextCleanupTest.h
  ContextCleanupTest.cpp
  ContextMapTest.h
  ContextMapTest.cpp
  CtorProxyTest.h
  CtorProxyTest.cpp
  CurrentContextPusherTest.h
  CurrentContextPusherTest.cpp
  DependentContextTest.h
  DependentContextTest.cpp
  EnclosedContextTestBase.h
  EnclosedContextTestBase.cpp
  EventReceiverTest.h
  EventReceiverTest.cpp
  GlobalInitTest.h
  GlobalInitTest.cpp
  MultiInheritTest.h
  MultiInheritTest.cpp
  PostConstructTest.h
  PostConstructTest.cpp
  ScopeTest.h
  ScopeTest.cpp
  TestFixtures/SimpleObject.h
  TestFixtures/SimpleThreaded.h
  TestFixtures/MultiInherit.h
)

ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" Autowiring_SRCS)
add_library(Autowiring STATIC ${Autowiring_SRCS})
if(NOT BUILD_WINDOWS)
  set(Boost_SYSTEM_LIBRARY libboost_system)
  add_library(${Boost_SYSTEM_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_SYSTEM_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_SYSTEM_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
  set(Boost_THREAD_LIBRARY libboost_thread)
  add_library(${Boost_THREAD_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_THREAD_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_THREAD_LIBRARY}${STATIC_LIBRARY_SUFFIX})
	
  set(Boost_CHRONO_LIBRARY libboost_chrono)
  add_library(${Boost_CHRONO_LIBRARY} STATIC IMPORTED)
  set_property(TARGET ${Boost_CHRONO_LIBRARY} PROPERTY IMPORTED_LOCATION ${Boost_LIBRARY_DIRS}/${Boost_CHRONO_LIBRARY}${STATIC_LIBRARY_SUFFIX})

  if(NOT BUILD_MAC)
    target_link_libraries(Autowiring -lrt)
  endif()
  target_link_libraries(Autowiring -lpthread ${Boost_SYSTEM_LIBRARY} ${Boost_THREAD_LIBRARY} ${Boost_CHRONO_LIBRARY})
endif()

if(BUILD_TESTING)
  ADD_MSVC_PRECOMPILED_HEADER("stdafx.h" "stdafx.cpp" AutowiringTest_SRCS)
  add_executable(AutowiringTest ${AutowiringTest_SRCS} "../gtest-all-guard.cpp")
  
  target_link_libraries(AutowiringTest Autowiring)
endif(BUILD_TESTING)
{'fraction_non_alphanumeric': 0.07763814770184196, 'fraction_numerical': 0.0, 'mean_word_length': 5.724537037037037, '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': '2522835', 'n_tokens_mistral': 2244, 'n_tokens_neox': 2188, 'n_words': 267}