<commit_before>set (PLIB_THREAD_MODEL win)
set (PLIB_IPC_MODEL win)
set (PLIB_TIME_PROFILER_MODEL win)
set (PLIB_PLATFORM_CONFIG_PATH "../pplatform.h")

# Ensure MSVC-compatible struct packing convention is used
# What flag to depends on gcc version: gcc3 uses '-mms-bitfields', while
# gcc2 uses '-fnative-struct'.
message (STATUS "Checking for MSVC-compatible code compilation flags")
exec_program (gcc ARGS --version OUTPUT_VARIABLE CMAKE_C_COMPILER_VERSION)

if (CMAKE_C_COMPILER_VERSION MATCHES ".*2\\.[0-9].*")
	set (PLIB_PLATFORM_CFLAGS "-fnative-struct")
	message (STATUS "Checking for MSVC-compatible code compile flags -fnative-struct")
else()
	set (PLIB_PLATFORM_CFLAGS "-mms-bitfields")
	message (STATUS "Checking for MSVC-compatible code compile flags -mms-bitfields")
endif()

set (PLIB_PLATFORM_LINK_LIBRARIES ws2_32)<commit_msg>cmake: Fix compiling using MinGW<commit_after>set (PLIB_THREAD_MODEL win)
set (PLIB_IPC_MODEL win)
set (PLIB_TIME_PROFILER_MODEL win)
set (PLIB_PLATFORM_CONFIG_PATH "pplatform.h")

# Ensure MSVC-compatible struct packing convention is used
# What flag to depends on gcc version: gcc3 uses '-mms-bitfields', while
# gcc2 uses '-fnative-struct'.
message (STATUS "Checking for MSVC-compatible code compilation flags")
exec_program (gcc ARGS --version OUTPUT_VARIABLE CMAKE_C_COMPILER_VERSION)

if (CMAKE_C_COMPILER_VERSION MATCHES ".*2\\.[0-9].*")
	set (PLIB_PLATFORM_CFLAGS "-fnative-struct")
	message (STATUS "Checking for MSVC-compatible code compile flags -fnative-struct")
else()
	set (PLIB_PLATFORM_CFLAGS "-mms-bitfields")
	message (STATUS "Checking for MSVC-compatible code compile flags -mms-bitfields")
endif()

set (PLIB_PLATFORM_LINK_LIBRARIES ws2_32)
{'fraction_non_alphanumeric': 0.10093896713615023, 'fraction_numerical': 0.009389671361502348, 'mean_word_length': 6.163865546218488, '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': '7130637', 'n_tokens_mistral': 620, 'n_tokens_neox': 600, 'n_words': 163}