<commit_before><?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright SemanticBits, Northwestern University and Akaza Research Distributed 
	under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/caaers/LICENSE.txt 
	for details. -->
<xsl:stylesheet version="2.0"
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="UTF-8" indent="yes" />
	
	<xsl:template match="/">
		<xsl:call-template name="e2b" />
	</xsl:template>
	
	<xsl:variable name="map" select="document('lookup.xml')" />

	<xsl:template name="lookup">
		<xsl:param name="_map" />
		<xsl:param name="_code" />
		<xsl:value-of select="$_map//code[text() = $_code]/parent::node()/value" />
	</xsl:template>
	
	<xsl:template name="ConvertOutcomeToCode">
		<xsl:param name="code" />	
		<reactionoutcome>
			<xsl:call-template name="lookup">
						<xsl:with-param name="_map" select="$map//aeoutcomes" />
						<xsl:with-param name="_code" select="$code" />
			</xsl:call-template>
		</reactionoutcome>
	</xsl:template>

	<xsl:template name="ConvertPresentStatusToCode">
		<xsl:param name="code" />
		<presentstatus>
			<xsl:call-template name="lookup">
						<xsl:with-param name="_map" select="$map//aee2bpresentstatuses" />
						<xsl:with-param name="_code" select="$code" />
			</xsl:call-template>
		</presentstatus>
	</xsl:template>
	
	<xsl:template name="ConvertRetreatedToCode"><commit_msg>fix reference to lookup xml<commit_after><?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright SemanticBits, Northwestern University and Akaza Research Distributed 
	under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/caaers/LICENSE.txt 
	for details. -->
<xsl:stylesheet version="2.0"
				xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
	<xsl:output method="xml" encoding="UTF-8" indent="yes" />
	
	<xsl:template match="/">
		<xsl:call-template name="e2b" />
	</xsl:template>
	
	<xsl:variable name="map" select="document('../conf/caaers/caaers-ui-lookup.xml')" />

	<xsl:template name="lookup">
		<xsl:param name="_map" />
		<xsl:param name="_code" />
		<xsl:value-of select="$_map//code[text() = $_code]/parent::node()/value" />
	</xsl:template>
	
	<xsl:template name="ConvertOutcomeToCode">
		<xsl:param name="code" />	
		<reactionoutcome>
			<xsl:call-template name="lookup">
						<xsl:with-param name="_map" select="$map//aeoutcomes" />
						<xsl:with-param name="_code" select="$code" />
			</xsl:call-template>
		</reactionoutcome>
	</xsl:template>

	<xsl:template name="ConvertPresentStatusToCode">
		<xsl:param name="code" />
		<presentstatus>
			<xsl:call-template name="lookup">
						<xsl:with-param name="_map" select="$map//aee2bpresentstatuses" />
						<xsl:with-param name="_code" select="$code" />
			</xsl:call-template>
		</presentstatus>
	</xsl:template>
	
	<xsl:template name="ConvertRetreatedToCode">
{'fraction_non_alphanumeric': 0.19509632224168127, 'fraction_numerical': 0.009807355516637478, 'mean_word_length': 4.666666666666667, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 2, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 9}, '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': '372807', 'n_tokens_mistral': 1143, 'n_tokens_neox': 966, 'n_words': 163}