<commit_before>{% extends 'layout_full.html' %}

{% block layout_header_text %}My Notifications{% endblock %}

{% block layout_header_details %}
{% endblock %}

{% block layout_body %}

<div class="slds-box">
  <h3 class="slds-text-heading--large">Repositories</h3>
  <table class="slds-table">
    <thead>
      <tr>
        <th>Repository</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.repo %}
      <tr>
        <td>{{ notification.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td><a class="slds-button--destructive" href="/notifications/delete/repository/{{ notification.id }}">Delete</a></td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/repository">Add Repository Notification</a>

<div class="slds-box slds-m-top--large">
  <h3 class="slds-text-heading--large">Plans</h3>

  <table class="slds-table">
    <thead>
      <tr>
        <th>Plan</th>
        <th>Repo</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.plan %}
      <tr>
        <td>{{ notification.plan }}</td>
        <td>{{ notification.plan.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td><a class="slds-button--destructive" href="/notifications/delete/plan/{{ notification.id }}">Delete</a></td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/plan">Add Plan Notification</a>

<div class="slds-box slds-m-top--large">
  <h3 class="slds-text-heading--large">Branches</h3>
  <table class="slds-table">
    <thead>
      <tr>
        <th>Branch</th>
        <th>Repo</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.branch %}
      <tr>
        <td>{{ notification.branch }}</td>
        <td>{{ notification.branch.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td><a class="slds-button--destructive" href="/notifications/delete/branch/{{ notification.id }}">Delete</a></td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/branch">Add Branch Notification</a>

{% endblock %}
<commit_msg>use delete icon instead of destructive button on notifications list<commit_after>{% extends 'layout_full.html' %}

{% block layout_header_text %}My Notifications{% endblock %}

{% block layout_header_details %}
{% endblock %}

{% block layout_body %}

<div class="slds-box">
  <h3 class="slds-text-heading--large">Repositories</h3>
  <table class="slds-table">
    <thead>
      <tr>
        <th>Repository</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.repo %}
      <tr>
        <td>{{ notification.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td>
          <a href="/notifications/delete/repository/{{ notification.id }}">
            <button class="slds-button slds-button_icon" title="Delete notification">
              {% autoescape off %}
              <svg class="slds-button__icon slds-theme--default" aria-hidden="true">
                <use xlink:href="/static/slds/assets/icons/action-sprite/svg/symbols.svg#delete"></use>
              </svg>
              {% endautoescape %}
              <span class="slds-assistive-text">Delete notification</span>
            </button>
          </a>
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/repository">Add Repository Notification</a>

<div class="slds-box slds-m-top--large">
  <h3 class="slds-text-heading--large">Plans</h3>

  <table class="slds-table">
    <thead>
      <tr>
        <th>Plan</th>
        <th>Repo</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.plan %}
      <tr>
        <td>{{ notification.plan }}</td>
        <td>{{ notification.plan.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td>
          <a href="/notifications/delete/plan/{{ notification.id }}">
            <button class="slds-button slds-button_icon" title="Delete notification">
              {% autoescape off %}
              <svg class="slds-button__icon slds-theme--default" aria-hidden="true">
                <use xlink:href="/static/slds/assets/icons/action-sprite/svg/symbols.svg#delete"></use>
              </svg>
              {% endautoescape %}
              <span class="slds-assistive-text">Delete notification</span>
            </button>
          </a>
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/plan">Add Plan Notification</a>

<div class="slds-box slds-m-top--large">
  <h3 class="slds-text-heading--large">Branches</h3>
  <table class="slds-table">
    <thead>
      <tr>
        <th>Branch</th>
        <th>Repo</th>
        <th>On Success</th>
        <th>On Failure</th>
        <th>On Error</th>
        <th>Delete</th>
      </tr>
    </thead>
    <tbody>
    {% for notification in notifications.branch %}
      <tr>
        <td>{{ notification.branch }}</td>
        <td>{{ notification.branch.repo }}</td>
        <td>{{ notification.on_success }}</td>
        <td>{{ notification.on_fail }}</td>
        <td>{{ notification.on_error }}</td>
        <td>
          <a href="/notifications/delete/branch/{{ notification.id }}">
            <button class="slds-button slds-button_icon" title="Delete notification">
              {% autoescape off %}
              <svg class="slds-button__icon slds-theme--default" aria-hidden="true">
                <use xlink:href="/static/slds/assets/icons/action-sprite/svg/symbols.svg#delete"></use>
              </svg>
              {% endautoescape %}
              <span class="slds-assistive-text">Delete notification</span>
            </button>
          </a>
        </td>
      </tr>
    {% endfor %}
    </tbody>
  </table>
</div>
<a class="slds-button" href="/notifications/add/branch">Add Branch Notification</a>

{% endblock %}

{'fraction_non_alphanumeric': 0.1896748431260696, 'fraction_numerical': 0.0017113519680547634, 'mean_word_length': 2.2986829727187206, 'pattern_counts': {'":': 0, '<': 271, '<?xml version=': 0, '>': 271, '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': '17984', 'n_tokens_mistral': 2451, 'n_tokens_neox': 2332, 'n_words': 423}