<commit_before>{% extends "../../base.html" %}

{% block title %}
  Emend > {{site.domain}} > {{edit.proposal_utf8|escape|truncate:32}}
{% endblock %}

{% block content %}
  <h1><a href="/">Emend</a> > <a href="/sites">Sites</a> > <a href="/sites/{{site.domain}}">{{site.domain}}</a> > {{edit.proposal_utf8|escape|truncate:32}}</h1>
  
  <p>According to <a href="{{edit.author.permalink}}">{{edit.author|escape}}</a>, &ldquo;{{edit.original_utf8|escape}}&rdquo; should be &ldquo;{{edit.proposal_utf8|escape}}&rdquo; on <a href="{{edit.url}}">{{edit.url|truncate:45}}</a>.<p>
    
  <p>This was first noticed on <abbr title="{{edit.created.isoformat}}">{{edit.created_short}}</abbr>.</p>
  
  <h2>Original</h2>
  <blockquote class="diff original">
    {% diff edit.original edit.proposal %}
  </blockquote>

  <h2>Proposal</h2>
  <blockquote class="diff proposal">
    {% diff edit.proposal edit.original %}
  </blockquote>
  
  <h2>Things to do</h2>
  
  <p><a href="http://twitter.com/home?status={{edit.as_tweet|urlencode}}">Tweet this</a></p>
  
  {% if edit.can_edit and edit.is_open %}
    <p><span class="fakelink click-close">Change to &ldquo;fixed&rdquo;</span></p>
    <script type="text/javascript" charset="utf-8">
      $('.click-close').click(function ()
      {
        $.post("{{edit.permalink}}/test", {json: 1}, function (response)
        {
          if (response.status == 'fixed') {
            alert("Thanks!");
            window.location.reload();
          } else {
            var again;
            if (response.status == 'unfixed') {
              again = confirm("Looks like it hasn't been fixed yet, change it anyway?");
            } else if (response.status == 'uncertain') {
              again = confirm("I couldn't tell if it was fixed, change it anyway?");
            } else if (response.error)
            {
              alert("An error occured: "+response.error);
            }
            if (again) {
              $.post("{{edit.permalink}}/close", {json: 1}, function ()
              {
                alert("Thanks!");
                window.location.reload();
              });
            }
          }
        }, 'json');
      });
    </script>
  {% endif %}
  
  {% if edit.can_edit and edit.is_closed %}
    <p><span class="fakelink click-open">Change back to &ldquo;unfixed&rdquo;</span></p>
    <script type="text/javascript" charset="utf-8">
      $('.click-open').click(function ()
      {
        $.post("{{edit.permalink}}/open", {json: 1}, function ()
        {
          alert("Thanks!");
          window.location.reload();
        });
      });
    </script>
  {% endif %}
  
  {% if edit.can_edit %}
    <p><a href="{{edit.permalink}}/update">Update this</a></p>
  {% endif %}
  
  <p>
    <span class="fakelink click-pingback">Pingback</span> -
    <span class="fakelink click-trackback">Trackback</span>
  </p>
  
  <script type="text/javascript" charset="utf-8">
    $('.click-pingback').click(function ()
    {
      var el = $(this);
      el.text('Sending pingback...');
      $.post("{{edit.permalink}}/pingback", {json: 1}, function (response)
      {
        if (response.success)
        {
          alert('Success!');
        } else if (response.error)
        {
          alert("Sorry, something went wrong.\n\n"+response.error);
        }
        el.text('Pingback');
      }, 'json');
    });
  </script>
  
  <script type="text/javascript" charset="utf-8">
    $('.click-trackback').click(function ()
    {
      var el = $(this);
      el.text('Sending trackback...');
      $.post("{{edit.permalink}}/trackback", {json: 1}, function (response)
      {
        if (response.success)
        {
          alert('Success!');
        } else if (response.error)
        {
          alert("Sorry, something went wrong.\n\n"+response.error);
        }
        el.text('Trackback');
      }, 'json');
    });
  </script>
  
  <p><a href="{{edit.site.permalink}}">More {{edit.site}} edits</a><p>
  
  {% if prev or next %}
    <p class="prev-next">
      {% if prev %}
        <a href="{{prev.permalink}}">&larr; {{prev.proposal_utf8|escape|truncate:16}}</a>
      {% endif %}
    
      {% if prev and next %}|{% endif %}
    
      {% if next %}
        <a href="{{next.permalink}}">{{next.proposal_utf8|escape|truncate:16}} &rarr;</a>
      {% endif %}
    </p>
  {% endif %}
{% endblock %}<commit_msg>increase prev/next truncation<commit_after>{% extends "../../base.html" %}

{% block title %}
  Emend > {{site.domain}} > {{edit.proposal_utf8|escape|truncate:32}}
{% endblock %}

{% block content %}
  <h1><a href="/">Emend</a> > <a href="/sites">Sites</a> > <a href="/sites/{{site.domain}}">{{site.domain}}</a> > {{edit.proposal_utf8|escape|truncate:32}}</h1>
  
  <p>According to <a href="{{edit.author.permalink}}">{{edit.author|escape}}</a>, &ldquo;{{edit.original_utf8|escape}}&rdquo; should be &ldquo;{{edit.proposal_utf8|escape}}&rdquo; on <a href="{{edit.url}}">{{edit.url|truncate:45}}</a>.<p>
    
  <p>This was first noticed on <abbr title="{{edit.created.isoformat}}">{{edit.created_short}}</abbr>.</p>
  
  <h2>Original</h2>
  <blockquote class="diff original">
    {% diff edit.original edit.proposal %}
  </blockquote>

  <h2>Proposal</h2>
  <blockquote class="diff proposal">
    {% diff edit.proposal edit.original %}
  </blockquote>
  
  <h2>Things to do</h2>
  
  <p><a href="http://twitter.com/home?status={{edit.as_tweet|urlencode}}">Tweet this</a></p>
  
  {% if edit.can_edit and edit.is_open %}
    <p><span class="fakelink click-close">Change to &ldquo;fixed&rdquo;</span></p>
    <script type="text/javascript" charset="utf-8">
      $('.click-close').click(function ()
      {
        $.post("{{edit.permalink}}/test", {json: 1}, function (response)
        {
          if (response.status == 'fixed') {
            alert("Thanks!");
            window.location.reload();
          } else {
            var again;
            if (response.status == 'unfixed') {
              again = confirm("Looks like it hasn't been fixed yet, change it anyway?");
            } else if (response.status == 'uncertain') {
              again = confirm("I couldn't tell if it was fixed, change it anyway?");
            } else if (response.error)
            {
              alert("An error occured: "+response.error);
            }
            if (again) {
              $.post("{{edit.permalink}}/close", {json: 1}, function ()
              {
                alert("Thanks!");
                window.location.reload();
              });
            }
          }
        }, 'json');
      });
    </script>
  {% endif %}
  
  {% if edit.can_edit and edit.is_closed %}
    <p><span class="fakelink click-open">Change back to &ldquo;unfixed&rdquo;</span></p>
    <script type="text/javascript" charset="utf-8">
      $('.click-open').click(function ()
      {
        $.post("{{edit.permalink}}/open", {json: 1}, function ()
        {
          alert("Thanks!");
          window.location.reload();
        });
      });
    </script>
  {% endif %}
  
  {% if edit.can_edit %}
    <p><a href="{{edit.permalink}}/update">Update this</a></p>
  {% endif %}
  
  <p>
    <span class="fakelink click-pingback">Pingback</span> -
    <span class="fakelink click-trackback">Trackback</span>
  </p>
  
  <script type="text/javascript" charset="utf-8">
    $('.click-pingback').click(function ()
    {
      var el = $(this);
      el.text('Sending pingback...');
      $.post("{{edit.permalink}}/pingback", {json: 1}, function (response)
      {
        if (response.success)
        {
          alert('Success!');
        } else if (response.error)
        {
          alert("Sorry, something went wrong.\n\n"+response.error);
        }
        el.text('Pingback');
      }, 'json');
    });
  </script>
  
  <script type="text/javascript" charset="utf-8">
    $('.click-trackback').click(function ()
    {
      var el = $(this);
      el.text('Sending trackback...');
      $.post("{{edit.permalink}}/trackback", {json: 1}, function (response)
      {
        if (response.success)
        {
          alert('Success!');
        } else if (response.error)
        {
          alert("Sorry, something went wrong.\n\n"+response.error);
        }
        el.text('Trackback');
      }, 'json');
    });
  </script>
  
  <p><a href="{{edit.site.permalink}}">More {{edit.site}} edits</a><p>
  
  {% if prev or next %}
    <p class="prev-next">
      {% if prev %}
        <a href="{{prev.permalink}}">&larr; {{prev.proposal_utf8|escape|truncate:32}}</a>
      {% endif %}
    
      {% if prev and next %}|{% endif %}
    
      {% if next %}
        <a href="{{next.permalink}}">{{next.proposal_utf8|escape|truncate:32}} &rarr;</a>
      {% endif %}
    </p>
  {% endif %}
{% endblock %}
{'fraction_non_alphanumeric': 0.206184390689183, 'fraction_numerical': 0.007530807850296669, 'mean_word_length': 2.3659754224270353, 'pattern_counts': {'":': 0, '<': 139, '<?xml version=': 0, '>': 149, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, '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': '5189086', 'n_tokens_mistral': 3052, 'n_tokens_neox': 2859, 'n_words': 504}