<commit_before>cmake_minimum_required (VERSION 2.8) 
project (controller)
enable_testing()

if(APPLE)
  include_directories( include src src/osx ../../jdksavdecc-c/include )
elseif(UNIX)
  include_directories( include src src/linux ../../jdksavdecc-c/include )
elseif(WIN32)
	if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
      link_directories($ENV{WPCAP_DIR}/Lib/x64)
	elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 )
      link_directories($ENV{WPCAP_DIR}/Lib)
	endif()
	
  add_definitions(-DAVDECC_CONTROLLER_LIB32_EXPORTS -D_CRT_SECURE_NO_WARNINGS)
  include_directories( include src src/msvc ../../jdksavdecc-c/include $ENV{WPCAP_DIR}/Include )
endif()

file(GLOB CONTROLLERLIB_INCLUDES "include/*.h" "src/*.h" )

file(GLOB CONTROLLERLIB_SRC "src/*.cpp" "../../jdksavdecc-c/src/jdksavdecc_pdu.c" "../../jdksavdecc-c/src/jdksavdecc_frame.c")

if(APPLE)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/osx/*.cpp")
elseif(UNIX)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/linux/*.cpp")
elseif(WIN32)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/msvc/*.cpp")
endif()

add_library(controller SHARED ${CONTROLLERLIB_INCLUDES} ${CONTROLLERLIB_SRC} ${SYSTEM_SPEC_SRC})

if(APPLE)
  target_link_libraries(controller pcap edit)
elseif(UNIX)
  target_link_libraries(controller pcap)
elseif(WIN32)
  target_link_libraries(controller wpcap Iphlpapi Ws2_32)
endif()<commit_msg>pthread and rt libs added to link when on linux<commit_after>cmake_minimum_required (VERSION 2.8) 
project (controller)
enable_testing()

if(APPLE)
  include_directories( include src src/osx ../../jdksavdecc-c/include )
elseif(UNIX)
  include_directories( include src src/linux ../../jdksavdecc-c/include )
elseif(WIN32)
	if( CMAKE_SIZEOF_VOID_P EQUAL 8 )
      link_directories($ENV{WPCAP_DIR}/Lib/x64)
	elseif( CMAKE_SIZEOF_VOID_P EQUAL 4 )
      link_directories($ENV{WPCAP_DIR}/Lib)
	endif()
	
  add_definitions(-DAVDECC_CONTROLLER_LIB32_EXPORTS -D_CRT_SECURE_NO_WARNINGS)
  include_directories( include src src/msvc ../../jdksavdecc-c/include $ENV{WPCAP_DIR}/Include )
endif()

file(GLOB CONTROLLERLIB_INCLUDES "include/*.h" "src/*.h" )

file(GLOB CONTROLLERLIB_SRC "src/*.cpp" "../../jdksavdecc-c/src/jdksavdecc_pdu.c" "../../jdksavdecc-c/src/jdksavdecc_frame.c")

if(APPLE)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/osx/*.cpp")
elseif(UNIX)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/linux/*.cpp")
elseif(WIN32)
  file(GLOB_RECURSE SYSTEM_SPEC_SRC "src/msvc/*.cpp")
endif()

add_library(controller SHARED ${CONTROLLERLIB_INCLUDES} ${CONTROLLERLIB_SRC} ${SYSTEM_SPEC_SRC})

if(APPLE)
  target_link_libraries(controller pcap edit)
elseif(UNIX)
  target_link_libraries(controller pcap)
  target_link_libraries(controller pthread)
  target_link_libraries(controller rt)
elseif(WIN32)
  target_link_libraries(controller wpcap Iphlpapi Ws2_32)
endif()
{'fraction_non_alphanumeric': 0.12944983818770225, 'fraction_numerical': 0.01222581805106077, 'mean_word_length': 5.752427184466019, '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': '4413703', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1120, 'n_words': 170}