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

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
  xmlns:dir="http://apache.org/cocoon/directory/2.0"
  xmlns:yanel="http://www.wyona.org/yanel/resource/directory/1.0"
>

<xsl:output method="xhtml"/>
<!-- NOTE: Must correspond with the mime-type delivered by the server. See src/java/org/wyona/yanel/impl/resources/DirectoryResource.java -->
<!--
<xsl:output method="html"/>
-->

<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Collection: <xsl:value-of select="/dir:directory/@yanel:path"/></title>
</head>

<body>
<p>
<b>Collection Path:</b> <xsl:value-of select="/dir:directory/@yanel:path"/> (<a href="?yanel.resource.viewid=source">XML view</a>)
</p>

<p>
<b>Parent:</b> <a href="../">..</a>
</p>

<p>
<b>Children:</b><br/>
<xsl:apply-templates select="/dir:directory/*"/>
</p>
</body>
</html>
</xsl:template>

<xsl:template match="dir:directory">
Collection: <a href="{@name}/"><xsl:value-of select="@path"/>/</a><br/>
</xsl:template>

<xsl:template match="dir:file">
Resource: <a href="{@name}"><xsl:value-of select="@path"/></a><br/>
</xsl:template>
</xsl:stylesheet><commit_msg>generates atom feed<commit_after><?xml version="1.0"?>

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:dir="http://apache.org/cocoon/directory/2.0"
  xmlns:yanel="http://www.wyona.org/yanel/resource/directory/1.0"
>

<xsl:output method="xml"/>

<xsl:template match="/">
<feed xmlns="http://www.w3.org/2005/Atom" xml:base="http://yanel.wyona.org{/dir:directory/@yanel:path}">

  <title>Yanel Website News</title>
  <link rel="self" href="{/dir:directory/@yanel:path}"/>
<!--
<xsl:comment>
  <link rel="self" href="news-feed.xml"/>
</xsl:comment>
-->
  <updated>2003-12-13T18:30:02Z</updated>
  <author><name>Yanel</name></author>
  <id>urn:uuid:TODO</id>

<xsl:apply-templates select="/dir:directory/*"/>

</feed>
</xsl:template>


<xsl:template match="dir:directory">
<xsl:comment>
Do NOT show collections: <xsl:value-of select="@name"/>, <xsl:value-of select="@path"/>
</xsl:comment>
</xsl:template>

<xsl:template match="dir:file">
<link href="{@name}"/>
<xsl:comment>
<xsl:value-of select="@path"/>
</xsl:comment>
</xsl:template>
</xsl:stylesheet>
{'fraction_non_alphanumeric': 0.25390130746520456, 'fraction_numerical': 0.025305778152678194, 'mean_word_length': 5.428184281842818, 'pattern_counts': {'":': 0, '<': 88, '<?xml version=': 2, '>': 88, 'https://': 0, 'lorem ipsum': 0, 'www.': 8, 'xml': 15}, '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': '3828522', 'n_tokens_mistral': 999, 'n_tokens_neox': 913, 'n_words': 128}