<commit_before>{% extends "base.html" %}
{% block body %}
<section class="section">
  <div class="container">
    <div class="content">
      <h1>{{ emote.name }}</h1>
      {% if not emote.verified %}
      <div class="notification">
        This emote is pending approval. You won't be able to use it in Discord yet.
      </div>
      {% endif %}
      <table class="table">
        <tbody>
          <tr>
            <td><strong>Emote</strong></td>
            <td><figure class="image is-128x128"><img src="/emotes/{{ emote.path() }}"></figure></td>
          </tr>
          <tr>
            <td><strong>Name</strong></td>
            <td>{{ emote.name }}</td>
          </tr>
          <tr>
            <td><strong>Server</strong></td>
            <td>{{ guild.name }}</td>
          </tr>
          <tr>
            <td><strong>Shared</strong></td>
            {% if emote.shared %}
              <td><span class="tag is-success">Yes</span></td>
            {% else %}
              <td><span class="tag is-danger">No</span></td>
            {% endif %}
          </tr>
        </tbody>
      </table>
      <nav class="level">
        <div class="level-left">
          <div class="level-item">
              <a href="{{ url_for('guild', guild_id=guild.id) }}" class="button is-primary">Back to {{ guild.name }}</a>
          </div>
        </div>
        <div class="level-right">
          <div class="level-item"><form method="POST" enctype="multipart/form-data"><input class="button is-info" type="submit" name="toggle" value="{{ 'Make Private' if emote.shared else 'Make Shared' }}"></form>
          </a></div>
          <div class="level-item"><form method="POST" enctype="multipart/form-data"><input class="button is-danger" type="submit" name="delete" value="Delete Emote" onclick="return confirm('Are you sure you want to delete this emote?');"></div></form>
        </div>
      </nav>
    </div>
  </div>
</section>
<script>
</script>
{% endblock %} 
<commit_msg>Make emote page use only a single form and fix malformed HTML.<commit_after>{% extends "base.html" %}
{% block body %}
<section class="section">
  <div class="container">
    <div class="content">
      <h1>{{ emote.name }}</h1>
      {% if not emote.verified %}
      <div class="notification">
        This emote is pending approval. You won't be able to use it in Discord yet.
      </div>
      {% endif %}
      <table class="table">
        <tbody>
          <tr>
            <td><strong>Emote</strong></td>
            <td><figure class="image is-128x128"><img src="/emotes/{{ emote.path() }}"></figure></td>
          </tr>
          <tr>
            <td><strong>Name</strong></td>
            <td>{{ emote.name }}</td>
          </tr>
          <tr>
            <td><strong>Server</strong></td>
            <td>{{ guild.name }}</td>
          </tr>
          <tr>
            <td><strong>Shared</strong></td>
            {% if emote.shared %}
              <td><span class="tag is-success">Yes</span></td>
            {% else %}
              <td><span class="tag is-danger">No</span></td>
            {% endif %}
          </tr>
        </tbody>
      </table>
      <nav class="level">
        <div class="level-left">
          <div class="level-item">
              <a href="{{ url_for('guild', guild_id=guild.id) }}" class="button is-primary">Back to {{ guild.name }}</a>
          </div>
        </div>
        <div class="level-right">
          <div class="level-item">
            <form method="POST" enctype="multipart/form-data">
              <input class="button is-info" type="submit" name="toggle" value="{{ 'Make Private' if emote.shared else 'Make Shared' }}">
              <input class="button is-danger" type="submit" name="delete" value="Delete Emote" onclick="return confirm('Are you sure you want to delete this emote?');">
            </form>
          </div>
        </div>
      </nav>
    </div>
  </div>
</section>
<script>
</script>
{% endblock %}

{'fraction_non_alphanumeric': 0.19395465994962216, 'fraction_numerical': 0.004030226700251889, 'mean_word_length': 1.9947209653092006, 'pattern_counts': {'":': 0, '<': 154, '<?xml version=': 0, '>': 154, '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': '4712331', 'n_tokens_mistral': 1271, 'n_tokens_neox': 1205, 'n_words': 290}