<commit_before>MACRO(CPP_WSDL)

add_definitions(-DANSWER_SERVICE_NAME="${PROJECT_NAME}")
#get_property(INCLUDE_DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
#if(${ARGC} GREATER 0)
#	message("Using extra include dir ${ARGN}")
#endif()
add_custom_command(
	TARGET ${PROJECT_NAME}
	POST_BUILD
	#OUTPUT ${CMAKE_BINARY_DIR}/services.xml ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	COMMAND PROJECT_NAME=${PROJECT_NAME} INPUT_PATH='${CMAKE_CURRENT_SOURCE_DIR} ${ARGN}' doxygen ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/Doxyfile 2>&1
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/services.xml.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/services.xml
	COMMAND xsltproc --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/json_payloads.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/documentation.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}_documentation.html
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/wsdl.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.wsdl
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/serviceDescriptor.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/serviceDescription.xml
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/services_js.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/services.js
	# Not yet implemented
	#COMMAND xsltproc --path "${CMAKE_CURRENT_SOURCE_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/wsdl.xslt ${CMAKE_CURRENT_SOURCE_DIR}/xml/namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
)

set(CPP_WSDL_OUTPUT
	${CMAKE_BINARY_DIR}/services.xml
	${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	${CMAKE_BINARY_DIR}/${PROJECT_NAME}.wsdl
	${CMAKE_BINARY_DIR}/services.js
	${CMAKE_BINARY_DIR}/serviceDescription.xml
)

ENDMACRO(CPP_WSDL)<commit_msg>* forgot the dev/null<commit_after>MACRO(CPP_WSDL)

add_definitions(-DANSWER_SERVICE_NAME="${PROJECT_NAME}")
#get_property(INCLUDE_DIRS DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES)
#if(${ARGC} GREATER 0)
#	message("Using extra include dir ${ARGN}")
#endif()
add_custom_command(
	TARGET ${PROJECT_NAME}
	POST_BUILD
	#OUTPUT ${CMAKE_BINARY_DIR}/services.xml ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	COMMAND PROJECT_NAME=${PROJECT_NAME} INPUT_PATH='${CMAKE_CURRENT_SOURCE_DIR} ${ARGN}' doxygen ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/Doxyfile 2>&1 >/dev/null
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/services.xml.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/services.xml
	COMMAND xsltproc --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/json_payloads.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/documentation.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}_documentation.html
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/wsdl.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.wsdl
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/serviceDescriptor.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/serviceDescription.xml
	COMMAND xsltproc --stringparam project_name ${PROJECT_NAME} --path "${CMAKE_BINARY_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/services_js.xslt namespace_web_services.xml > ${CMAKE_BINARY_DIR}/services.js
	# Not yet implemented
	#COMMAND xsltproc --path "${CMAKE_CURRENT_SOURCE_DIR}/xml" ${CMAKE_CURRENT_SOURCE_DIR}/../tools/doxygen_cpp_wsdl/wsdl.xslt ${CMAKE_CURRENT_SOURCE_DIR}/xml/namespace_web_services.xml > ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
)

set(CPP_WSDL_OUTPUT
	${CMAKE_BINARY_DIR}/services.xml
	${CMAKE_BINARY_DIR}/${PROJECT_NAME}.js
	${CMAKE_BINARY_DIR}/${PROJECT_NAME}.wsdl
	${CMAKE_BINARY_DIR}/services.js
	${CMAKE_BINARY_DIR}/serviceDescription.xml
)

ENDMACRO(CPP_WSDL)
{'fraction_non_alphanumeric': 0.13863216266173753, 'fraction_numerical': 0.0012322858903265558, 'mean_word_length': 8.258555133079849, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 42}, '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': '5870696', 'n_tokens_mistral': 1917, 'n_tokens_neox': 1793, 'n_words': 211}