<commit_before>
set (NSFW_LIBRARY_SOURCES
    Queue.cpp
    NativeInterface.cpp
    win32/ReadLoop.cpp
    win32/ReadLoopRunner.cpp
)

set (CMAKE_CXX_STANDARD 11)

add_library(nsfw STATIC ${NSFW_LIBRARY_SOURCES})
target_include_directories(nsfw PUBLIC ${NSFW_INCLUDE_DIR})
<commit_msg>extend CMakeLists.txt for platform dependent code<commit_after>
# platform independent code
set (NSFW_LIBRARY_SOURCES
    Queue.cpp
    NativeInterface.cpp
)

if (WIN32)
    message (STATUS "compiling windows specific file system service")
    set (NSFW_LIBRARY_SOURCES ${NSFW_LIBRARY_SOURCES}
        win32/ReadLoop.cpp
        win32/ReadLoopRunner.cpp
    )
endif(WIN32)

if (UNIX)
    if (APPLE)
        message (STATUS "compiling macOS specific file system service")
        set (NSFW_LIBRARY_SOURCES ${NSFW_LIBRARY_SOURCES}
            osx/RunLoop.cpp
            osx/FSEventsService.cpp
        )
    else (APPLE)
        message (STATUS "compiling linux specific file system service")
        set (NSFW_LIBRARY_SOURCES ${NSFW_LIBRARY_SOURCES}
            linux/InotifyEventLoop.cpp
            linux/InotifyService.cpp
            linux/InotifyTree.cpp
        )
    endif(APPLE)
endif (UNIX)

set (CMAKE_CXX_STANDARD 11)

add_library(nsfw STATIC ${NSFW_LIBRARY_SOURCES})
target_include_directories(nsfw PUBLIC ${NSFW_INCLUDE_DIR})

{'fraction_non_alphanumeric': 0.07477341389728097, 'fraction_numerical': 0.012084592145015106, 'mean_word_length': 3.446308724832215, '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': '722578', 'n_tokens_mistral': 502, 'n_tokens_neox': 438, 'n_words': 90}