<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!--
 - Desc:    This file is part of the ecromedos Document Preparation System
 - Date:    2009/11/15
 - Author:  <NAME> (<EMAIL>)
 - License: GNU General Public License, version 2
 - URL:     http://www.ecromedos.net
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--
  - Cite an element from the bibliography
-->
<xsl:template match="cite">
	<xsl:variable name="idref" select="@idref"/>
	<xsl:text>\cite{</xsl:text>
		<xsl:value-of select="@idref"/>
	<xsl:text>}</xsl:text>
</xsl:template>

<!--
  - Set the bibliography
-->
<xsl:template match="biblio">
	<xsl:text>\setcounter{footnote}{0}&#x0a;</xsl:text>
	<xsl:text>\begin{thebibliography}{</xsl:text>
	<xsl:choose>
		<xsl:when test="@number='no'">
			<xsl:apply-templates select="bibitem[1]" mode="longest"/>
		</xsl:when>
		<xsl:otherwise>
			<xsl:text>9</xsl:text>
			<xsl:value-of select="count(bibitem)"/>
			<xsl:text>9</xsl:text>
		</xsl:otherwise>
	</xsl:choose>
	<xsl:text>}&#x0a;</xsl:text>
	<xsl:choose>
		<xsl:when test="@number='no'">
			<xsl:apply-templates select="bibitem" mode="manual"/>
		</xsl:when>
		<xsl:otherwise><commit_msg>Add buffer of two chars to width of labels in bibliography<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!--
 - Desc:    This file is part of the ecromedos Document Preparation System
 - Date:    2009/11/15
 - Author:  <NAME> (<EMAIL>)
 - License: GNU General Public License, version 2
 - URL:     http://www.ecromedos.net
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<!--
  - Cite an element from the bibliography
-->
<xsl:template match="cite">
	<xsl:variable name="idref" select="@idref"/>
	<xsl:text>\cite{</xsl:text>
		<xsl:value-of select="@idref"/>
	<xsl:text>}</xsl:text>
</xsl:template>

<!--
  - Set the bibliography
-->
<xsl:template match="biblio">
	<xsl:text>\setcounter{footnote}{0}&#x0a;</xsl:text>
	<xsl:text>\begin{thebibliography}{</xsl:text>
	<xsl:choose>
		<xsl:when test="@number='no'">
			<xsl:text>9</xsl:text>
			<xsl:apply-templates select="bibitem[1]" mode="longest"/>
			<xsl:text>9</xsl:text>
		</xsl:when>
		<xsl:otherwise>
			<xsl:text>9</xsl:text>
			<xsl:value-of select="count(bibitem)"/>
			<xsl:text>9</xsl:text>
		</xsl:otherwise>
	</xsl:choose>
	<xsl:text>}&#x0a;</xsl:text>
	<xsl:choose>
		<xsl:when test="@number='no'">
			<xsl:apply-templates select="bibitem" mode="manual"/>
		</xsl:when>
		<xsl:otherwise>
{'fraction_non_alphanumeric': 0.2199919710959454, 'fraction_numerical': 0.020875150541951024, 'mean_word_length': 4.650793650793651, 'pattern_counts': {'":': 0, '<': 85, '<?xml version=': 2, '>': 85, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 4}, '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': '5079688', 'n_tokens_mistral': 1110, 'n_tokens_neox': 934, 'n_words': 165}