<commit_before>find_package(GtkDoc)

if (GTKDOC_FOUND)

  configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/Graviton-docs.xml.cmake<commit_msg>Still need to run gtk-mkdb apparently<commit_after>find_package(GtkDoc)

if (GTKDOC_FOUND)

  add_custom_command(
    OUTPUT
      ${CMAKE_CURRENT_BINARY_DIR}/Graviton-docs.xml
    COMMAND
      ${GTKDOC_MKDB_EXE}
        --module=Graviton
        --output-format=xml
        --xml-mode
        --source-dir=${CMAKE_SOURCE_DIR}/src/graviton/
    DEPENDS
      ${CMAKE_CURRENT_BINARY_DIR}/Graviton-decl.txt
    WORKING_DIRECTORY
      ${CMAKE_CURRENT_BINARY_DIR}
  )

  configure_file(
    ${CMAKE_CURRENT_SOURCE_DIR}/Graviton-docs.xml.cmake
{'fraction_non_alphanumeric': 0.10425844346549193, 'fraction_numerical': 0.0, 'mean_word_length': 3.546666666666667, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 5}, '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': '1504919', 'n_tokens_mistral': 280, 'n_tokens_neox': 251, 'n_words': 27}