<commit_before><?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0"
    xmlns:lxslt="http://xml.apache.org/xslt"
    xmlns:redirect="org.apache.xalan.lib.Redirect"
    extension-element-prefixes="redirect">

  <!--
       Use DashboardStamp as a parameter, default to most recent
       The proper flags to Xalan are in the form -PARAM DashboardStamp "string('foo')"
       -->
  <xsl:output method="html"/>
  <xsl:param name="DashboardPath"/>
  <xsl:param name="DashboardStamp" select="string('MostRecentResults-Nightly')"/>
  <xsl:param name="PreviousDashboardStamp" select="string('')"/>
  <xsl:variable name="DashboardDir" select="concat('../', $DashboardStamp)"/>
  <xsl:variable name="IconDir" select="string('../../Icons')"/>

  <xsl:include href="Insight.xsl"/>

  <xsl:template match="/Dashboard">
    <xsl:call-template name="TestOverview"/>
    <xsl:call-template name="InsightHeader">
      <xsl:with-param name="Title">Insight Dashboard</xsl:with-param>
      <xsl:with-param name="IconDir">../../Icons</xsl:with-param>
      <xsl:with-param name="DashboardDir" select="$DashboardDir"/>
      <xsl:with-param name="HomeIcon">HomeBlue.gif</xsl:with-param>
    </xsl:call-template>
    <h3>
      <xsl:choose>
        <xsl:when test="Update/ChangedFileCount != ''">
          <a href="Update.html">
            <xsl:value-of select="Update/ChangedFileCount"/> Files Changed
          </a>
          by <xsl:value-of select="Update/AuthorCount"/> Authors
          as of <xsl:value-of select="Update/StartDateTime"/>
        </xsl:when>
        <xsl:otherwise>
          No Update information available!
        </xsl:otherwise>
      </xsl:choose>
      <br/>
      
    </h3>

    <h3>
      <xsl:choose>
        <xsl:when test="string-length(Doxygen/StartDateTime) != 0">
          <a href="Doxygen.html">
            Doxygen:
          </a>
          <xsl:value-of select="Doxygen/ErrorCount"/> Errors
          and <xsl:value-of select="Doxygen/WarningCount"/> Warnings
        </xsl:when>
        <xsl:otherwise>
          No Doxygen information available!
        </xsl:otherwise>
      </xsl:choose>
      <br/>
     
    </h3>
            
    <table border="2" width="100%">
    <xsl:choose>
      <xsl:when test="count(BuildStamp/Build/BuildStamp[contains(node(),'Nightly')])">
        <tr><td colspan="9" valign="center"><h3>Nightly Builds</h3></td></tr>
        <xsl:call-template name="BuildTableHeader"/>
        <xsl:for-each select="BuildStamp">
          <xsl:sort select="Build/SiteName"/>
          <xsl:sort select="Build/BuildName"/>
          <xsl:sort select="Testing/SiteName"/>
          <xsl:sort select="Testing/BuildName"/>
          <xsl:if test="contains(Build/BuildStamp,'Nightly') or contains(Testing/BuildStamp,'Nightly')">
            <xsl:call-template name="BuildStamp"/>
          </xsl:if>
        </xsl:for-each>
      </xsl:when>
      <xsl:otherwise>
        <tr><td colspan="9"><h3>No Nightly Builds</h3></td></tr>
      </xsl:otherwise>        
    </xsl:choose>

    <xsl:choose>
      <xsl:when test="count(BuildStamp/Build/BuildStamp[not(contains(node(),'Nightly'))])">
        <tr><td colspan="9" valign="center"><h3>Experimental Builds</h3></td></tr>
          <xsl:call-template name="BuildTableHeader"/>
          <xsl:for-each select="BuildStamp">
            <xsl:sort select="Build/SiteName"/>
            <xsl:sort select="Build/BuildName"/>
            <xsl:if test="not ( contains(Build/BuildStamp,'Nightly') or contains(Testing/BuildStamp,'Nightly') ) and count(Build/SiteName | Testing/Sitename)">
              <xsl:call-template name="BuildStamp"/>
            </xsl:if>
          </xsl:for-each>
      
      </xsl:when>
      <xsl:otherwise>
        <tr><td colspan="9"><h3>No Experimental Builds</h3></td></tr>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="count(BuildStamp/Build/BuildStamp)">
      <tr>
        <td align="left">
          Totals
        </td>
        <td align="center">
          <b><xsl:value-of select="count(BuildStamp/Build/BuildStamp)"/> Builds</b>
        </td>
        <td align="right">
          <xsl:choose><commit_msg>ENH: Sorting experimentals by date<commit_after><?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    version="1.0"
    xmlns:lxslt="http://xml.apache.org/xslt"
    xmlns:redirect="org.apache.xalan.lib.Redirect"
    extension-element-prefixes="redirect">

  <!--
       Use DashboardStamp as a parameter, default to most recent
       The proper flags to Xalan are in the form -PARAM DashboardStamp "string('foo')"
       -->
  <xsl:output method="html"/>
  <xsl:param name="DashboardPath"/>
  <xsl:param name="DashboardStamp" select="string('MostRecentResults-Nightly')"/>
  <xsl:param name="PreviousDashboardStamp" select="string('')"/>
  <xsl:variable name="DashboardDir" select="concat('../', $DashboardStamp)"/>
  <xsl:variable name="IconDir" select="string('../../Icons')"/>

  <xsl:include href="Insight.xsl"/>

  <xsl:template match="/Dashboard">
    <xsl:call-template name="TestOverview"/>
    <xsl:call-template name="InsightHeader">
      <xsl:with-param name="Title">Insight Dashboard</xsl:with-param>
      <xsl:with-param name="IconDir">../../Icons</xsl:with-param>
      <xsl:with-param name="DashboardDir" select="$DashboardDir"/>
      <xsl:with-param name="HomeIcon">HomeBlue.gif</xsl:with-param>
    </xsl:call-template>
    <h3>
      <xsl:choose>
        <xsl:when test="Update/ChangedFileCount != ''">
          <a href="Update.html">
            <xsl:value-of select="Update/ChangedFileCount"/> Files Changed
          </a>
          by <xsl:value-of select="Update/AuthorCount"/> Authors
          as of <xsl:value-of select="Update/StartDateTime"/>
        </xsl:when>
        <xsl:otherwise>
          No Update information available!
        </xsl:otherwise>
      </xsl:choose>
      <br/>
      
    </h3>

    <h3>
      <xsl:choose>
        <xsl:when test="string-length(Doxygen/StartDateTime) != 0">
          <a href="Doxygen.html">
            Doxygen:
          </a>
          <xsl:value-of select="Doxygen/ErrorCount"/> Errors
          and <xsl:value-of select="Doxygen/WarningCount"/> Warnings
        </xsl:when>
        <xsl:otherwise>
          No Doxygen information available!
        </xsl:otherwise>
      </xsl:choose>
      <br/>
     
    </h3>
            
    <table border="2" width="100%">
    <xsl:choose>
      <xsl:when test="count(BuildStamp/Build/BuildStamp[contains(node(),'Nightly')])">
        <tr><td colspan="9" valign="center"><h3>Nightly Builds</h3></td></tr>
        <xsl:call-template name="BuildTableHeader"/>
        <xsl:for-each select="BuildStamp">
          <xsl:sort select="Build/SiteName"/>
          <xsl:sort select="Build/BuildName"/>
          <xsl:sort select="Testing/SiteName"/>
          <xsl:sort select="Testing/BuildName"/>
          <xsl:if test="contains(Build/BuildStamp,'Nightly') or contains(Testing/BuildStamp,'Nightly')">
            <xsl:call-template name="BuildStamp"/>
          </xsl:if>
        </xsl:for-each>
      </xsl:when>
      <xsl:otherwise>
        <tr><td colspan="9"><h3>No Nightly Builds</h3></td></tr>
      </xsl:otherwise>        
    </xsl:choose>

    <xsl:choose>
      <xsl:when test="count(BuildStamp/Build/BuildStamp[not(contains(node(),'Nightly'))])">
        <tr><td colspan="9" valign="center"><h3>Experimental Builds</h3></td></tr>
          <xsl:call-template name="BuildTableHeader"/>
          <xsl:for-each select="BuildStamp">
            <xsl:sort select="Build/BuildStamp" order="ascending"/>
            <xsl:sort select="Build/SiteName"/>
            <xsl:sort select="Build/BuildName"/>
            <xsl:if test="not ( contains(Build/BuildStamp,'Nightly') or contains(Testing/BuildStamp,'Nightly') ) and count(Build/SiteName | Testing/Sitename)">
              <xsl:call-template name="BuildStamp"/>
            </xsl:if>
          </xsl:for-each>
      
      </xsl:when>
      <xsl:otherwise>
        <tr><td colspan="9"><h3>No Experimental Builds</h3></td></tr>
      </xsl:otherwise>
    </xsl:choose>
    <xsl:if test="count(BuildStamp/Build/BuildStamp)">
      <tr>
        <td align="left">
          Totals
        </td>
        <td align="center">
          <b><xsl:value-of select="count(BuildStamp/Build/BuildStamp)"/> Builds</b>
        </td>
        <td align="right">
          <xsl:choose>
{'fraction_non_alphanumeric': 0.1793395228581502, 'fraction_numerical': 0.00822658361734634, 'mean_word_length': 2.735733099209833, 'pattern_counts': {'":': 0, '<': 232, '<?xml version=': 2, '>': 232, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 10}, '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': '802065', 'n_tokens_mistral': 2960, 'n_tokens_neox': 2702, 'n_words': 426}