<commit_before><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              xmlns:atom="http://www.w3.org/2005/Atom"
              version="1.0">
  <xsl:output method="xml" version="1.0" encoding="UTF-8"
              indent="no"
              media-type="application/rss+xml" />

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

  <xsl:template match="/atom:feed">
    <rss version="2.0">
      <channel>
        <xsl:apply-templates select="node()"/>
        <xsl:if test="not(atom:summary)">
          <description>
            <xsl:value-of select="atom:title"/>
          </description>
        </xsl:if>
      </channel>
    </rss>
  </xsl:template>

  <xsl:template match="atom:feed">
    <channel>
      <xsl:apply-templates select="node()"/>
    </channel>
  </xsl:template>

  <xsl:template match="atom:title">
    <title>
      <xsl:apply-templates select="node()"/>
    </title>
  </xsl:template>

  <xsl:template match="atom:link[@rel='self']">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

  <xsl:template match="atom:link[@rel!='alternate']">
    <link>
      <xsl:value-of select="@href"/>
    </link>
  </xsl:template>

  <xsl:template match="atom:category">
    <category>
      <xsl:value-of select="@term"/>
    </category>
  </xsl:template>

  <xsl:template match="atom:summary">
    <description>
      <xsl:apply-templates select="node()"/>
    </description>
  </xsl:template>

  <xsl:template match="atom:entry">
    <item>
      <xsl:apply-templates select="node()"/>
    </item>
  </xsl:template>

  <xsl:template match="atom:published">
    <pubDate>
      <xsl:apply-templates select="node()"/>
    </pubDate>
  </xsl:template>

  <xsl:template match="atom:entry/atom:id">
    <guid>
      <xsl:apply-templates select="node()"/>
    </guid>
  </xsl:template><commit_msg>tidy up that rss transcoder<commit_after><?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
              xmlns:atom="http://www.w3.org/2005/Atom"
              version="1.0">
  <xsl:output method="xml" version="1.0" encoding="UTF-8"
              indent="no"
              media-type="application/rss+xml" />

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

  <xsl:template match="/atom:feed">
    <rss version="2.0">
      <channel>
        <xsl:apply-templates select="node()"/>
        <xsl:if test="not(atom:summary)">
          <description><xsl:value-of select="atom:title"/></description>
        </xsl:if>
      </channel>
    </rss>
  </xsl:template>

  <xsl:template match="atom:feed">
    <channel><xsl:apply-templates select="node()"/></channel>
  </xsl:template>

  <xsl:template match="atom:title">
    <title><xsl:apply-templates select="node()"/></title>
  </xsl:template>

  <xsl:template match="atom:link[@rel='self']">
    <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy>
  </xsl:template>

  <xsl:template match="atom:link[1]">
    <link><xsl:value-of select="@href"/></link>
  </xsl:template>

  <xsl:template match="atom:category">
    <category><xsl:value-of select="@term"/></category>
  </xsl:template>

  <xsl:template match="atom:summary">
    <description><xsl:apply-templates select="node()"/></description>
  </xsl:template>

  <xsl:template match="atom:entry">
    <item><xsl:apply-templates select="node()"/></item>
  </xsl:template>

  <xsl:template match="atom:published">
    <pubDate><xsl:apply-templates select="node()"/></pubDate>
  </xsl:template>

  <xsl:template match="atom:entry/atom:id">
    <guid><xsl:apply-templates select="node()"/></guid>
  </xsl:template>
{'fraction_non_alphanumeric': 0.21541246444272044, 'fraction_numerical': 0.01060253426428756, 'mean_word_length': 3.3266219239373602, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 2, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '5082287', 'n_tokens_mistral': 1423, 'n_tokens_neox': 1287, 'n_words': 181}