<commit_before><?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:s="http://www.wyona.org/yanel/1.0"
  xmlns="http://www.w3.org/1999/xhtml">

  <xsl:template match="/s:session-manager">
    <html>
      <head>
        <title>Session manager</title>
      </head>
      <body>
        <h1>Session manager</h1>
        <strong>Total number of sessions: </strong>
        <xsl:value-of select="s:number-of-sessions"/>
        <br/>
        <ul>
          <!-- Show all logged-in sessions first -->
          <xsl:apply-templates select="s:session[s:identities]"/>
          <!-- Show all anonymous sessions later -->
          <xsl:apply-templates select="s:session[s:no-identity-yet]"/>
        </ul>
        <hr/>
        <p><a href="?yanel.resource.viewid=source">XML</a> (Please make sure to configure a view called "source")</p>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="s:session">
    <li>
      <strong>Session: </strong>
      <xsl:value-of select="@id"/>
      <ul>
        <li>
          <strong>Creation time: </strong>
          <xsl:value-of select="@creation-time"/>
        </li>
        <li>
          <strong>Last accessed time: </strong>
          <xsl:value-of select="@last-accessed-time"/>
        </li>
        <xsl:if test="s:identity">
          <li>
            <strong>Identity: </strong>
            <xsl:value-of select="s:identities"/>
          </li>
        </xsl:if>
        <xsl:if test="s:last-access">
          <li>
            <strong>Last accessed page: </strong>
            <xsl:value-of select="s:last-access"/>
          </li>
        </xsl:if>
      </ul><commit_msg>output identities<commit_after><?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:s="http://www.wyona.org/yanel/1.0"
  xmlns="http://www.w3.org/1999/xhtml">

  <xsl:template match="/s:session-manager">
    <html>
      <head>
        <title>Session manager</title>
      </head>
      <body>
        <h1>Session manager</h1>
        <strong>Total number of sessions: </strong>
        <xsl:value-of select="s:number-of-sessions"/>

        <h2>All "logged-in" sessions</h2>
        <!-- Show all logged-in sessions first -->
        <ol>
          <xsl:apply-templates select="s:session[s:identities]"/>
        </ol>

        <h2>All anonymous sessions</h2>
        <!-- Show all anonymous sessions later -->
        <ol>
          <xsl:apply-templates select="s:session[s:no-identity-yet]"/>
        </ol>

        <hr/>
        <p><a href="?yanel.resource.viewid=source">XML</a> (Please make sure to configure a view called "source")</p>
      </body>
    </html>
  </xsl:template>

  <xsl:template match="s:session">
    <li>
      <strong>Session: </strong>
      <xsl:value-of select="@id"/>
      <ul>
        <li>
          <strong>Creation time: </strong>
          <xsl:value-of select="@creation-time"/>
        </li>
        <li>
          <strong>Last accessed time: </strong>
          <xsl:value-of select="@last-accessed-time"/>
        </li>
        <xsl:if test="s:identities">
          <li>
            <strong>Identities: </strong>
            <xsl:value-of select="s:identities"/>
          </li>
        </xsl:if>

<!--
        <xsl:if test="s:identity">
          <li>
            <strong>Identity: </strong>
            <xsl:value-of select="s:identities"/>
          </li>
        </xsl:if>
        <xsl:if test="s:last-access">
          <li>
            <strong>Last accessed page: </strong>
            <xsl:value-of select="s:last-access"/>
          </li>
        </xsl:if>
-->
      </ul>
{'fraction_non_alphanumeric': 0.1866918103448276, 'fraction_numerical': 0.011314655172413793, 'mean_word_length': 1.9609250398724083, 'pattern_counts': {'":': 0, '<': 136, '<?xml version=': 2, '>': 136, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 8}, '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': '3436947', 'n_tokens_mistral': 1289, 'n_tokens_neox': 1217, 'n_words': 218}