<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:i18n="http://genshi.edgewall.org/i18n"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>Available Reports</title>
    <script type="text/javascript" src="${chrome.htdocs_location}js/folding.js"></script>
    <script type="text/javascript">
      jQuery(document).ready(function($){
        $("span.foldable").enableFolding(true);
        $("#trac-toggle-description").click(function() {
          if ($(this).checked())
            $("div.description").parent().removeClass("collapsed");
          else
            $("div.description").parent().addClass("collapsed");
        });
      });
    </script>
  </head>

  <body>
    <div id="content" class="report">

      <h1>Available Reports
        <form id="trac-toggle-description-form">
          <input id="trac-toggle-description" type="checkbox" />
          <label for="trac-toggle-description">Show Descriptions</label>
        </form>
      </h1>

      <div id="description" />

      <div py:choose="" class="reports">
        <div py:if="saved_query_href">
          <h2>
            <form method="get" action="${href.report()}">
              <div class="inlinebuttons">
                <input type="hidden" name="action" value="clear" />
                <input type="submit" class="inlinebutton" title="Forget last query" value="${_('Clear')}" />
              </div>
            </form>
            <a href="$saved_query_href"><em>Return to Last Query</em></a>
          </h2>
          <span class="foldable" />
          <div class="description">
            <p>Continue browsing through the current list of results,
              from the last selected report or custom query.</p>
          </div>
        </div>

        <div py:if="query_href">
          <h2><a href="$query_href"><em>Custom Query</em></a></h2>
          <span class="foldable" />
          <div class="description">
            <p>Compose a new ticket query by selecting filters and columns to display.</p>
          </div>
        </div>

        <py:when test="reports">
          <h3>SQL reports and saved custom queries
            <span id="trac-sort-order" py:with="report_asc = asc if sort == 'report' else None;
                                                title_asc = asc if sort == 'title' else None">
              Sorted by:
              <a href="${href.report(sort='report', asc=report_asc and '0' or '1')}"
                 class="${('desc', 'asc')[report_asc] if report_asc is not None else None}">
                Identifier</a>
              <a href="${href.report(sort='title', asc=title_asc and '0' or '1')}"
                 class="${('desc', 'asc')[title_asc] if title_asc is not None else None}">
                Title</a>
            </span>
          </h3>

          <div py:for="id, title, description, can_edit, can_delete in reports">
            <h2><commit_msg>#9604: tweak the wording (suggested by rblank)<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:i18n="http://genshi.edgewall.org/i18n"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>Available Reports</title>
    <script type="text/javascript" src="${chrome.htdocs_location}js/folding.js"></script>
    <script type="text/javascript">
      jQuery(document).ready(function($){
        $("span.foldable").enableFolding(true);
        $("#trac-toggle-description").click(function() {
          if ($(this).checked())
            $("div.description").parent().removeClass("collapsed");
          else
            $("div.description").parent().addClass("collapsed");
        });
      });
    </script>
  </head>

  <body>
    <div id="content" class="report">

      <h1>Available Reports
        <form id="trac-toggle-description-form">
          <input id="trac-toggle-description" type="checkbox" />
          <label for="trac-toggle-description">Show Descriptions</label>
        </form>
      </h1>

      <div id="description" />

      <div py:choose="" class="reports">
        <div py:if="saved_query_href">
          <h2>
            <form method="get" action="${href.report()}">
              <div class="inlinebuttons">
                <input type="hidden" name="action" value="clear" />
                <input type="submit" class="inlinebutton" title="Forget last query" value="${_('Clear')}" />
              </div>
            </form>
            <a href="$saved_query_href"><em>Return to Last Query</em></a>
          </h2>
          <span class="foldable" />
          <div class="description">
            <p>Continue browsing through the current list of results,
              from the last selected report or custom query.</p>
          </div>
        </div>

        <div py:if="query_href">
          <h2><a href="$query_href"><em>Custom Query</em></a></h2>
          <span class="foldable" />
          <div class="description">
            <p>Compose a new ticket query by selecting filters and columns to display.</p>
          </div>
        </div>

        <py:when test="reports">
          <h3>SQL reports and saved custom queries
            <span id="trac-sort-order" py:with="report_asc = asc if sort == 'report' else None;
                                                title_asc = asc if sort == 'title' else None">
              Sort by:
              <a href="${href.report(sort='report', asc=report_asc and '0' or '1')}"
                 class="${('desc', 'asc')[report_asc] if report_asc is not None else None}">
                Identifier</a>
              <a href="${href.report(sort='title', asc=title_asc and '0' or '1')}"
                 class="${('desc', 'asc')[title_asc] if title_asc is not None else None}">
                Title</a>
            </span>
          </h3>

          <div py:for="id, title, description, can_edit, can_delete in reports">
            <h2>
{'fraction_non_alphanumeric': 0.17110084435239764, 'fraction_numerical': 0.011151824119802454, 'mean_word_length': 2.1218299353555445, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 133, 'https://': 0, 'lorem ipsum': 0, 'www.': 6, 'xml': 8}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7543364', 'n_tokens_mistral': 1923, 'n_tokens_neox': 1848, 'n_words': 399}