<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:i18n="http://genshi.edgewall.org/i18n"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>${title or _('Error')}</title>
    <link rel="stylesheet" type="text/css" href="${chrome.htdocs_location}css/code.css"/>
    <script py:if="frames" type="text/javascript">/*<![CDATA[*/
      jQuery(document).ready(function($) {
        $("#traceback a").click(function() {
          $("div", this.parentNode).slideToggle("fast");
          return false;
        });
        $("#plugins td.file a").click(function() {
          var idx = parseInt($(this).attr("href").substring(6));
          $("#traceback li").eq(idx).children("div").slideDown("fast");
          return true;
        });
        $("#tbtoggle").click(function() {
          if (this.value.indexOf("interactive") < 0) {
            this.value = "Switch to interactive view";
            $("#traceback ul").fadeOut("fast", function() {
              $("#traceback pre").fadeIn("fast");
            });
          } else {
            this.value = "Switch to plain text view";
            $("#traceback pre").fadeOut("fast", function() {
              $("#traceback ul").fadeIn("fast");
            });
          }
          return false;
        });
       /* Only activate interactive view if Javascript is enabled */
       $("#traceback ul").show();
       $("#traceback pre").hide();
       $("#tbtoggle").parent().show();

       $("#systeminfo").append("<tr><th>jQuery</th><td>" + $().jquery + "</td></tr>");
       $("#systeminfo").before("<p>User Agent: <tt>" + navigator.userAgent + "</tt></p>");
      });
    /*]]>*/</script>
    <script type="text/javascript">/*<![CDATA[*/
      jQuery(document).ready(function($) {
        $("form.newticket textarea").each(function() {
          $(this).text($(this).text()
                         .replace(/#USER_AGENT#/m, navigator.userAgent)
                         .replace(/#JQUERY#/m, $().jquery));
        });
      });
    /*]]>*/</script>
  </head>

  <py:def function="create_ticket(url=None)">
    <input type="hidden" name="reporter" value="${get_reporter_id(req)}" />
    <input py:if="url == trac.homepage.strip('/')" type="hidden" name="version"
           value="${trac.version.split('-', 1)[0] if 'dev' in trac.version else trac.version}" />
    <input type="hidden" name="summary" value="$message" />
    <textarea name="description" rows="3" cols="10">
${description_en if url else description}</textarea>
    <span class="inlinebuttons">
      <input type="submit" name="create" value="${_('Create')}" />
    </span>
  </py:def>

  <body>
    <div id="content" class="error">
      <py:choose test="type">
        <py:when test="'TracError'">
          <h1>$title</h1>
          <py:choose test="">
            <p py:when="istext(message)" class="message">$message</p>
            <py:otherwise>$message</py:otherwise>
          </py:choose>
        </py:when><commit_msg>0.13dev: Uses `.val()` instead of `.text()` to get/set value of `textarea` element (see #10165)<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:i18n="http://genshi.edgewall.org/i18n"
      xmlns:py="http://genshi.edgewall.org/"
      xmlns:xi="http://www.w3.org/2001/XInclude">
  <xi:include href="layout.html" />
  <head>
    <title>${title or _('Error')}</title>
    <link rel="stylesheet" type="text/css" href="${chrome.htdocs_location}css/code.css"/>
    <script py:if="frames" type="text/javascript">/*<![CDATA[*/
      jQuery(document).ready(function($) {
        $("#traceback a").click(function() {
          $("div", this.parentNode).slideToggle("fast");
          return false;
        });
        $("#plugins td.file a").click(function() {
          var idx = parseInt($(this).attr("href").substring(6));
          $("#traceback li").eq(idx).children("div").slideDown("fast");
          return true;
        });
        $("#tbtoggle").click(function() {
          if (this.value.indexOf("interactive") < 0) {
            this.value = "Switch to interactive view";
            $("#traceback ul").fadeOut("fast", function() {
              $("#traceback pre").fadeIn("fast");
            });
          } else {
            this.value = "Switch to plain text view";
            $("#traceback pre").fadeOut("fast", function() {
              $("#traceback ul").fadeIn("fast");
            });
          }
          return false;
        });
       /* Only activate interactive view if Javascript is enabled */
       $("#traceback ul").show();
       $("#traceback pre").hide();
       $("#tbtoggle").parent().show();

       $("#systeminfo").append("<tr><th>jQuery</th><td>" + $().jquery + "</td></tr>");
       $("#systeminfo").before("<p>User Agent: <tt>" + navigator.userAgent + "</tt></p>");
      });
    /*]]>*/</script>
    <script type="text/javascript">/*<![CDATA[*/
      jQuery(document).ready(function($) {
        $("form.newticket textarea").each(function() {
          $(this).val($(this).val()
                             .replace(/#USER_AGENT#/m, navigator.userAgent)
                             .replace(/#JQUERY#/m, $().jquery));
        });
      });
    /*]]>*/</script>
  </head>

  <py:def function="create_ticket(url=None)">
    <input type="hidden" name="reporter" value="${get_reporter_id(req)}" />
    <input py:if="url == trac.homepage.strip('/')" type="hidden" name="version"
           value="${trac.version.split('-', 1)[0] if 'dev' in trac.version else trac.version}" />
    <input type="hidden" name="summary" value="$message" />
    <textarea name="description" rows="3" cols="10">
${description_en if url else description}</textarea>
    <span class="inlinebuttons">
      <input type="submit" name="create" value="${_('Create')}" />
    </span>
  </py:def>

  <body>
    <div id="content" class="error">
      <py:choose test="type">
        <py:when test="'TracError'">
          <h1>$title</h1>
          <py:choose test="">
            <p py:when="istext(message)" class="message">$message</p>
            <py:otherwise>$message</py:otherwise>
          </py:choose>
        </py:when>
{'fraction_non_alphanumeric': 0.2224287484510533, 'fraction_numerical': 0.010223048327137546, 'mean_word_length': 2.567403314917127, 'pattern_counts': {'":': 0, '<': 99, '<?xml version=': 0, '>': 97, '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': '7118300', 'n_tokens_mistral': 2097, 'n_tokens_neox': 2014, 'n_words': 336}