<commit_before>cmake_minimum_required(VERSION 2.8)
project(ETVDB)
set(PACKAGE_VERSION 0.5.3)
set(PACKAGE ${CMAKE_PROJECT_NAME})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -std=gnu99")

set(DATADIR "share/etvdb")

# enable Debug build
## build with -D DEBUG=ON
option(DEBUG debug OFF)
if(DEBUG)
	add_definitions(-DDEBUG -g -Wall -O0)
else()
	add_definitions(-DDATA_LANG_FILE_XML="${CMAKE_INSTALL_PREFIX}/${DATADIR}/languages.xml")
endif(DEBUG)

INCLUDE(FindPkgConfig)
pkg_check_modules(CURL REQUIRED libcurl)
pkg_check_modules(EINA REQUIRED eina)

include_directories(${EINA_INCLUDE_DIRS})

add_subdirectory(external)
add_subdirectory(lib)

# install data
file(GLOB data data/*)
install(FILES ${data} DESTINATION ${DATADIR})

# add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
	configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
	add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
		WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
		COMMENT "Generating API documentation with Doxygen" VERBATIM)
endif(DOXYGEN_FOUND)<commit_msg>Buildsystem: Extra Warnings for debug builds<commit_after>cmake_minimum_required(VERSION 2.8)
project(ETVDB)
set(PACKAGE_VERSION 0.5.3)
set(PACKAGE ${CMAKE_PROJECT_NAME})

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -std=gnu99")

set(DATADIR "share/etvdb")

# enable Debug build
## build with -D DEBUG=ON
option(DEBUG debug OFF)
if(DEBUG)
	add_definitions(-DDEBUG -g -Wall -Wextra -O0)
else()
	add_definitions(-DDATA_LANG_FILE_XML="${CMAKE_INSTALL_PREFIX}/${DATADIR}/languages.xml")
endif(DEBUG)

INCLUDE(FindPkgConfig)
pkg_check_modules(CURL REQUIRED libcurl)
pkg_check_modules(EINA REQUIRED eina)

include_directories(${EINA_INCLUDE_DIRS})

add_subdirectory(external)
add_subdirectory(lib)

# install data
file(GLOB data data/*)
install(FILES ${data} DESTINATION ${DATADIR})

# add a target to generate API documentation with Doxygen
find_package(Doxygen)
if(DOXYGEN_FOUND)
	configure_file(${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY)
	add_custom_target(doc ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
		WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
		COMMENT "Generating API documentation with Doxygen" VERBATIM)
endif(DOXYGEN_FOUND)
{'fraction_non_alphanumeric': 0.10972996142306043, 'fraction_numerical': 0.007715387912558937, 'mean_word_length': 8.725, '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': '1820379', 'n_tokens_mistral': 927, 'n_tokens_neox': 867, 'n_words': 159}