<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns:xsl	= "http://www.w3.org/1999/XSL/Transform"
    xmlns:xs	= "http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="#all">
	
	<xsl:import-schema schema-location="urn:oasis:names:tc:dita:xsd:topic.xsd"/>
	
    <xsl:template match="/">
    	<section xsl:type="section.class">
    		<title>By using the xsl:type attribute</title>
    		<p>You need to import an xsd schema and add @xsl:type="xxx" to your root element.</p>
    		<p>A great advantage is that you get some degree of validation during writing the script.</p>
    		<p>But finding the origin of a validation error in a more complex script can be extremly annoying.</p>
        </section>
    	
    </xsl:template>

</xsl:stylesheet><commit_msg>Bugfix: class attribute for root element<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0"
	xmlns:xsl	= "http://www.w3.org/1999/XSL/Transform"
    xmlns:xs	= "http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="#all">
	
	<xsl:import-schema>
		<xs:schema>
			<xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd"/>
			<xs:complexType name="section.type">
				<xs:complexContent>
					<xs:extension base="section.class">
						<xs:attribute ref="class" default="- topic/section "/>
					</xs:extension>
				</xs:complexContent>
			</xs:complexType>
		</xs:schema>
	</xsl:import-schema>
	
    <xsl:template match="/">
    	<section xsl:type="section.type">
    		<title>By using the xsl:type attribute</title>
    		<p>You need to import an xsd schema and add @xsl:type="xxx" to your root element.</p>
    		<p>A great advantage is that you get some degree of validation during writing the script.</p>
    		<p>But finding the origin of a validation error in a more complex script can be extremly annoying.</p>
        </section>
    </xsl:template>

</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.15496619864794592, 'fraction_numerical': 0.015600624024960999, 'mean_word_length': 3.727272727272727, 'pattern_counts': {'":': 0, '<': 46, '<?xml version=': 2, '>': 46, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '2543482', 'n_tokens_mistral': 711, 'n_tokens_neox': 643, 'n_words': 160}