<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"
	xmlns:local="http://theodi.org/ns/func"
	exclude-result-prefixes="#all">

<xsl:template match="/">
	<xsl:variable name="structure" as="element()">
		<xsl:apply-templates select="questionnaire" mode="structure" />
	</xsl:variable>
	<xsl:result-document href="odc_questionnaire.xml" method="xml" indent="yes">
		<xsl:sequence select="$structure" />
	</xsl:result-document>
	<xsl:result-document href="odc_questionnaire.{questionnaire/@jurisdiction}.rb" method="text">
		<xsl:apply-templates select="$structure" mode="syntax" />
	</xsl:result-document>
	<xsl:result-document href="translations/odc.{questionnaire/@jurisdiction}.en.yml" method="text">
		<xsl:apply-templates select="questionnaire" mode="translation" />
	</xsl:result-document>
</xsl:template>

<!-- STRUCTURE -->

<xsl:template match="questionnaire" mode="structure">
	<survey label="Open Data Certificate Questionnaire" 
		default_mandatory="false" 
		dataset_title="dataTitle"
		description="&lt;p>This self-assessment questionnaire generates an open data certificate and badge you can publish to tell people all about this open data. We also use your answers to learn how organisations publish open data.&lt;/p>&lt;p>When you answer these questions it demonstrates your efforts to comply with relevant UK legislation. You should also check which other laws and policies apply to your sector, especially if you’re outside the UK (which these questions don’t cover).&lt;/p>&lt;p>If you need to save or finish an incomplete questionnaire you should register for a free account.&lt;/p>">
		<translations en="default" />
		<section_general label="General Information" display_header="false">
			<xsl:apply-templates select="levels/following-sibling::* except group" mode="structure" />
		</section_general>
		<xsl:apply-templates select="group" mode="structure" />
	</survey>
</xsl:template><commit_msg>change to introductory text<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"
	xmlns:local="http://theodi.org/ns/func"
	exclude-result-prefixes="#all">

<xsl:template match="/">
	<xsl:variable name="structure" as="element()">
		<xsl:apply-templates select="questionnaire" mode="structure" />
	</xsl:variable>
	<xsl:result-document href="odc_questionnaire.xml" method="xml" indent="yes">
		<xsl:sequence select="$structure" />
	</xsl:result-document>
	<xsl:result-document href="odc_questionnaire.{questionnaire/@jurisdiction}.rb" method="text">
		<xsl:apply-templates select="$structure" mode="syntax" />
	</xsl:result-document>
	<xsl:result-document href="translations/odc.{questionnaire/@jurisdiction}.en.yml" method="text">
		<xsl:apply-templates select="questionnaire" mode="translation" />
	</xsl:result-document>
</xsl:template>

<!-- STRUCTURE -->

<xsl:template match="questionnaire" mode="structure">
	<survey label="Open Data Certificate Questionnaire" 
		default_mandatory="false" 
		dataset_title="dataTitle"
		description="&lt;p>This self-assessment questionnaire generates an open data certificate and badge you can publish to tell people all about this open data. We also use your answers to learn how organisations publish open data.&lt;/p>&lt;p>When you answer these questions it demonstrates your efforts to comply with relevant UK legislation. You should also check which other laws and policies apply to your sector, especially if you’re outside the UK (which these questions don’t cover).&lt;/p>&lt;p>&lt;strong>You do not need to answer all the questions to get a certificate.&lt;/strong> Just answer those you can.&lt;/p>">
		<translations en="default" />
		<section_general label="General Information" display_header="false">
			<xsl:apply-templates select="levels/following-sibling::* except group" mode="structure" />
		</section_general>
		<xsl:apply-templates select="group" mode="structure" />
	</survey>
</xsl:template>
{'fraction_non_alphanumeric': 0.15, 'fraction_numerical': 0.007281553398058253, 'mean_word_length': 6.242530755711775, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 2, '>': 69, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, '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': '4189944', 'n_tokens_mistral': 1328, 'n_tokens_neox': 1204, 'n_words': 313}