<commit_before><xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:d="urn:jboss:domain:1.3"
                xmlns:l="urn:jboss:domain:logging:1.1"
                exclude-result-prefixes="l d xmlns"
        >

    <!--
      An XSLT style sheet which will enable trace logging for the test suite.
      This can be enabled via -Dtrace=org.jboss.as.category1,org.jboss.as.category2
    -->
    <xsl:param name="trace" />

    <xsl:template name="output-loggers">
        <xsl:param name="list" />
        <xsl:variable name="first" select="substring-before(concat($list,','), ',')" />
        <xsl:variable name="remaining" select="substring-after($list, ',')" />
        <xsl:element name="logger" namespace="urn:jboss:domain:logging:1.1">
            <xsl:attribute name="category" >
                <xsl:value-of select="$first"></xsl:value-of>
            </xsl:attribute>
            <xsl:element name="level" namespace="urn:jboss:domain:logging:1.1" >
                <xsl:attribute name="name" >
                    <xsl:value-of select="'TRACE'"/>
                </xsl:attribute>
            </xsl:element>
        </xsl:element>
        <xsl:if test="string-length($remaining) > 0">
            <xsl:call-template name="output-loggers">
                <xsl:with-param name="list" select="$remaining" />
            </xsl:call-template>
        </xsl:if>
    </xsl:template>


    <xsl:template match="//l:subsystem/l:console-handler">
        <xsl:choose>
            <xsl:when test="$trace='none'">
                <xsl:copy>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy copy-namespaces="false" inherit-namespaces="false">
                    <xsl:attribute name="name">
                        <xsl:value-of select="'CONSOLE'"/>
                    </xsl:attribute>
                    <level name="TRACE"/>
                    <xsl:apply-templates select="//l:subsystem/l:console-handler/l:formatter"/>
                </xsl:copy>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="//l:subsystem/l:periodic-rotating-file-handler" use-when="$trace">
        <xsl:choose>
            <xsl:when test="$trace='none'">
                <xsl:copy>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy copy-namespaces="false" inherit-namespaces="false">
                    <xsl:attribute name="name">
                        <xsl:value-of select="'FILE'"/>
                    </xsl:attribute>
                    <level name="TRACE"/>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
                <xsl:call-template name="output-loggers">
                    <xsl:with-param name="list" select="$trace" />
                </xsl:call-template>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>
<commit_msg>Remove copy-namespaces and inherit-namespaces XSLT params, to fix JBPAPP-9057<commit_after><xsl:stylesheet version="2.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:d="urn:jboss:domain:1.3"
                xmlns:l="urn:jboss:domain:logging:1.1"
                exclude-result-prefixes="l d xmlns"
        >

    <!--
      An XSLT style sheet which will enable trace logging for the test suite.
      This can be enabled via -Dtrace=org.jboss.as.category1,org.jboss.as.category2
    -->
    <xsl:param name="trace" />

    <xsl:template name="output-loggers">
        <xsl:param name="list" />
        <xsl:variable name="first" select="substring-before(concat($list,','), ',')" />
        <xsl:variable name="remaining" select="substring-after($list, ',')" />
        <xsl:element name="logger" namespace="urn:jboss:domain:logging:1.1">
            <xsl:attribute name="category" >
                <xsl:value-of select="$first"></xsl:value-of>
            </xsl:attribute>
            <xsl:element name="level" namespace="urn:jboss:domain:logging:1.1" >
                <xsl:attribute name="name" >
                    <xsl:value-of select="'TRACE'"/>
                </xsl:attribute>
            </xsl:element>
        </xsl:element>
        <xsl:if test="string-length($remaining) > 0">
            <xsl:call-template name="output-loggers">
                <xsl:with-param name="list" select="$remaining" />
            </xsl:call-template>
        </xsl:if>
    </xsl:template>


    <xsl:template match="//l:subsystem/l:console-handler">
        <xsl:choose>
            <xsl:when test="$trace='none'">
                <xsl:copy>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy>
                    <xsl:attribute name="name">
                        <xsl:value-of select="'CONSOLE'"/>
                    </xsl:attribute>
                    <level name="TRACE"/>
                    <xsl:apply-templates select="//l:subsystem/l:console-handler/l:formatter"/>
                </xsl:copy>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="//l:subsystem/l:periodic-rotating-file-handler" use-when="$trace">
        <xsl:choose>
            <xsl:when test="$trace='none'">
                <xsl:copy>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
            </xsl:when>
            <xsl:otherwise>
                <xsl:copy>
                    <xsl:attribute name="name">
                        <xsl:value-of select="'FILE'"/>
                    </xsl:attribute>
                    <level name="TRACE"/>
                    <xsl:apply-templates select="node()|@*"/>
                </xsl:copy>
                <xsl:call-template name="output-loggers">
                    <xsl:with-param name="list" select="$trace" />
                </xsl:call-template>
            </xsl:otherwise>
        </xsl:choose>
    </xsl:template>

    <xsl:template match="node()|@*">
        <xsl:copy>
            <xsl:apply-templates select="node()|@*"/>
        </xsl:copy>
    </xsl:template>

</xsl:stylesheet>

{'fraction_non_alphanumeric': 0.168141592920354, 'fraction_numerical': 0.006103143118706134, 'mean_word_length': 1.7426778242677825, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 143, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 8}, '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': '367044', 'n_tokens_mistral': 2123, 'n_tokens_neox': 1858, 'n_words': 278}