<commit_before>## C++ format #################################################################
find_program(CLANG_FORMAT_EXECUTABLE clang-format)
if(CLANG_FORMAT_EXECUTABLE)
    message("-- Found clang-format: ${CLANG_FORMAT_EXECUTABLE}")
else()
    message(FATAL_ERROR "-- clang-format not found")
endif()
add_custom_command(
    OUTPUT ${CMAKE_BINARY_DIR}/diff-clang-format.py
    DEPENDS ${CMAKE_SOURCE_DIR}/diff-clang-format.py
    COMMAND ${CMAKE_COMMAND}
    ARGS -E copy ${CMAKE_SOURCE_DIR}/diff-clang-format.py
        ${CMAKE_BINARY_DIR}/diff-clang-format.py
    COMMENT "Copying diff-clang-format.py"
)
add_custom_target(
    diff-clang-format.py
    DEPENDS ${CMAKE_BINARY_DIR}/diff-clang-format.py<commit_msg>copy diff-clang-format.py if it has changed<commit_after>## C++ format #################################################################
find_program(CLANG_FORMAT_EXECUTABLE clang-format)
if(CLANG_FORMAT_EXECUTABLE)
    message("-- Found clang-format: ${CLANG_FORMAT_EXECUTABLE}")
else()
    message(FATAL_ERROR "-- clang-format not found")
endif()
add_custom_command(
    OUTPUT ${CMAKE_BINARY_DIR}/diff-clang-format.py
    DEPENDS ${CMAKE_SOURCE_DIR}/diff-clang-format.py
    COMMAND ${CMAKE_COMMAND}
    ARGS -E copy ${CMAKE_SOURCE_DIR}/diff-clang-format.py
        ${CMAKE_BINARY_DIR}/diff-clang-format.py
    COMMENT "Copying diff-clang-format.py"
)
add_custom_target(
    diff-clang-format.py ALL
    DEPENDS ${CMAKE_BINARY_DIR}/diff-clang-format.py
{'fraction_non_alphanumeric': 0.20392953929539295, 'fraction_numerical': 0.0, 'mean_word_length': 5.154166666666667, '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': '3356553', 'n_tokens_mistral': 530, 'n_tokens_neox': 509, 'n_words': 75}