<commit_before>find_package(Doxygen REQUIRED)

option(BUILD_MAN_DOCUMENTATION "Create and install the MAN API documentation (requires Doxygen)" ${DOXYGEN_FOUND})

FUNCTION(PREPEND var prefix)
   SET(listVar "")
   FOREACH(FILEPATH ${ARGN})
       LIST(APPEND listVar "${prefix}/${FILEPATH}")
   ENDFOREACH(FILEPATH)
   SET(${var} "${listVar}" PARENT_SCOPE)
ENDFUNCTION(PREPEND)

FUNCTION(STRIP_PATHS var)
   SET(listVar "")
   FOREACH(FILEPATH ${ARGN})
       get_filename_component(STRIPPED ${FILEPATH} NAME)
      LIST(APPEND listVar ${STRIPPED})
  ENDFOREACH(FILEPATH)
   SET(${var} "${listVar}" PARENT_SCOPE)
ENDFUNCTION(STRIP_PATHS)

if(BUILD_MAN_DOCUMENTATION)
    list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
    find_package(Gzip REQUIRED)
    if(NOT DOXYGEN_FOUND)
        message(FATAL_ERROR "Doxygen is required to build the documentation.")
    endif()

    add_custom_target(docs-man COMMENT "Building man-page API documentation" )
    add_dependencies(docs docs-man)

    add_subdirectory(man1)
    add_subdirectory(man5)
endif()
<commit_msg>Made Doxygen option if BUILD_MAN_DOCUMENTATION is not set<commit_after>find_package(Doxygen)

option(BUILD_MAN_DOCUMENTATION "Create and install the MAN API documentation (requires Doxygen)" ${DOXYGEN_FOUND})

FUNCTION(PREPEND var prefix)
   SET(listVar "")
   FOREACH(FILEPATH ${ARGN})
       LIST(APPEND listVar "${prefix}/${FILEPATH}")
   ENDFOREACH(FILEPATH)
   SET(${var} "${listVar}" PARENT_SCOPE)
ENDFUNCTION(PREPEND)

FUNCTION(STRIP_PATHS var)
   SET(listVar "")
   FOREACH(FILEPATH ${ARGN})
       get_filename_component(STRIPPED ${FILEPATH} NAME)
      LIST(APPEND listVar ${STRIPPED})
  ENDFOREACH(FILEPATH)
   SET(${var} "${listVar}" PARENT_SCOPE)
ENDFUNCTION(STRIP_PATHS)

if(BUILD_MAN_DOCUMENTATION)
    if(NOT DOXYGEN_FOUND)
        message(FATAL_ERROR "Doxygen is required to build the documentation.")
    endif()

    list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules)
    find_package(Gzip REQUIRED)
    if(NOT DOXYGEN_FOUND)
        message(FATAL_ERROR "Doxygen is required to build the documentation.")
    endif()

    add_custom_target(docs-man COMMENT "Building man-page API documentation" )
    add_dependencies(docs docs-man)

    add_subdirectory(man1)
    add_subdirectory(man5)
endif()

{'fraction_non_alphanumeric': 0.10802603036876356, 'fraction_numerical': 0.0017353579175704988, 'mean_word_length': 5.132978723404255, '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': '6238354', 'n_tokens_mistral': 831, 'n_tokens_neox': 775, 'n_words': 159}