<commit_before>project(salt-channel-c)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -lpthread")
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
  SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -pthread")
endif()

include_directories(../src ./)

add_executable(host_echo host_echo.c salt_io.c randombytes_linux.c)
add_sanitizers(host_echo)
target_link_libraries(host_echo salt)

add_executable(client_echo client_echo.c salt_io.c randombytes_linux.c)
add_sanitizers(client_echo)
target_link_libraries(client_echo salt)
<commit_msg>Link with -pthread by default<commit_after>project(salt-channel-c)

if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
  SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -lpthread")
else ()
  SET(CMAKE_EXE_LINKER_FLAGS  "${CMAKE_EXE_LINKER_FLAGS} -pthread")
endif()

include_directories(../src ./)

add_executable(host_echo host_echo.c salt_io.c randombytes_linux.c)
add_sanitizers(host_echo)
target_link_libraries(host_echo salt)

add_executable(client_echo client_echo.c salt_io.c randombytes_linux.c)
add_sanitizers(client_echo)
target_link_libraries(client_echo salt)

{'fraction_non_alphanumeric': 0.1102629346904156, 'fraction_numerical': 0.0, 'mean_word_length': 9.0, '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': '2607236', 'n_tokens_mistral': 487, 'n_tokens_neox': 471, 'n_words': 63}