<commit_before>{% extends "instance_base.html" %}
{% load i18n %}
{% load l10n %}
{% load image %}
{% load util %}

{% block page_title %} | {% trans "Edits" %} {{plot.pk|unlocalize}}{% endblock %}

{% block activeexplore %}
{% endblock %}

{% block activerecentedits %}
active
{% endblock %}

{% block subhead %}
{% endblock subhead %}

{% block header %}
{% load i18n %}
<div class="header">
  {% block logo %}
  {{ block.super }}
  {% endblock logo %}
</div> <!-- end header -->
{% endblock header %}

{% block content %}
<div class="image-background"></div>
<div class="container contained profile">
  <div class="row-fluid">
    <div class="span12">
      <h1>
        {% trans "Edits" %}
        <a class="btn pull-right" href="{% url 'edits' instance_url_name=request.instance.url_name %}">{% trans "Reset" %}</a>
      </h1>

      <table class="table table-striped">
        <tr>
          <th>{% trans "Details" %}</th>
          <th>{% trans "Edit ID" %}</th>
          <th>{% trans "Type" %}</th>
          <th>{% trans "Object ID" %}</th>
          <th>{% trans "Field" %}</th>
          <th>{% trans "Old Value" %}</th>
          <th>{% trans "Current Value" %}</th>
          <th>{% trans "Edited By" %}</th>
          <th>{% trans "Edited On" %}</th>
        </tr>
        {% for audit in audits %}
        <tr>
          {% localize off %}
          <td>
            {% with link=audit|audit_detail_link %}
            {% if link %}
            <a href="{{ link }}">Detail</a>
            {% endif %}
            {% endwith %}
          </td>
          <td>{{ audit.pk }}</td>
          <td>
            <a href="?models={{ audit.model }}">
            {{ audit.model }}
            </a>
          </td>
          <td>
            <a href="?models={{ audit.model }}&model_id={{ audit.model_id }}">
              {{ audit.model_id }}
            </a>
          </td>
          {% endlocalize %}
          <td>{{ audit.field_display_name }}</td>

          {% if audit.field == 'image' %}

          <td>
            {% if audit.clean_previous_value %}
            <a href="{{ audit.clean_previous_value|image_to_url }}">
              View Image
            </a>
            {% endif %}
          </td>
          <td>
            {% if audit.clean_current_value %}
            <a href="{{ audit.clean_current_value|image_to_url }}">
              View Image
            </a>
            {% endif %}
          </td>

          {% elif audit.field == 'user' %}

          <td><commit_msg>Adding trans tag in a few places<commit_after>{% extends "instance_base.html" %}
{% load i18n %}
{% load l10n %}
{% load image %}
{% load util %}

{% block page_title %} | {% trans "Edits" %} {{plot.pk|unlocalize}}{% endblock %}

{% block activeexplore %}
{% endblock %}

{% block activerecentedits %}
active
{% endblock %}

{% block subhead %}
{% endblock subhead %}

{% block header %}
{% load i18n %}
<div class="header">
  {% block logo %}
  {{ block.super }}
  {% endblock logo %}
</div> <!-- end header -->
{% endblock header %}

{% block content %}
<div class="image-background"></div>
<div class="container contained profile">
  <div class="row-fluid">
    <div class="span12">
      <h1>
        {% trans "Edits" %}
        <a class="btn pull-right" href="{% url 'edits' instance_url_name=request.instance.url_name %}">{% trans "Reset" %}</a>
      </h1>

      <table class="table table-striped">
        <tr>
          <th>{% trans "Details" %}</th>
          <th>{% trans "Edit ID" %}</th>
          <th>{% trans "Type" %}</th>
          <th>{% trans "Object ID" %}</th>
          <th>{% trans "Field" %}</th>
          <th>{% trans "Old Value" %}</th>
          <th>{% trans "Current Value" %}</th>
          <th>{% trans "Edited By" %}</th>
          <th>{% trans "Edited On" %}</th>
        </tr>
        {% for audit in audits %}
        <tr>
          {% localize off %}
          <td>
            {% with link=audit|audit_detail_link %}
            {% if link %}
            <a href="{{ link }}">{% trans "Detail" %}</a>
            {% endif %}
            {% endwith %}
          </td>
          <td>{{ audit.pk }}</td>
          <td>
            <a href="?models={{ audit.model }}">
            {{ audit.model }}
            </a>
          </td>
          <td>
            <a href="?models={{ audit.model }}&model_id={{ audit.model_id }}">
              {{ audit.model_id }}
            </a>
          </td>
          {% endlocalize %}
          <td>{{ audit.field_display_name }}</td>

          {% if audit.field == 'image' %}

          <td>
            {% if audit.clean_previous_value %}
            <a href="{{ audit.clean_previous_value|image_to_url }}">
              {% trans "View Image" %}
            </a>
            {% endif %}
          </td>
          <td>
            {% if audit.clean_current_value %}
            <a href="{{ audit.clean_current_value|image_to_url }}">
              {% trans "View Image" %}
            </a>
            {% endif %}
          </td>

          {% elif audit.field == 'user' %}

          <td>
{'fraction_non_alphanumeric': 0.19703849950641658, 'fraction_numerical': 0.003948667324777887, 'mean_word_length': 1.7061965811965811, 'pattern_counts': {'":': 0, '<': 121, '<?xml version=': 0, '>': 121, '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': '6808626', 'n_tokens_mistral': 1743, 'n_tokens_neox': 1572, 'n_words': 385}