<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:col="http://apache.org/cocoon/lenya/collection/1.0"
  xmlns:i="http://apache.org/cocoon/include/1.0">
  
  <xsl:param name="pub"/>
  <xsl:param name="area"/>
  <xsl:param name="uuid"/>
  <xsl:param name="language"/>
  
  <xsl:template match="col:collection">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:choose>
        <xsl:when test="@type = 'children'">
          <xsl:variable name="allLanguages">
            <xsl:choose>
              <xsl:when test="@allLanguages"><xsl:value-of select="@allLanguages"/></xsl:when>
              <xsl:otherwise>false</xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <i:include src="cocoon://modules/collection/collectionWithChildren/{$allLanguages}/{$pub}/{$area}/{$uuid}/{$language}.xml" select="*/*"/>
        </xsl:when>
        <xsl:when test="@type = 'link'">
          <i:include src="{@href}" select="*/*"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:copy-of select="col:document"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:copy>
  </xsl:template>
  <commit_msg>[minor change] removed unnecessary select attribute from include element.<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
  xmlns:col="http://apache.org/cocoon/lenya/collection/1.0"
  xmlns:i="http://apache.org/cocoon/include/1.0">
  
  <xsl:param name="pub"/>
  <xsl:param name="area"/>
  <xsl:param name="uuid"/>
  <xsl:param name="language"/>
  
  <xsl:template match="col:collection">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:choose>
        <xsl:when test="@type = 'children'">
          <xsl:variable name="allLanguages">
            <xsl:choose>
              <xsl:when test="@allLanguages"><xsl:value-of select="@allLanguages"/></xsl:when>
              <xsl:otherwise>false</xsl:otherwise>
            </xsl:choose>
          </xsl:variable>
          <i:include src="cocoon://modules/collection/collectionWithChildren/{$allLanguages}/{$pub}/{$area}/{$uuid}/{$language}.xml"/>
        </xsl:when>
        <xsl:when test="@type = 'link'">
          <i:include src="{@href}" select="*/*"/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:copy-of select="col:document"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:copy>
  </xsl:template>
  
{'fraction_non_alphanumeric': 0.21139189731247493, 'fraction_numerical': 0.011231448054552748, 'mean_word_length': 2.9337539432176656, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 2, '>': 65, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '2642820', 'n_tokens_mistral': 923, 'n_tokens_neox': 813, 'n_words': 111}