<commit_before>cmake_minimum_required(VERSION 2.6.0)
project(netLink)

set(OUTPUT_DIR out)
set(SOURCE_DIR src)
set(EXAMPLES_DIR ${SOURCE_DIR}/examples)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})

include_directories(PUBLIC include)
aux_source_directory(${SOURCE_DIR} SOURCES)
#add_library(shared SHARED ${SOURCES})
add_library(static STATIC ${SOURCES})
#set_target_properties(shared PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
#set_target_properties(shared PROPERTIES DEBUG_POSTFIX -d)
set_target_properties(static PROPERTIES DEBUG_POSTFIX -d)

if(WIN32)
    #target_link_libraries(shared ws2_32)
    set(ver ${CMAKE_SYSTEM_VERSION})
    string(REPLACE "." "" ver ${ver})
    string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
    add_definitions(-D_WIN32_WINNT=0x${ver})
    add_definitions(-DWIN32)
endif(WIN32)

if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
    add_definitions(-O3 -std=c++11)
endif()

if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    add_definitions(-stdlib=libc++)
endif()<commit_msg>Removed netLink flag forcing libc++ for Clang on Linux<commit_after>cmake_minimum_required(VERSION 2.6.0)
project(netLink)

set(OUTPUT_DIR out)
set(SOURCE_DIR src)
set(EXAMPLES_DIR ${SOURCE_DIR}/examples)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${OUTPUT_DIR})
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${OUTPUT_DIR})
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})

include_directories(PUBLIC include)
aux_source_directory(${SOURCE_DIR} SOURCES)
#add_library(shared SHARED ${SOURCES})
add_library(static STATIC ${SOURCES})
#set_target_properties(shared PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
set_target_properties(static PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
#set_target_properties(shared PROPERTIES DEBUG_POSTFIX -d)
set_target_properties(static PROPERTIES DEBUG_POSTFIX -d)

if(WIN32)
    #target_link_libraries(shared ws2_32)
    set(ver ${CMAKE_SYSTEM_VERSION})
    string(REPLACE "." "" ver ${ver})
    string(REGEX REPLACE "([0-9])" "0\\1" ver ${ver})
    add_definitions(-D_WIN32_WINNT=0x${ver})
    add_definitions(-DWIN32)
endif(WIN32)

if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
    add_definitions(-O3 -std=c++11)
endif()

# This makes it hard to work with Clang on Linux
#if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
#    add_definitions(-stdlib=libc++)
#endif()
{'fraction_non_alphanumeric': 0.12667478684531058, 'fraction_numerical': 0.017864393016646368, 'mean_word_length': 8.333333333333334, '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': '5756923', 'n_tokens_mistral': 966, 'n_tokens_neox': 904, 'n_words': 157}