<commit_before>#///////////////////////////////////////////////////////////////////////////////
#// Reaper
#//
#// Copyright (c) 2015-2018 <NAME>
#// This file is distributed under the MIT License
#///////////////////////////////////////////////////////////////////////////////

set(MICROPROFILE_BIN microprofile)

add_library(${MICROPROFILE_BIN} ${REAPER_BUILD_TYPE})

target_sources(${MICROPROFILE_BIN} PRIVATE
    ${CMAKE_SOURCE_DIR}/external/microprofile.config.h.in
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.config.h
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.cpp
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.h
)

set(MICROPROFILE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external/microprofile)

configure_file(${CMAKE_SOURCE_DIR}/external/microprofile.config.h.in ${MICROPROFILE_INCLUDE_DIR}/microprofile.config.h NEWLINE_STYLE UNIX)

target_include_directories(${MICROPROFILE_BIN} SYSTEM INTERFACE ${MICROPROFILE_INCLUDE_DIR})

# Get microprofile to include our custom conf
target_compile_definitions(${MICROPROFILE_BIN} PUBLIC MICROPROFILE_USE_CONFIG)

reaper_configure_external_target(${MICROPROFILE_BIN} "Microprofile")

set_target_properties(${MICROPROFILE_BIN} PROPERTIES FOLDER External)

if(WIN32)
    target_link_libraries(${MICROPROFILE_BIN} PRIVATE ws2_32)
endif()
<commit_msg>fix: restore phtread dependency on microprofile<commit_after>#///////////////////////////////////////////////////////////////////////////////
#// Reaper
#//
#// Copyright (c) 2015-2018 <NAME>
#// This file is distributed under the MIT License
#///////////////////////////////////////////////////////////////////////////////

set(MICROPROFILE_BIN microprofile)

add_library(${MICROPROFILE_BIN} ${REAPER_BUILD_TYPE})

target_sources(${MICROPROFILE_BIN} PRIVATE
    ${CMAKE_SOURCE_DIR}/external/microprofile.config.h.in
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.config.h
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.cpp
    ${CMAKE_SOURCE_DIR}/external/microprofile/microprofile.h
)

set(MICROPROFILE_INCLUDE_DIR ${CMAKE_SOURCE_DIR}/external/microprofile)

configure_file(${CMAKE_SOURCE_DIR}/external/microprofile.config.h.in ${MICROPROFILE_INCLUDE_DIR}/microprofile.config.h NEWLINE_STYLE UNIX)

target_include_directories(${MICROPROFILE_BIN} SYSTEM INTERFACE ${MICROPROFILE_INCLUDE_DIR})

# Get microprofile to include our custom conf
target_compile_definitions(${MICROPROFILE_BIN} PUBLIC MICROPROFILE_USE_CONFIG)

reaper_configure_external_target(${MICROPROFILE_BIN} "Microprofile")

set_target_properties(${MICROPROFILE_BIN} PROPERTIES FOLDER External)

if(UNIX)
    target_link_libraries(${MICROPROFILE_BIN} PRIVATE pthread)
elseif(WIN32)
    target_link_libraries(${MICROPROFILE_BIN} PRIVATE ws2_32)
endif()
{'fraction_non_alphanumeric': 0.20699603317706455, 'fraction_numerical': 0.009376126938333935, 'mean_word_length': 3.72572402044293, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7285717', 'n_tokens_mistral': 945, 'n_tokens_neox': 862, 'n_words': 119}