<commit_before># Copyright (C) 2016-2017 <NAME> <<EMAIL>>
# This file is subject to the license terms in the LICENSE file
# found in the top-level directory of this distribution.

set(TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY "" CACHE PATH "path to directory with pre-built standardese")

find_package(standardese)
if(NOT standardese_FOUND)
    find_program(STANDARDESE_TOOL standardese ${TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY})
    include(${TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY}/standardese-config.cmake)
endif()

standardese_generate(type_safe
                     CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/standardese.config
                     INCLUDE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/
                                       ${CMAKE_CURRENT_SOURCE_DIR}/../external/debug_assert/
                     INPUT ${header_files})
<commit_msg>Add QUIET flag when looking for standardese<commit_after># Copyright (C) 2016-2017 <NAME> <<EMAIL>>
# This file is subject to the license terms in the LICENSE file
# found in the top-level directory of this distribution.

set(TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY "" CACHE PATH "path to directory with pre-built standardese")

find_package(standardese QUIET)
if(NOT standardese_FOUND)
    find_program(STANDARDESE_TOOL standardese ${TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY})
    include(${TYPE_SAFE_STANDARDESE_DOWNLOAD_DIRECTORY}/standardese-config.cmake)
endif()

standardese_generate(type_safe
                     CONFIG ${CMAKE_CURRENT_SOURCE_DIR}/standardese.config
                     INCLUDE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/../include/
                                       ${CMAKE_CURRENT_SOURCE_DIR}/../external/debug_assert/
                     INPUT ${header_files})

{'fraction_non_alphanumeric': 0.08009153318077804, 'fraction_numerical': 0.009153318077803204, 'mean_word_length': 3.5785340314136125, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7275546', 'n_tokens_mistral': 541, 'n_tokens_neox': 486, 'n_words': 109}