<commit_before>set(SOURCES InterceptedHostFunctions.cpp UnderlyingCaller.cpp Logger.cpp)

# The LD_PRELOAD library
if (NOT WIN32)
    add_library(GVKI_preload SHARED ${SOURCES})
endif()

# The Macro style library
add_library(GVKI_macro STATIC ${SOURCES})
set_property(TARGET GVKI_macro
             APPEND
             PROPERTY COMPILE_DEFINITIONS "MACRO_LIB"
            )
<commit_msg>Under OSX build the preload library with -flat_namespace flag. Apparently this is necessary but I haven't tested it.<commit_after>set(SOURCES InterceptedHostFunctions.cpp UnderlyingCaller.cpp Logger.cpp)

# The LD_PRELOAD library
if (NOT WIN32)
    add_library(GVKI_preload SHARED ${SOURCES})

    if (APPLE)
        # Apparently this is necessary on OSX
        set_property(TARGET GVKI_preload APPEND PROPERTY LINK_FLAGS "-flat_namespace")
    endif()
endif()

# The Macro style library
add_library(GVKI_macro STATIC ${SOURCES})
set_property(TARGET GVKI_macro
             APPEND
             PROPERTY COMPILE_DEFINITIONS "MACRO_LIB"
            )

{'fraction_non_alphanumeric': 0.06756756756756757, 'fraction_numerical': 0.003861003861003861, 'mean_word_length': 3.7788018433179724, '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': '6393025', 'n_tokens_mistral': 359, 'n_tokens_neox': 318, 'n_words': 86}