<commit_before>
find_program(CPPCHECK "cppcheck" NO_CMAKE_FIND_ROOT_PATH DOC "CppCheck Executable")

if( CPPCHECK )
    if( NOT CMAKE_EXPORT_COMPILE_COMMANDS )
        message(STATUS "'CMAKE_EXPORT_COMPILE_COMMANDS' not enabled but required by CppCheck")
    endif()

    add_custom_target(cppcheck)
    add_custom_command(TARGET cppcheck POST_BUILD
                        COMMAND ${CPPCHECK} --error-exitcode=1
                                            --enable=all
                                            --project=${CMAKE_BINARY_DIR}/compile_commands.json
                                            --report-progress
                                            --suppress='*:*test/*'
                                            --suppress=missingInclude
                                            --suppress=unmatchedSuppression
                                            --suppressions-list=${CMAKE_MODULE_PATH}/CppCheck.suppressions
                                            "${PROJECT_SOURCE_DIR}/src"
                                            "${PROJECT_SOURCE_DIR}/include"
                        COMMENT "Running CppCheck ..."
                        )
else()
    message(STATUS "CppCheck not found")
endif()
<commit_msg>Execute the CppCheck with multiple jobs (#72).<commit_after>
find_program(CPPCHECK "cppcheck" NO_CMAKE_FIND_ROOT_PATH DOC "CppCheck Executable")

if( CPPCHECK )
    if( NOT CMAKE_EXPORT_COMPILE_COMMANDS )
        message(STATUS "'CMAKE_EXPORT_COMPILE_COMMANDS' not enabled but required by CppCheck")
    endif()

    add_custom_target(cppcheck)
    add_custom_command(TARGET cppcheck POST_BUILD
                        COMMAND ${CPPCHECK} --error-exitcode=1
                                            --enable=all
                                            --project=${CMAKE_BINARY_DIR}/compile_commands.json
                                            --report-progress
                                            --suppress='*:*test/*'
                                            --suppress=missingInclude
                                            --suppress=unmatchedSuppression
                                            --suppressions-list=${CMAKE_MODULE_PATH}/CppCheck.suppressions
                                            -j 4
                                            "${PROJECT_SOURCE_DIR}/src"
                                            "${PROJECT_SOURCE_DIR}/include"
                        COMMENT "Running CppCheck ..."
                        )
else()
    message(STATUS "CppCheck not found")
endif()

{'fraction_non_alphanumeric': 0.07659409020217729, 'fraction_numerical': 0.0019440124416796269, 'mean_word_length': 1.1282051282051282, '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': 38, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5731638', 'n_tokens_mistral': 572, 'n_tokens_neox': 542, 'n_words': 100}