<commit_before>#
# This file is part of libfreespace.
# Copyright (c) 2009-2013 Hillcrest Laboratories, Inc.
# libfreespace is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
#

cmake_minimum_required (VERSION 2.6)

include(FindDoxygen)
if (NOT DOXYGEN)
    message(STATUS "Doxygen not found - Reference manual cannot be created")
    return()
ENDIF ()

set(LIBFREEPACE_DOCS_ENABLED ON CACHE BOOL "Enable doxygen docs as a build target")
if (NOT LIBFREEPACE_DOCS_ENABLED)
	return()
endif()
set(LIBFREEPACE_DOCS_INTERNAL OFF CACHE BOOL "Generate doxygen for src files (in addition to API)")

set(DOXYGEN_SRC "${PROJECT_BINARY_DIR}/doc/mainpage.h" "${PROJECT_SOURCE_DIR}/include/" "${PROJECT_BINARY_DIR}/include/")

if (LIBFREEPACE_DOCS_INTERNAL)
	set(DOXYGEN_SRC ${DOXYGEN_SRC} "${PROJECT_SOURCE_DIR}/linux/" "${PROJECT_SOURCE_DIR}/win32/")
endif()


# convert to a space seperated string
string(REPLACE ";" " " DOXYGEN_SRC "${DOXYGEN_SRC}")


configure_file("${PROJECT_SOURCE_DIR}/doc/Doxyfile.in" "${PROJECT_BINARY_DIR}/doc/Doxyfile")
configure_file("${PROJECT_SOURCE_DIR}/doc/mainpage.h.in" "${PROJECT_BINARY_DIR}/doc/mainpage.h")

add_custom_target(libfreespace-docs
              ${DOXYGEN}
              DEPENDS "${PROJECT_SOURCE_DIR}/doc/Doxyfile.in" "${PROJECT_SOURCE_DIR}/doc/mainpage.h.in"
          	  WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/doc/")

<commit_msg>Fix some typos<commit_after>#
# This file is part of libfreespace.
# Copyright (c) 2009-2013 Hillcrest Laboratories, Inc.
# libfreespace is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
#
#

cmake_minimum_required (VERSION 2.6)

include(FindDoxygen)
if (NOT DOXYGEN)
    message(STATUS "Doxygen not found - Reference manual cannot be created")
    return()
ENDIF ()

set(LIBFREESPACE_DOCS_ENABLED ON CACHE BOOL "Enable doxygen docs as a build target")
if (NOT LIBFREESPACE_DOCS_ENABLED)
	return()
endif()
set(LIBFREESPACE_DOCS_INTERNAL OFF CACHE BOOL "Generate doxygen for src files (in addition to API)")

set(DOXYGEN_SRC "${PROJECT_BINARY_DIR}/doc/mainpage.h" "${PROJECT_SOURCE_DIR}/include/" "${PROJECT_BINARY_DIR}/include/")

if (LIBFREESPACE_DOCS_INTERNAL)
	set(DOXYGEN_SRC ${DOXYGEN_SRC} "${PROJECT_SOURCE_DIR}/linux/" "${PROJECT_SOURCE_DIR}/win32/")
endif()


# convert to a space seperated string
string(REPLACE ";" " " DOXYGEN_SRC "${DOXYGEN_SRC}")


configure_file("${PROJECT_SOURCE_DIR}/doc/Doxyfile.in" "${PROJECT_BINARY_DIR}/doc/Doxyfile")
configure_file("${PROJECT_SOURCE_DIR}/doc/mainpage.h.in" "${PROJECT_BINARY_DIR}/doc/mainpage.h")

add_custom_target(libfreespace-docs
              ${DOXYGEN}
              DEPENDS "${PROJECT_SOURCE_DIR}/doc/Doxyfile.in" "${PROJECT_SOURCE_DIR}/doc/mainpage.h.in"
          	  WORKING_DIRECTORY "${PROJECT_BINARY_DIR}/doc/")


{'fraction_non_alphanumeric': 0.10031964593066142, 'fraction_numerical': 0.012294074256208508, 'mean_word_length': 5.044576523031203, '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': '187297', 'n_tokens_mistral': 1345, 'n_tokens_neox': 1282, 'n_words': 416}