<commit_before><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes"/>
<xsl:template name="capitalize">
	<xsl:param name="value"/>
	<xsl:variable name="normalized" select="translate($value, '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ')"/>
	<xsl:value-of select="$normalized"/>
</xsl:template>

<xsl:template match="/resource-agent">
  &lt;define name="<xsl:call-template name="capitalize"><xsl:with-param name="value" select="@name"/></xsl:call-template>"&gt;
    &lt;element name="<xsl:value-of select="@name"/>"&gt;
      &lt;!-- <xsl:value-of select="normalize-space(shortdesc)"/> --&gt;
      &lt;choice&gt;
      &lt;group&gt;
        &lt;!-- rgmanager specific stuff --&gt;
        &lt;attribute name="ref"/&gt;
      &lt;/group&gt;
      &lt;group&gt;<xsl:for-each select="parameters/parameter">
		<xsl:choose>
			<xsl:when test="@required = 1 or @primary = 1">
        &lt;attribute name="<xsl:value-of select="@name"/>"/&gt;</xsl:when>
			<xsl:otherwise>
        &lt;optional&gt;
          &lt;attribute name="<xsl:value-of select="@name"/>"/&gt;
        &lt;/optional&gt;</xsl:otherwise>
		</xsl:choose>
	</xsl:for-each>
      &lt;/group&gt;
      &lt;/choice&gt;
      &lt;optional&gt;
        &lt;attribute name="__independent_subtree"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;attribute name="__enforce_timeouts"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;ref name="CHILDREN"/&gt;
      &lt;/optional&gt;
    &lt;/element&gt;
  &lt;/define&gt;

</xsl:template>
</xsl:stylesheet><commit_msg>config: Update config schema<commit_after><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="yes"/>
<xsl:template name="capitalize">
	<xsl:param name="value"/>
	<xsl:variable name="normalized" select="translate($value, '_abcdefghijklmnopqrstuvwrxyz', '-ABCDEFGHIJKLMNOPQRSTUVWRXYZ')"/>
	<xsl:value-of select="$normalized"/>
</xsl:template>

<xsl:template match="/resource-agent">
  &lt;define name="<xsl:call-template name="capitalize"><xsl:with-param name="value" select="@name"/></xsl:call-template>"&gt;
    &lt;element name="<xsl:value-of select="@name"/>"&gt;
      &lt;!-- <xsl:value-of select="normalize-space(shortdesc)"/> --&gt;
      &lt;choice&gt;
      &lt;group&gt;
        &lt;!-- rgmanager specific stuff --&gt;
        &lt;attribute name="ref"/&gt;
      &lt;/group&gt;
      &lt;group&gt;<xsl:for-each select="parameters/parameter">
		<xsl:choose>
			<xsl:when test="@required = 1 or @primary = 1">
        &lt;attribute name="<xsl:value-of select="@name"/>"/&gt;</xsl:when>
			<xsl:otherwise>
        &lt;optional&gt;
          &lt;attribute name="<xsl:value-of select="@name"/>"/&gt;
        &lt;/optional&gt;</xsl:otherwise>
		</xsl:choose>
	</xsl:for-each>
      &lt;/group&gt;
      &lt;/choice&gt;
      &lt;optional&gt;
        &lt;attribute name="__independent_subtree"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;attribute name="__enforce_timeouts"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;attribute name="__max_failures"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;attribute name="__failure_expire_time"/&gt;
      &lt;/optional&gt;
      &lt;optional&gt;
        &lt;ref name="CHILDREN"/&gt;
      &lt;/optional&gt;
    &lt;/element&gt;
  &lt;/define&gt;

</xsl:template>
</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.21169354838709678, 'fraction_numerical': 0.005184331797235023, 'mean_word_length': 3.9332386363636362, 'pattern_counts': {'":': 0, '<': 53, '<?xml version=': 0, '>': 53, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '2251352', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1245, 'n_words': 170}