<commit_before>
#EduDS_SRC is all the .c modules
file(GLOB_RECURSE EduDS_SRC src//*.c external//*.c)
#EduDS_INC is all the .h header files
file(GLOB_RECURSE EduDS_INC include//*.h)

include_directories(include external//xxHash)
include_directories(include external//SFMT)

#if we're building a windows .dll, we add the resource file
#with the DLL versioning information, to the EduDS_SRC modules
if(BUILD_SHARED_LIBS AND WIN32)
    list(APPEND EduDS_SRC src//EduDS_DLLversion.rc)
endif(BUILD_SHARED_LIBS AND WIN32)

add_library(EduDS ${EduDS_SRC} ${EduDS_INC})

#if we're building a dynamic library we want to export all symbols
if(BUILD_SHARED_LIBS)
    target_compile_definitions(EduDS PRIVATE EXPORT_API_EduDS_DLL)
endif(BUILD_SHARED_LIBS)

#set gcc specific flags
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
    #maximum gcc warnings
    target_compile_options(EduDS PRIVATE -Wall -Wextra -pedantic)
    #add debugging flags for GCC if we're building the debug build
    if(CMAKE_BUILD_TYPE MATCHES Debug)
        target_compile_options(EduDS BEFORE PRIVATE -gdwarf)
    endif(CMAKE_BUILD_TYPE MATCHES Debug)
    #link to math library (for gcc on linux mostly)
    target_link_libraries(EduDS m)<commit_msg>changed debug build flags on linux<commit_after>
#EduDS_SRC is all the .c modules
file(GLOB_RECURSE EduDS_SRC src//*.c external//*.c)
#EduDS_INC is all the .h header files
file(GLOB_RECURSE EduDS_INC include//*.h)

include_directories(include external//xxHash)
include_directories(include external//SFMT)

#if we're building a windows .dll, we add the resource file
#with the DLL versioning information, to the EduDS_SRC modules
if(BUILD_SHARED_LIBS AND WIN32)
    list(APPEND EduDS_SRC src//EduDS_DLLversion.rc)
endif(BUILD_SHARED_LIBS AND WIN32)

add_library(EduDS ${EduDS_SRC} ${EduDS_INC})

#if we're building a dynamic library we want to export all symbols
if(BUILD_SHARED_LIBS)
    target_compile_definitions(EduDS PRIVATE EXPORT_API_EduDS_DLL)
endif(BUILD_SHARED_LIBS)

#set gcc specific flags
if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
    #maximum gcc warnings
    target_compile_options(EduDS PRIVATE -Wall -Wextra -pedantic)
    #add debugging flags for GCC if we're building the debug build
    if(CMAKE_BUILD_TYPE MATCHES Debug)
        target_compile_options(EduDS BEFORE PRIVATE -g)
    endif(CMAKE_BUILD_TYPE MATCHES Debug)
    #link to math library (for gcc on linux mostly)
    target_link_libraries(EduDS m)
{'fraction_non_alphanumeric': 0.06904955320877336, 'fraction_numerical': 0.003249390739236393, 'mean_word_length': 5.315384615384615, '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': '3579399', 'n_tokens_mistral': 924, 'n_tokens_neox': 853, 'n_words': 246}