<commit_before>FIND_PACKAGE( Doxygen QUIET)

# inpired by work done on the CTK and the dtk source.

IF( DOXYGEN_FOUND )
  IF( DOXYGEN_DOT_FOUND )

    # Automatically generate documentation at build time
    SET(all_arg)
    IF (DOCUMENTATION_TARGET_IN_ALL)
      SET(all_arg "ALL")
    ENDIF()

    #
    # Documentation
    #
    SET( DOCUMENTATION_HTML_TARZ TRUE)
    SET( DOCUMENTATION_ARCHIVES_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")

    CONFIGURE_FILE( Doxyfile.txt.in
      ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.txt
      )

    CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/generate_doc.cmake.in
      ${CMAKE_CURRENT_BINARY_DIR}/generate_doc.cmake
      @ONLY
      )
    CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/qhc/medinria-plugins.qhcp.in 
      ${CMAKE_CURRENT_BINARY_DIR}/medinria-plugins.qhcp IMMEDIATE @ONLY)<commit_msg>Correctly set ${QT_BINARY} while doing make doc<commit_after>FIND_PACKAGE( Doxygen QUIET)

# inpired by work done on the CTK and the dtk source.

IF( DOXYGEN_FOUND )
  IF( DOXYGEN_DOT_FOUND )

    # Automatically generate documentation at build time
    SET(all_arg)
    IF (DOCUMENTATION_TARGET_IN_ALL)
      SET(all_arg "ALL")
    ENDIF()

    find_package(Qt4 4.6.0 REQUIRED)
    include(${QT_USE_FILE})

    #
    # Documentation
    #
    SET( DOCUMENTATION_HTML_TARZ TRUE)
    SET( DOCUMENTATION_ARCHIVES_OUTPUT_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")

    CONFIGURE_FILE( Doxyfile.txt.in
      ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile.txt
      )

    CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/generate_doc.cmake.in
      ${CMAKE_CURRENT_BINARY_DIR}/generate_doc.cmake
      @ONLY
      )
    CONFIGURE_FILE(
      ${CMAKE_CURRENT_SOURCE_DIR}/qhc/medinria-plugins.qhcp.in 
      ${CMAKE_CURRENT_BINARY_DIR}/medinria-plugins.qhcp IMMEDIATE @ONLY)
{'fraction_non_alphanumeric': 0.08820286659316427, 'fraction_numerical': 0.002205071664829107, 'mean_word_length': 3.6065989847715736, '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': '7275547', 'n_tokens_mistral': 703, 'n_tokens_neox': 669, 'n_words': 107}