<commit_before><?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" indent="yes"
              doctype-public="-//W3C//DTD HTML 4.01//EN"
	            doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>

	<xsl:template name="resultcell" match="result/*">
		<xsl:element name="div">
			<xsl:if test="contains(text(), 'ok')">
				<xsl:attribute name="style">background-color: green; color: white;</xsl:attribute>
			</xsl:if>
			<xsl:if test="contains(text(), 'failed')">
				<xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
			</xsl:if>
			<xsl:value-of select="text()"/>
		</xsl:element>
	</xsl:template>

	<xsl:template match="/">
		<html>
			<head><commit_msg>added links for results and diff<commit_after><?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
	<xsl:output method="html" indent="yes"
              doctype-public="-//W3C//DTD HTML 4.01//EN"
	            doctype-system="http://www.w3.org/TR/html4/strict.dtd"/>

	<xsl:template name="resultcell" match="result/*">
		<xsl:element name="div">
			<xsl:if test="contains(text(), 'ok')">
				<xsl:attribute name="style">background-color: green; color: white;</xsl:attribute>
			</xsl:if>
			<xsl:if test="contains(text(), 'failed')">
				<xsl:attribute name="style">background-color: red; color: white;</xsl:attribute>
			</xsl:if>

			<xsl:choose>
				<xsl:when test="name() = 'gcc_run'">
					<xsl:element name="a">
						<xsl:choose>
							<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
								<xsl:attribute name="style">color: white;</xsl:attribute>
							</xsl:when>
							<xsl:otherwise>
								<xsl:attribute name="style">color: black;</xsl:attribute>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:attribute name="href">result_gcc_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
						<xsl:value-of select="text()"/>
					</xsl:element>
				</xsl:when>
				<xsl:when test="name() = 'firm_run'">
					<xsl:element name="a">
						<xsl:choose>
							<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
								<xsl:attribute name="style">color: white;</xsl:attribute>
							</xsl:when>
							<xsl:otherwise>
								<xsl:attribute name="style">color: black;</xsl:attribute>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:attribute name="href">result_firm_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
						<xsl:value-of select="text()"/>
					</xsl:element>
				</xsl:when>
				<xsl:when test="name() = 'diff'">
					<xsl:element name="a">
						<xsl:choose>
							<xsl:when test="contains(text(), 'ok') or contains(text(), 'failed')">
								<xsl:attribute name="style">color: white;</xsl:attribute>
							</xsl:when>
							<xsl:otherwise>
								<xsl:attribute name="style">color: black;</xsl:attribute>
							</xsl:otherwise>
						</xsl:choose>
						<xsl:attribute name="href">result_diff_<xsl:value-of select="../@name"/>.txt</xsl:attribute>
						<xsl:value-of select="text()"/>
					</xsl:element>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="text()"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:element>
	</xsl:template>

	<xsl:template match="/">
		<html>
			<head>
{'fraction_non_alphanumeric': 0.2184671092335546, 'fraction_numerical': 0.009052504526252263, 'mean_word_length': 3.610570236439499, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 2, '>': 99, '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': '6684688', 'n_tokens_mistral': 1527, 'n_tokens_neox': 1114, 'n_words': 181}