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

<!--
    Document   : cocoon-xconf.xsl
    Created on : 6. März 2003, 11:39
    Author     : andreas
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="targets">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
    
    <cocoon id="lenya">
      <filename>${context-root}/WEB-INF/logs/lenya.log</filename>
      <format type="cocoon">
        %7.7{priority} %{time}   [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
      </format>
      <append>false</append>
    </cocoon>
    
  </xsl:copy>
</xsl:template>


<xsl:template match="categories">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
    
    <category name="lenya" log-level="LENYA">
      <log-target id-ref="lenya"/>
      <log-target id-ref="error"/>
    </category>
    
  </xsl:copy>
</xsl:template>


<xsl:template match="category">
  <category name="@name" log-level="INFO">
    <xsl:apply-templates/>
  </category>
</xsl:template>


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

   
</xsl:stylesheet> 
<commit_msg>attribute value template bugfix<commit_after><?xml version="1.0" encoding="UTF-8" ?>

<!--
    Document   : cocoon-xconf.xsl
    Created on : 6. März 2003, 11:39
    Author     : andreas
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="targets">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
    
    <cocoon id="lenya">
      <filename>${context-root}/WEB-INF/logs/lenya.log</filename>
      <format type="cocoon">
        %7.7{priority} %{time}   [%{category}] (%{uri}) %{thread}/%{class:short}: %{message}\n%{throwable}
      </format>
      <append>false</append>
    </cocoon>
    
  </xsl:copy>
</xsl:template>


<xsl:template match="categories">
  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
    
    <category name="lenya" log-level="LENYA">
      <log-target id-ref="lenya"/>
      <log-target id-ref="error"/>
    </category>
    
  </xsl:copy>
</xsl:template>


<xsl:template match="category">
  <category name="{@name}" log-level="INFO">
    <xsl:apply-templates/>
  </category>
</xsl:template>


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

   
</xsl:stylesheet> 

{'fraction_non_alphanumeric': 0.21184510250569477, 'fraction_numerical': 0.015945330296127564, 'mean_word_length': 3.1825396825396823, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 2, '>': 79, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 4}, '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': '2214670', 'n_tokens_mistral': 1048, 'n_tokens_neox': 944, 'n_words': 153}