<commit_before>


file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/build/html/")

if(ENABLE_HTML_DOCS)
  addDoxyGeneration("Doxyfile.in")
  SET( l_doc "${CMAKE_CURRENT_BINARY_DIR}/build/html/")

  install(DIRECTORY ${l_doc}
    DESTINATION ${DOC_INSTALL_DIR}/html/) # install examples

  find_package(Sphinx REQUIRED)

  add_custom_target(htmldoc
    DEPENDS doc
    COMMAND ${SPHINX_EXECUTABLE}
    -q -b html
    "${CMAKE_CURRENT_SOURCE_DIR}/sphinx"
    "${CMAKE_CURRENT_BINARY_DIR}/sphinx")
endif(ENABLE_HTML_DOCS)

FILE(GLOB man1_page ${CMAKE_CURRENT_SOURCE_DIR}/man/*.1)
install(FILES ${man1_page}
                        DESTINATION ${MAN_INSTALL_DIR}/man1/)

FILE(GLOB man3_page ${CMAKE_CURRENT_SOURCE_DIR}/man/*.3)
install(FILES ${man3_page}
                        DESTINATION ${MAN_INSTALL_DIR}/man3/)

<commit_msg>DMC-791 Make sphnix optional<commit_after>


file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/build/html/")

if(ENABLE_HTML_DOCS)
  addDoxyGeneration("Doxyfile.in")
  SET( l_doc "${CMAKE_CURRENT_BINARY_DIR}/build/html/")

  install(DIRECTORY ${l_doc}
    DESTINATION ${DOC_INSTALL_DIR}/html/) # install examples

  find_package(Sphinx)

  if(SPHINX_FOUND)
    add_custom_target(htmldoc
      DEPENDS doc
      COMMAND ${SPHINX_EXECUTABLE}
      -q -b html
      "${CMAKE_CURRENT_SOURCE_DIR}/sphinx"
      "${CMAKE_CURRENT_BINARY_DIR}/sphinx")
  endif(SPHINX_FOUND)
endif(ENABLE_HTML_DOCS)

FILE(GLOB man1_page ${CMAKE_CURRENT_SOURCE_DIR}/man/*.1)
install(FILES ${man1_page}
                        DESTINATION ${MAN_INSTALL_DIR}/man1/)

FILE(GLOB man3_page ${CMAKE_CURRENT_SOURCE_DIR}/man/*.3)
install(FILES ${man3_page}
                        DESTINATION ${MAN_INSTALL_DIR}/man3/)


{'fraction_non_alphanumeric': 0.12229373902867174, 'fraction_numerical': 0.011117612638970159, 'mean_word_length': 4.119760479041916, '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': '1023843', 'n_tokens_mistral': 688, 'n_tokens_neox': 639, 'n_words': 86}