<commit_before>cmake_minimum_required(VERSION 3.8)

project(msufsort
    LANGUAGES CXX
)

option(MSUFSORT_BUILD_DEMO "Build the CLI demo" OFF)

if (MSUFSORT_BUILD_DEMO)
    set(CMAKE_BUILD_TYPE Release)
    set(CMAKE_CXX_COMPILER "clang++") 
    find_library(LIBCXX_LIB c++)
    find_package(Threads)
    add_compile_options(
        -stdlib=libc++
        -O3
        -g
        -march=native
    )
    link_libraries(
        ${LIBCXX_LIB}
    )
endif()

set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)

add_subdirectory(src)<commit_msg>more cmake stuff<commit_after>cmake_minimum_required(VERSION 3.8)

project(msufsort
    LANGUAGES CXX
)

option(MSUFSORT_BUILD_DEMO "Build the CLI demo" OFF)

if (MSUFSORT_BUILD_DEMO)
    set(CMAKE_BUILD_TYPE Release)
    set(CMAKE_CXX_COMPILER "clang++") 
    find_library(LIBCXX_LIB c++)
    find_package(Threads)
    add_compile_options(
        -stdlib=libc++
        -O3
        -g
        -march=native
    )
    link_libraries(
        ${LIBCXX_LIB}
    )
endif()

add_subdirectory(src)

include(GNUInstallDirs)

install(
    TARGETS msufsort
    EXPORT msufsort-export
    LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
    ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
	RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)

install(EXPORT msufsort-export
    FILE
        msufsortTargets.cmake
    NAMESPACE
        msufsort::
    DESTINATION
        ${CMAKE_INSTALL_LIBDIR}/cmake/msufsort
)

set(_msufsort_config "${CMAKE_CURRENT_BINARY_DIR}/msufsort-config.cmake")

file(WRITE
    ${_msufsort_config}
    "include(\"\${CMAKE_CURRENT_LIST_DIR}/msufsortTargets.cmake\")"
)

install(
    FILES ${_msufsort_config}
    DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/msufsort
)

install(
    DIRECTORY
        ${CMAKE_CURRENT_SOURCE_DIR}/src/library/msufsort
    DESTINATION include/msufsort/
    FILES_MATCHING PATTERN "*.h"
)
{'fraction_non_alphanumeric': 0.09562154001006543, 'fraction_numerical': 0.003019627579265224, 'mean_word_length': 3.848780487804878, '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': '54176', 'n_tokens_mistral': 808, 'n_tokens_neox': 754, 'n_words': 106}