<commit_before># This is from https://github.com/vector-of-bool/pitchfork/blob/develop/cmake/FindFilesystem.cmake

include(CMakePushCheckState)
include(CheckIncludeFileCXX)
include(CheckCXXSourceCompiles)

cmake_push_check_state(RESET)

# this seems not to affect check_cxx_source_compiles()...
set(CMAKE_CXX_STANDARD 17)

if(MRPT_COMPILER_IS_GCC_OR_CLANG)
    set(CMAKE_REQUIRED_LINK_OPTIONS -std=c++17)
    set(CMAKE_REQUIRED_FLAGS -std=c++17)
endif()

set(have_fs FALSE)
<commit_msg>Fix detection of <filesystem> on FreeBSD<commit_after># This is from https://github.com/vector-of-bool/pitchfork/blob/develop/cmake/FindFilesystem.cmake

include(CMakePushCheckState)
include(CheckIncludeFileCXX)
include(CheckCXXSourceCompiles)

cmake_push_check_state(RESET)

# this seems not to affect check_cxx_source_compiles()...
set(CMAKE_CXX_STANDARD 17)

if(MRPT_COMPILER_IS_GCC_OR_CLANG)
    set(CMAKE_REQUIRED_LINK_OPTIONS -std=c++17)
    set(CMAKE_REQUIRED_FLAGS -std=c++17)
    if ("${CMAKE_SYSTEM_NAME}" STREQUAL "FreeBSD")
        set(CMAKE_REQUIRED_LINK_OPTIONS -stdlib=libc++)
        set(CMAKE_REQUIRED_FLAGS -stdlib=libc++)
    endif()
endif()

set(have_fs FALSE)

{'fraction_non_alphanumeric': 0.10882604970008569, 'fraction_numerical': 0.010282776349614395, 'mean_word_length': 6.633986928104576, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 2, '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': '5303805', 'n_tokens_mistral': 473, 'n_tokens_neox': 439, 'n_words': 64}