<commit_before><?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" version="1.0" encoding="UTF-8"
    doctype-public="-//W3C//DTD XHTML 1.1//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    indent="yes"/>

  <!-- ##################### Match Rules ####################### -->

  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>


  <!-- ELEMENT object -->

  <xsl:template match="object">
    <xsl:text disable-output-escaping="yes"><![CDATA[<object]]></xsl:text>
    <xsl:for-each select="@*">
      <![CDATA[ ]]><xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</object>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT property -->

  <xsl:template match="property">
    <xsl:choose>
    <xsl:when test="@name='productVersionMajor'">
       <property name="productVersionMajor">
         <int><xsl:value-of select="substring($version,1,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionMinor'">
       <property name="productVersionMinor">
         <int><xsl:value-of select="substring($version,3,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionRevision'">
       <property name="productVersionRevision">
         <int><xsl:value-of select="substring($version,5,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionSubRevision'">
       <property name="productVersionSubRevision">
         <int><xsl:value-of select="substring($version,7,1)"/></int>
       </property>
    </xsl:when>
    <xsl:otherwise>
      <xsl:copy>
        <xsl:copy-of select="@*"/>
        <xsl:apply-templates/>
      </xsl:copy>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT restorationObjects -->

  <xsl:template match="restorationObjects">
    <xsl:text disable-output-escaping="yes"><![CDATA[<restorationObjects]]></xsl:text>
    <xsl:for-each select="@*">
      <![CDATA[ ]]><xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</restorationObjects>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT string -->

  <xsl:template match="string">
    <string><xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>![CDATA[<xsl:value-of select="." disable-output-escaping="yes"/>]]<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text></string>
  </xsl:template>


  <!-- ELEMENT versionID -->

  <xsl:template match="versionID">
    <xsl:text disable-output-escaping="yes"><![CDATA[<versionID]]></xsl:text>
    <xsl:for-each select="@*">
      <![CDATA[ ]]><xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</versionID>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- otherwise -->

  <xsl:template match="*">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet><commit_msg>- added escaping for space characters (was ok o...<commit_after><?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  <xsl:output method="xml" version="1.0" encoding="UTF-8"
    doctype-public="-//W3C//DTD XHTML 1.1//EN"
    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
    indent="yes"/>

  <!-- ##################### Match Rules ####################### -->

  <xsl:template match="/">
    <xsl:apply-templates/>
  </xsl:template>


  <!-- ELEMENT object -->

  <xsl:template match="object">
    <xsl:text disable-output-escaping="yes"><![CDATA[<object]]></xsl:text>
    <xsl:for-each select="@*">
      <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text>
      <xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</object>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT property -->

  <xsl:template match="property">
    <xsl:choose>
    <xsl:when test="@name='productVersionMajor'">
       <property name="productVersionMajor">
         <int><xsl:value-of select="substring($version,1,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionMinor'">
       <property name="productVersionMinor">
         <int><xsl:value-of select="substring($version,3,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionRevision'">
       <property name="productVersionRevision">
         <int><xsl:value-of select="substring($version,5,1)"/></int>
       </property>
    </xsl:when>
    <xsl:when test="@name='productVersionSubRevision'">
       <property name="productVersionSubRevision">
         <int><xsl:value-of select="substring($version,7,1)"/></int>
       </property>
    </xsl:when>
    <xsl:otherwise>
      <xsl:copy>
        <xsl:copy-of select="@*"/>
        <xsl:apply-templates/>
      </xsl:copy>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT restorationObjects -->

  <xsl:template match="restorationObjects">
    <xsl:text disable-output-escaping="yes"><![CDATA[<restorationObjects]]></xsl:text>
    <xsl:for-each select="@*">
      <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text>
      <xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</restorationObjects>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- ELEMENT string -->

  <xsl:template match="string">
    <string><xsl:text disable-output-escaping="yes"><![CDATA[<]]></xsl:text>![CDATA[<xsl:value-of select="." disable-output-escaping="yes"/>]]<xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text></string>
  </xsl:template>


  <!-- ELEMENT versionID -->

  <xsl:template match="versionID">
    <xsl:text disable-output-escaping="yes"><![CDATA[<versionID]]></xsl:text>
    <xsl:for-each select="@*">
      <xsl:text disable-output-escaping="yes"><![CDATA[ ]]></xsl:text>
      <xsl:value-of select="name()"/>
      <xsl:text disable-output-escaping="yes"><![CDATA[="]]></xsl:text><xsl:value-of select="."/><xsl:text disable-output-escaping="yes"><![CDATA["]]></xsl:text>
    </xsl:for-each>
    <xsl:choose>
    <xsl:when test=".!=''">
      <xsl:text disable-output-escaping="yes"><![CDATA[>]]></xsl:text>
      <xsl:apply-templates/>
      <xsl:text disable-output-escaping="yes"><![CDATA[</versionID>]]></xsl:text>
    </xsl:when>
    <xsl:otherwise>
      <xsl:text disable-output-escaping="yes"><![CDATA[/>]]></xsl:text>
    </xsl:otherwise>
    </xsl:choose>
  </xsl:template>


  <!-- otherwise -->

  <xsl:template match="*">
    <xsl:copy>
      <xsl:copy-of select="@*"/>
      <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>

</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.25144919610631083, 'fraction_numerical': 0.005906157716285683, 'mean_word_length': 3.942702702702703, 'pattern_counts': {'":': 0, '<': 353, '<?xml version=': 2, '>': 359, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 6}, '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': '84224', 'n_tokens_mistral': 3553, 'n_tokens_neox': 3093, 'n_words': 373}