<commit_before>IF (DOXYGEN_FOUND)
	EXECUTE_PROCESS(
		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
		# COMMAND bzr nick
		# This will get the current branch name; I think that is what is wanted?
		COMMAND git rev-parse --abbrev-ref HEAD
		OUTPUT_VARIABLE BZR_NICK OUTPUT_STRIP_TRAILING_WHITESPACE)
	EXECUTE_PROCESS(
		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
		# I dunno, git doesn't have anything analogous to bzr revno...
		# COMMAND bzr revno
		# COMMAND git describe
		COMMAND git rev-parse HEAD
		OUTPUT_VARIABLE BZR_REVNO OUTPUT_STRIP_TRAILING_WHITESPACE)
	CONFIGURE_FILE(
		${PROJECT_SOURCE_DIR}/doc/doxygen.conf.in
		${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
	ADD_CUSTOM_TARGET (
		doxygen
		COMMAND ${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
		WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
		COMMENT "Generating documentation"
	)
    IF (CABAL_FOUND)
        ADD_DEPENDENCIES(doxygen haskell-doc)
    ENDIF (CABAL_FOUND)
    ADD_CUSTOM_TARGET(haskell-doc
        DEPENDS haskell-atomspace-lib
        COMMENT "Generating haskell library documentation..."
        COMMAND cabal haddock --builddir=${HASKELL_BUILD_DIR} --html
                    --haddock-option=-o${CMAKE_CURRENT_BINARY_DIR}/html/haskell
        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/opencog/haskell/<commit_msg>Update haddock doc generation.<commit_after>IF (DOXYGEN_FOUND)
	EXECUTE_PROCESS(
		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
		# COMMAND bzr nick
		# This will get the current branch name; I think that is what is wanted?
		COMMAND git rev-parse --abbrev-ref HEAD
		OUTPUT_VARIABLE BZR_NICK OUTPUT_STRIP_TRAILING_WHITESPACE)
	EXECUTE_PROCESS(
		WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
		# I dunno, git doesn't have anything analogous to bzr revno...
		# COMMAND bzr revno
		# COMMAND git describe
		COMMAND git rev-parse HEAD
		OUTPUT_VARIABLE BZR_REVNO OUTPUT_STRIP_TRAILING_WHITESPACE)
	CONFIGURE_FILE(
		${PROJECT_SOURCE_DIR}/doc/doxygen.conf.in
		${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
	ADD_CUSTOM_TARGET (
		doxygen
		COMMAND ${DOXYGEN} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
		WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
		COMMENT "Generating documentation"
	)
    IF (STACK_FOUND)
        ADD_DEPENDENCIES(doxygen haskell-doc)
    ENDIF (STACK_FOUND)
    ADD_CUSTOM_TARGET(haskell-doc
        COMMAND cabal configure --builddir=${CMAKE_BINARY_DIR}/opencog/haskell
                      --extra-lib-dirs=${CMAKE_BINARY_DIR}/opencog/haskell
        COMMAND cabal haddock --builddir=${CMAKE_BINARY_DIR}/opencog/haskell --html
                      --haddock-option=-o${CMAKE_CURRENT_BINARY_DIR}/html/haskell
        COMMENT "Generating haskell library documentation..."
        DEPENDS haskell-atomspace-lib
        WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/opencog/haskell/
{'fraction_non_alphanumeric': 0.07957848837209303, 'fraction_numerical': 0.0, 'mean_word_length': 4.117100371747212, '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': '1258490', 'n_tokens_mistral': 1079, 'n_tokens_neox': 977, 'n_words': 189}