<commit_before><?xml version="1.0"?>

<!--
 $Id: workflow2info.xsl,v 1.4 2004/02/25 13:49:23 roku Exp $
 -->

 <xsl:stylesheet version="1.0"
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
   xmlns:wf="http://apache.org/cocoon/lenya/workflow/1.0"
   xmlns:lenya-info="http://apache.org/cocoon/lenya/info/1.0"
   >
  
<xsl:output version="1.0" indent="yes" encoding="UTF-8"/>

<xsl:template match="wf:history">
	<lenya-info:info>
		<lenya-info:workflow>
			<h2><i18n:text>Variables</i18n:text></h2>
			<table class="lenya-table">
				<tr><th><i18n:text>Name</i18n:text></th><th><i18n:text>Value</i18n:text></th></tr>
				<xsl:apply-templates select="wf:variable"/>
			</table>
			<h2><i18n:text>History</i18n:text></h2>
			<table class="lenya-table">
				<tr>
					<th><i18n:text>Date</i18n:text></th>
					<th><i18n:text>Event</i18n:text></th>
					<th><i18n:text>State</i18n:text></th>
					<th><i18n:text>User</i18n:text></th>
					<th><i18n:text>IP Address</i18n:text></th>
				</tr>
				<xsl:apply-templates select="wf:version">
				    <xsl:sort select="@date" order="descending"/>
				</xsl:apply-templates>
			</table>
		</lenya-info:workflow>
	</lenya-info:info>
</xsl:template>

<xsl:template match="wf:version">
	<tr>
		<td><i18n:date src-pattern="dd.MM.yyyy HH:mm:ss" pattern="yyyy-M-dd HH:mm:ss"><xsl:value-of select="@date"/></i18n:date></td>
		<td><xsl:value-of select="@event"/></td>
		<td><i18n:text><xsl:value-of select="@state"/></i18n:text></td>
		<td>
			<span style="white-space: nobreak">
			<xsl:value-of select="wf:identity/wf:user/@id"/>
			<xsl:if test="wf:identity/wf:user/@name != ''">
				(<xsl:value-of select="wf:identity/wf:user/@name"/>)
			</xsl:if>
			</span><commit_msg>Removed date translation due to dynamic src-formats of date. Will be fixed after 1.2.<commit_after><?xml version="1.0"?>

<!--
 $Id: workflow2info.xsl,v 1.5 2004/03/08 19:09:31 roku Exp $
 -->

 <xsl:stylesheet version="1.0"
   xmlns="http://www.w3.org/1999/xhtml"
   xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
   xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
   xmlns:wf="http://apache.org/cocoon/lenya/workflow/1.0"
   xmlns:lenya-info="http://apache.org/cocoon/lenya/info/1.0"
   >
  
<xsl:output version="1.0" indent="yes" encoding="UTF-8"/>

<xsl:template match="wf:history">
	<lenya-info:info>
		<lenya-info:workflow>
			<h2><i18n:text>Variables</i18n:text></h2>
			<table class="lenya-table">
				<tr><th><i18n:text>Name</i18n:text></th><th><i18n:text>Value</i18n:text></th></tr>
				<xsl:apply-templates select="wf:variable"/>
			</table>
			<h2><i18n:text>History</i18n:text></h2>
			<table class="lenya-table">
				<tr>
					<th><i18n:text>Date</i18n:text></th>
					<th><i18n:text>Event</i18n:text></th>
					<th><i18n:text>State</i18n:text></th>
					<th><i18n:text>User</i18n:text></th>
					<th><i18n:text>IP Address</i18n:text></th>
				</tr>
				<xsl:apply-templates select="wf:version">
				    <xsl:sort select="@date" order="descending"/>
				</xsl:apply-templates>
			</table>
		</lenya-info:workflow>
	</lenya-info:info>
</xsl:template>

<xsl:template match="wf:version">
	<tr>
<!--		<td><i18n:date src-pattern="dd.MM.yyyy HH:mm:ss" pattern="yyyy-M-dd HH:mm:ss"><xsl:value-of select="@date"/></i18n:date></td> -->
		<td><xsl:value-of select="@date"/></td>
		<td><xsl:value-of select="@event"/></td>
		<td><i18n:text><xsl:value-of select="@state"/></i18n:text></td>
		<td>
			<span style="white-space: nobreak">
			<xsl:value-of select="wf:identity/wf:user/@id"/>
			<xsl:if test="wf:identity/wf:user/@name != ''">
				(<xsl:value-of select="wf:identity/wf:user/@name"/>)
			</xsl:if>
			</span>
{'fraction_non_alphanumeric': 0.2474476088124664, 'fraction_numerical': 0.04997313272434175, 'mean_word_length': 4.3185714285714285, 'pattern_counts': {'":': 0, '<': 167, '<?xml version=': 2, '>': 167, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, 'xml': 12}, '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': '2225726', 'n_tokens_mistral': 1895, 'n_tokens_neox': 1571, 'n_words': 168}