<commit_before>{% load execution urls %}

{% with runcaseversion.caseversion as caseversion %}
{% result_for runcaseversion user environment as result %}

<article id="test-id-{{ runcaseversion.id }}" class="listitem action-ajax-replace {{ result.status }}" data-title="{{ caseversion.name }}">

  <div class="itemhead">
    <form method="POST" id="test-status-form-{{ runcaseversion.id }}" class="results">
      {% csrf_token %}

      {% if result.status == result.STATUS.assigned %}
        <button class="start result-action" value="{{ runcaseversion.id }}" name="action-start">start</button>
      {% endif %}
      {% if result.status == result.STATUS.started %}
        <button class="pass result-action" value="{{ runcaseversion.id }}" name="action-finishsucceed">pass</button>
      {% endif %}

      {% if result.status == result.STATUS.passed or result.status == result.STATUS.invalidated or result.status == result.STATUS.failed %}
        <button class="result-action restart {{ result.status }}" value="{{ runcaseversion.id }}" name="action-restart" title="test {{ result.status }} (restart test)">
          {{ result.status }}
        </button>
      {% endif %}
    </form>

    <div class="name">
      <h3 class="title" title="{{ caseversion.name }}">{{ caseversion.name }}</h3>

      {% with caseversion.tags.all as tags %}
      {% if tags %}
      <ul class="tags">
        {% for tag in tags %}
        <li><a href="#{{ tag|slugify }}" title="filter by {{ tag }}" class="filter-link tag" data-type="tag">{{ tag }}</a></li>
        {% endfor %}
      </ul>
      {% endif %}
      {% endwith %}
    </div>

    <div class="suites">@@@ wireframed suite names</div>

    {% if result.status == result.STATUS.started or result.status == result.STATUS.invalidated %}
      <div class="testinvalid details{% if result.status == result.STATUS.invalidated %} invalidated open{% endif %}">

        <p class="summary invalid-summary" title="invalid or unclear">invalid or unclear</p>

        {% if result.status == result.STATUS.invalidated %}
          <p class="invalid-content">
            {{ result.comment }}
          </p>
        {% else %}
          <form method="POST" id="test-invalid-form-{{ runcaseversion.id }}" class="invalid-form">
            {% csrf_token %}
            <label for="invalid-comment-{{ runcaseversion.id }}" class="invalid-label">description of problem:</label>
            <textarea class="invalid-input" name="comment" id="invalid-comment-{{ runcaseversion.id }}" placeholder="please explain why this test case is invalid." required></textarea>
            <div class="form-actions">
              <button class="invalid" value="{{ runcaseversion.id }}" name="action-finishinvalidate">mark as invalid</button><commit_msg>Display suites in runtests list.<commit_after>{% load execution urls %}

{% with runcaseversion.caseversion as caseversion %}
{% result_for runcaseversion user environment as result %}

<article id="test-id-{{ runcaseversion.id }}" class="listitem action-ajax-replace {{ result.status }}" data-title="{{ caseversion.name }}">

  <div class="itemhead">
    <form method="POST" id="test-status-form-{{ runcaseversion.id }}" class="results">
      {% csrf_token %}

      {% if result.status == result.STATUS.assigned %}
        <button class="start result-action" value="{{ runcaseversion.id }}" name="action-start">start</button>
      {% endif %}
      {% if result.status == result.STATUS.started %}
        <button class="pass result-action" value="{{ runcaseversion.id }}" name="action-finishsucceed">pass</button>
      {% endif %}

      {% if result.status == result.STATUS.passed or result.status == result.STATUS.invalidated or result.status == result.STATUS.failed %}
        <button class="result-action restart {{ result.status }}" value="{{ runcaseversion.id }}" name="action-restart" title="test {{ result.status }} (restart test)">
          {{ result.status }}
        </button>
      {% endif %}
    </form>

    <div class="name">
      <h3 class="title" title="{{ caseversion.name }}">{{ caseversion.name }}</h3>

      {% with caseversion.tags.all as tags %}
      {% if tags %}
      <ul class="tags">
        {% for tag in tags %}
        <li><a href="#{{ tag|slugify }}" title="filter by {{ tag }}" class="filter-link tag" data-type="tag">{{ tag }}</a></li>
        {% endfor %}
      </ul>
      {% endif %}
      {% endwith %}
    </div>

    <div class="suites">
      {% with runcaseversion.suites.all as suites %}
      {% if suites %}
      <ul>
        {% for suite in suites %}
        <li><a href="" title="filter by {{ suite }}" class="filter-link suite" data-type="suite">{{ suite }}</a></li>
        {% endfor %}
      </ul>
      {% endif %}
      {% endwith %}
    </div>

    {% if result.status == result.STATUS.started or result.status == result.STATUS.invalidated %}
      <div class="testinvalid details{% if result.status == result.STATUS.invalidated %} invalidated open{% endif %}">

        <p class="summary invalid-summary" title="invalid or unclear">invalid or unclear</p>

        {% if result.status == result.STATUS.invalidated %}
          <p class="invalid-content">
            {{ result.comment }}
          </p>
        {% else %}
          <form method="POST" id="test-invalid-form-{{ runcaseversion.id }}" class="invalid-form">
            {% csrf_token %}
            <label for="invalid-comment-{{ runcaseversion.id }}" class="invalid-label">description of problem:</label>
            <textarea class="invalid-input" name="comment" id="invalid-comment-{{ runcaseversion.id }}" placeholder="please explain why this test case is invalid." required></textarea>
            <div class="form-actions">
              <button class="invalid" value="{{ runcaseversion.id }}" name="action-finishinvalidate">mark as invalid</button>
{'fraction_non_alphanumeric': 0.1773945705992829, 'fraction_numerical': 0.0006829434864264982, 'mean_word_length': 3.04, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, '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': '407258', 'n_tokens_mistral': 1770, 'n_tokens_neox': 1624, 'n_words': 388}