<commit_before><xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:c="http://cnx.rice.edu/cnxml"
  xmlns:m="http://www.w3.org/1998/Math/MathML"
  xmlns:mml="http://www.w3.org/1998/Math/MathML"
  xmlns:md="http://cnx.rice.edu/mdml/0.4"
  xmlns:qml="http://cnx.rice.edu/qml/1.0"
  xmlns:mod="http://cnx.rice.edu/#moduleIds"
  xmlns:bib="http://bibtexml.sf.net/"
  
  xmlns:data="http://dev.w3.org/html5/spec/#custom"
  exclude-result-prefixes="m mml"
  >

<xsl:output omit-xml-declaration="yes" encoding="ASCII"/>

<!--
Converts HTML5 (from CNXML to HTML5) to Aloha simplified HTML5.
This simplified Aloha HTML5 fits more the Aloha structure and editing.

Log:
2013-07-19: Remove sections
-->

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

<!-- remove div sections -->
<xsl:template match="div[@class='section']">
  <xsl:apply-templates/>
</xsl:template>

<!-- remove classes from strong and emphasis -->
<xsl:template match="strong|em|table|body">
  <xsl:element name="{local-name()}">
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<!-- Convert headers into sections -->
<xsl:template match="x:section">
  <xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet><commit_msg>correct namespace<commit_after><xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:c="http://cnx.rice.edu/cnxml"
  xmlns:m="http://www.w3.org/1998/Math/MathML"
  xmlns:mml="http://www.w3.org/1998/Math/MathML"
  xmlns:md="http://cnx.rice.edu/mdml/0.4"
  xmlns:qml="http://cnx.rice.edu/qml/1.0"
  xmlns:mod="http://cnx.rice.edu/#moduleIds"
  xmlns:bib="http://bibtexml.sf.net/"
  
  xmlns:data="http://dev.w3.org/html5/spec/#custom"
  exclude-result-prefixes="m mml"
  >

<xsl:output omit-xml-declaration="yes" encoding="ASCII"/>

<!--
Converts HTML5 (from CNXML to HTML5) to Aloha simplified HTML5.
This simplified Aloha HTML5 fits more the Aloha structure and editing.

Log:
2013-07-19: Remove sections
-->

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

<!-- remove div sections -->
<xsl:template match="div[@class='section']">
  <xsl:apply-templates/>
</xsl:template>

<!-- remove classes from strong and emphasis -->
<xsl:template match="strong|em|table|body">
  <xsl:element name="{local-name()}">
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<!-- Convert headers into sections -->
<xsl:template match="section">
  <xsl:apply-templates/>
</xsl:template>

</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.212406015037594, 'fraction_numerical': 0.02631578947368421, 'mean_word_length': 4.386639676113361, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 51, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 24}, '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': '811703', 'n_tokens_mistral': 1081, 'n_tokens_neox': 988, 'n_words': 160}