<commit_before>project(CPX)
cmake_minimum_required(VERSION 2.8.3)

include(detectOS.cmake)
add_definitions(-DOS_${OSNAME})

#activate C++11 support under Linux. Windows uses it by default.
if (OSNAME STREQUAL "LINUX")
    set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS})
endif (OSNAME STREQUAL "LINUX")

OPTION(ENABLE_TEST "Build tests" ON)

if (ENABLE_TEST)
    add_subdirectory(test)
    # add exta warnings
    if (OSNAME STREQUAL "LINUX")
        set(CMAKE_CXX_FLAGS "-Wextra -Wall -pedantic -std=c++0x -Wno-unused-parameter -Wno-missing-braces" )
    endif (OSNAME STREQUAL "LINUX")
    if (OSNAME STREQUAL "WINDOWS")
        set(CMAKE_CXX_FLAGS "/Wall" )
    endif (OSNAME STREQUAL "WINDOWS")
endif (ENABLE_TEST)


set(CMAKE_CXX_FLAGS "-Wextra -Wall -pedantic -std=c++0x -Wno-unused-parameter -Wno-missing-braces ${CMAKE_CXX_FLAGS}" )

include_directories(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/src)

add_library(cpx SHARED
    src/PluginFactory.cpp
    src/LibraryLoader.cpp
)

if (OSNAME STREQUAL "LINUX")
    target_link_libraries(cpx dl)
endif (OSNAME STREQUAL "LINUX")








<commit_msg>fix cmake<commit_after>project(CPX)
cmake_minimum_required(VERSION 2.8.3)

include(detectOS.cmake)
add_definitions(-DOS_${OSNAME})

#activate C++11 support under Linux. Windows uses it by default.
if (OSNAME STREQUAL "LINUX")
    set(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS}")
endif (OSNAME STREQUAL "LINUX")

include_directories(${PROJECT_SOURCE_DIR}/include ${PROJECT_SOURCE_DIR}/src)

OPTION(ENABLE_TEST "Build tests" ON)

if (ENABLE_TEST)
    # add exta warnings
    if (OSNAME STREQUAL "LINUX")
        set(CMAKE_CXX_FLAGS "-Wextra -Wall -pedantic -Wno-unused-parameter ${CMAKE_CXX_FLAGS}" )
    endif (OSNAME STREQUAL "LINUX")
    if (OSNAME STREQUAL "WINDOWS")
        set(CMAKE_CXX_FLAGS "/Wall ${CMAKE_CXX_FLAGS}" )
    endif (OSNAME STREQUAL "WINDOWS")
    
    add_subdirectory(test)
endif (ENABLE_TEST)



add_library(cpx SHARED
    src/PluginFactory.cpp
    src/LibraryLoader.cpp
)

if (OSNAME STREQUAL "LINUX")
    target_link_libraries(cpx dl)
endif (OSNAME STREQUAL "LINUX")


{'fraction_non_alphanumeric': 0.11920529801324503, 'fraction_numerical': 0.006622516556291391, 'mean_word_length': 4.64, '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': '3459786', 'n_tokens_mistral': 841, 'n_tokens_neox': 788, 'n_words': 167}