<commit_before>find_package(DOXYGEN)
if (DOXYGEN_FOUND)

set(DOXYGEN_PREDEFINED ${DOXYGEN_PREDEFINED} " \"ENABLE_CUDA=1\" \\
    \"NVCC=1\" ")

# disable DOT in doxygen if dot is not found
if(DOXYGEN_DOT_PATH)
    set(DOXYGEN_HAVE_DOT "YES")
else(DOXYGEN_DOT_PATH)
    set(DOXYGEN_HAVE_DOT "NO")
endif(DOXYGEN_DOT_PATH)

# configure the doxygen file
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

file(GLOB SOURCE_FILES "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cu"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cuh"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cc"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.h"
                       "${${PROJECT_NAME}_SOURCE_DIR}/pymodule/*.py")

add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html
                    COMMAND ${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
                    DEPENDS
                    ${SOURCE_FILES}
                    ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
                    ${CMAKE_CURRENT_SOURCE_DIR}/DoxygenLayout.xml)

add_custom_target (doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html)

endif (DOXYGEN_FOUND)
<commit_msg>Fixed a bug in the documentation generation of the template plugin.<commit_after>find_package(Doxygen)
if (DOXYGEN_FOUND)

set(DOXYGEN_PREDEFINED ${DOXYGEN_PREDEFINED} " \"ENABLE_CUDA=1\" \\
    \"NVCC=1\" ")

# disable DOT in doxygen if dot is not found
if(DOXYGEN_DOT_PATH)
    set(DOXYGEN_HAVE_DOT "YES")
else(DOXYGEN_DOT_PATH)
    set(DOXYGEN_HAVE_DOT "NO")
endif(DOXYGEN_DOT_PATH)

# configure the doxygen file
configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)

file(GLOB SOURCE_FILES "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cu"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cuh"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.cc"
                       "${${PROJECT_NAME}_SOURCE_DIR}/cppmodule/*.h"
                       "${${PROJECT_NAME}_SOURCE_DIR}/pymodule/*.py")

add_custom_command (OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html
                    COMMAND ${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
                    DEPENDS
                    ${SOURCE_FILES}
                    ${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in
                    ${CMAKE_CURRENT_SOURCE_DIR}/DoxygenLayout.xml)

add_custom_target (doc ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/index.html)

endif (DOXYGEN_FOUND)

{'fraction_non_alphanumeric': 0.12278675904541955, 'fraction_numerical': 0.001539645881447267, 'mean_word_length': 3.1784565916398715, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '5896727', 'n_tokens_mistral': 929, 'n_tokens_neox': 901, 'n_words': 118}