<commit_before><commit_msg>XSLT to convert <em> elements<commit_after><?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 version="1.0">
<!-- XSLT stylesheet to convert grammar.xml <em> elements

usage:

java -jar saxon8.jar grammar.xml convert.xsl

-->
 <xsl:output method="xml" encoding="utf-8" indent="yes"/>
 
 <xsl:template match="@*|node()">
    <xsl:copy>
      <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
  </xsl:template>

 <xsl:template match="//message/em">
 <xsl:element name="suggestion">
 <xsl:value-of select="./text()"/>
 </xsl:element>
</xsl:template>

 <xsl:template match="//example/em">
 <xsl:element name="marker">
 <xsl:value-of select="./text()"/>
 </xsl:element>
</xsl:template>

</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.22409326424870465, 'fraction_numerical': 0.014248704663212436, 'mean_word_length': 4.900763358778626, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 1, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 5}, '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': '5510361', 'n_tokens_mistral': 304, 'n_tokens_neox': 269, 'n_words': 50}