<commit_before><!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:py="http://genshi.edgewall.org/"
    xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
  <head>
    <title>$path</title>
    <meta py:if="file and file.annotate" name="ROBOTS" content="NOINDEX, NOFOLLOW" />
    <meta py:if="dir" name="ROBOTS" content="NOINDEX" />
    <script type="text/javascript">
      $(document).ready(function() {
        $("#jumploc input").hide();
        $("#jumploc select").change(function () {
          this.parentNode.parentNode.submit();
        })
        <py:if test="file and file.annotate">
          enableBlame("${href.changeset()}/", "${path}");
        </py:if>
      });
    </script>
  </head>

  <body>
    <div id="ctxtnav" class="nav">
      <ul>
        <li class="first"><a href="${href.changeset(rev, created_path)}">Last Change</a></li>
        <li py:if="file">
          <a href="${href.browser(created_path, rev=rev, annotate=not file.annotate or None)}"
             title="Annotate each line with the last changed revision. This can be time consuming...">
            ${['Annotate', 'Normal'][bool(file.annotate)]}
          </a>
        </li>
        <li class="last"><a href="${href.log(path, rev=rev)}">Revision Log</a></li>
      </ul>
    </div>

    <div id="content" class="browser">

      <h1>${browser_path_links(path_links, stickyrev)}</h1>

      <div id="jumprev">
        <form action="" method="get">
          <div>
            <label for="rev" title="${sticky_rev and 'Hint: clear the field to view latest revision' or None}">
              View revision:</label>
            <input type="text" id="rev" name="rev" value="$stickyrev" size="6" />
          </div>
        </form>
      </div>

      <div py:if="quickjump_entries" id="jumploc">
        <form action="" method="get">
          <div class="buttons">
            <label for="preselected">Visit:</label>
            <select id="preselected" name="preselected">
              <option selected="selected" />
              <optgroup py:for="category, locations in groupby(quickjump_entries, key=lambda q: q[0])"
                label="${category}">
                <option py:for="_, name, path, rev in locations" value="${href.browser(path, rev=rev)}">$name</option><commit_msg>Better Normal/Annotate navigation links in the TracBrowser.<commit_after><!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:py="http://genshi.edgewall.org/"
    xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <xi:include href="macros.html" />
  <head>
    <title>$path</title>
    <meta py:if="file and file.annotate" name="ROBOTS" content="NOINDEX, NOFOLLOW" />
    <meta py:if="dir" name="ROBOTS" content="NOINDEX" />
    <script type="text/javascript">
      $(document).ready(function() {
        $("#jumploc input").hide();
        $("#jumploc select").change(function () {
          this.parentNode.parentNode.submit();
        })
        <py:if test="file and file.annotate">
          enableBlame("${href.changeset()}/", "${path}");
        </py:if>
      });
    </script>
  </head>

  <body>
    <div id="ctxtnav" class="nav">
      <ul>
        <li class="first"><a href="${href.changeset(rev, created_path)}">Last Change</a></li>
        <li py:if="file" py:choose="">
          <a py:when="file.annotate" href="${href.browser(created_path, rev=rev)}" 
             title="View file without annotations">
            Normal</a>
          <a py:otherwise="" href="${href.browser(created_path, rev=rev, annotate=file.annotate)}"
             title="Annotate each line with the last changed revision (this can be time consuming...)">
            Annotate</a>
        </li>
        <li class="last"><a href="${href.log(path, rev=rev)}">Revision Log</a></li>
      </ul>
    </div>

    <div id="content" class="browser">

      <h1>${browser_path_links(path_links, stickyrev)}</h1>

      <div id="jumprev">
        <form action="" method="get">
          <div>
            <label for="rev" title="${sticky_rev and 'Hint: clear the field to view latest revision' or None}">
              View revision:</label>
            <input type="text" id="rev" name="rev" value="$stickyrev" size="6" />
          </div>
        </form>
      </div>

      <div py:if="quickjump_entries" id="jumploc">
        <form action="" method="get">
          <div class="buttons">
            <label for="preselected">Visit:</label>
            <select id="preselected" name="preselected">
              <option selected="selected" />
              <optgroup py:for="category, locations in groupby(quickjump_entries, key=lambda q: q[0])"
                label="${category}">
                <option py:for="_, name, path, rev in locations" value="${href.browser(path, rev=rev)}">$name</option>
{'fraction_non_alphanumeric': 0.19191522762951335, 'fraction_numerical': 0.007849293563579277, 'mean_word_length': 2.6616379310344827, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 6}, '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': '3270609', 'n_tokens_mistral': 1698, 'n_tokens_neox': 1634, 'n_words': 327}