<commit_before>message(STATUS "Entering directory ${CMAKE_CURRENT_SOURCE_DIR}")

# detect platform;
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
    if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
        set(LINUX_PLATFORM TRUE)
    endif()
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
    # for eliminating the macosx_rpath warning;
    set(CMAKE_MACOSX_RPATH 1)

    if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
        set(MAC_PLATFORM TRUE)
    endif()
endif()

if(NOT LINUX_PLATFORM AND NOT MAC_PLATFORM)
    message(FATAL_ERROR "Only Linux-x86_64 and Darwin-x86_64 platform supported")
endif()

# include directory;
include_directories(${PROJECT_SOURCE_DIR}/src/include)
include_directories(${PROJECT_SOURCE_DIR}/src/capture)
include_directories(${PROJECT_SOURCE_DIR}/src/util)

if(LINUX_PLATFORM)
    include_directories(${PROJECT_SOURCE_DIR}/vendor/glog/linux-x86_64/include)
    link_directories(${PROJECT_SOURCE_DIR}/vendor/glog/linux-x86_64/lib)
elseif(MAC_PLATFORM)    
    include_directories(${PROJECT_SOURCE_DIR}/vendor/glog/mac-x86_64/include)
    link_directories(${PROJECT_SOURCE_DIR}/vendor/glog/mac-x86_64/lib)
endif()

# main source files;
file(GLOB UNIVERSAL_FILES main/*.h main/*.cpp)
add_executable(openDMD ${UNIVERSAL_FILES})

# libraries
add_subdirectory(capture)
add_subdirectory(util)
link_directories(${PROJECT_SOURCE_DIR}/src/capture)
link_directories(${PROJECT_SOURCE_DIR}/src/util)
target_link_libraries(openDMD glog capture util ${PLATFORM_LIB}) 

message(STATUS "Leaving directory ${CMAKE_CURRENT_SOURCE_DIR}")

<commit_msg>add pthread library to CMakeLists.txt dependency lib list<commit_after>message(STATUS "Entering directory ${CMAKE_CURRENT_SOURCE_DIR}")

# detect platform;
if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux")
    if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
        set(LINUX_PLATFORM TRUE)
    endif()
elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Darwin")
    # for eliminating the macosx_rpath warning;
    set(CMAKE_MACOSX_RPATH 1)

    if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "x86_64")
        set(MAC_PLATFORM TRUE)
    endif()
endif()

if(NOT LINUX_PLATFORM AND NOT MAC_PLATFORM)
    message(FATAL_ERROR "Only Linux-x86_64 and Darwin-x86_64 platform supported")
endif()

# include directory;
include_directories(${PROJECT_SOURCE_DIR}/src/include)
include_directories(${PROJECT_SOURCE_DIR}/src/capture)
include_directories(${PROJECT_SOURCE_DIR}/src/util)

if(LINUX_PLATFORM)
    include_directories(${PROJECT_SOURCE_DIR}/vendor/glog/linux-x86_64/include)
    link_directories(${PROJECT_SOURCE_DIR}/vendor/glog/linux-x86_64/lib)
elseif(MAC_PLATFORM)    
    include_directories(${PROJECT_SOURCE_DIR}/vendor/glog/mac-x86_64/include)
    link_directories(${PROJECT_SOURCE_DIR}/vendor/glog/mac-x86_64/lib)
endif()

# main source files;
file(GLOB UNIVERSAL_FILES main/*.h main/*.cpp)
add_executable(openDMD ${UNIVERSAL_FILES})

# libraries
add_subdirectory(capture)
add_subdirectory(util)
link_directories(${PROJECT_SOURCE_DIR}/src/capture)
link_directories(${PROJECT_SOURCE_DIR}/src/util)
target_link_libraries(openDMD glog capture util pthread ${PLATFORM_LIB}) 

message(STATUS "Leaving directory ${CMAKE_CURRENT_SOURCE_DIR}")


{'fraction_non_alphanumeric': 0.1131064902331443, 'fraction_numerical': 0.020793950850661626, 'mean_word_length': 6.9375, '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': '4509531', 'n_tokens_mistral': 1226, 'n_tokens_neox': 1153, 'n_words': 168}