<commit_before><?xml version="1.0" encoding="UTF-8"?>

<project default="html-chunked">

	<import file="../../util/hr-xsl.xml"/>

	<!-- For some reason, trying to use the chunk.xsl stylesheet fails with SAXON 8.7.3, so we use xsltproc instead. -->
	<target name="html-chunked" depends="validate">
		<delete>
			<fileset dir="../html" includes="*.html"/>
		</delete>
		<exec executable="xsltproc">  
			<arg line="-o ../html/ ../../lib/docbook-xsl-1.70.1/html/chunk.xsl documentation.xml"/>  
		</exec>  
	</target>

	<!-- This target works fine with the bundled SAXON processor, and the output looks slightly better than docbook2html. -->
	<target name="html-nochunks" depends="validate">
		<translate-docbook in="documentation.xml" out="../documentation.html" format="html"/>
	</target>
	
	<target name="validate">
		<exec executable="xmllint" failonerror="true">
			<arg line="--noout --dtdvalid ../../lib/docbook-xml-4.4/docbookx.dtd documentation.xml"/>
		</exec>
	</target>

</project><commit_msg>The html-chunked target now fails on error<commit_after><?xml version="1.0" encoding="UTF-8"?>

<project default="html-chunked">

	<import file="../../util/hr-xsl.xml"/>

	<!-- For some reason, trying to use the chunk.xsl stylesheet fails with SAXON 8.7.3, so we use xsltproc instead. -->
	<target name="html-chunked" depends="validate">
		<delete>
			<fileset dir="../html" includes="*.html"/>
		</delete>
		<exec executable="xsltproc" failOnError="true">  
			<arg line="-o ../html/ ../../lib/docbook-xsl-1.70.1/html/chunk.xsl documentation.xml"/>  
		</exec>  
	</target>

	<!-- This target works fine with the bundled SAXON processor, and the output looks slightly better than docbook2html. -->
	<target name="html-nochunks" depends="validate">
		<translate-docbook in="documentation.xml" out="../documentation.html" format="html"/>
	</target>
	
	<target name="validate">
		<exec executable="xmllint" failOnError="true">
			<arg line="--noout --dtdvalid ../../lib/docbook-xml-4.4/docbookx.dtd documentation.xml"/>
		</exec>
	</target>

</project>
{'fraction_non_alphanumeric': 0.1949317738791423, 'fraction_numerical': 0.012670565302144249, 'mean_word_length': 3.6979405034324944, 'pattern_counts': {'":': 0, '<': 47, '<?xml version=': 2, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 14}, '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': '4360646', 'n_tokens_mistral': 733, 'n_tokens_neox': 662, 'n_words': 166}