<commit_before>{% extends "package/edit_base.html" %}

{% block primary_content %}
  <section class="module">
    {% block page_header %}{% endblock %}
    <div class="module-content">
      {% block primary_content_inner %}
        {{ h.snippet('tayside/package/snippets/stages.html', stages=['complete', 'complete', 'active']) }}

        {% if report %}
          {% set errors = report.tables[0].errors %}

          <h3 class="validate-resource-report-header">Report</h3>

          <p>Openness: {% snippet "qa/stars.html", stars=stars %}</p>

          {% if errors | length > 0 %}
            <p class="validate-resource-report-error-count">Number of errors: {{ report.get('error-count') }}</p>

            <table class="table table-bordered" style="width: initial;">
              <thead>
                <tr>
                  <th class="span2">Column number</th>
                  <th class="span2">Row number</th>
                  <th class="span8">Message</th>
                </tr>
              </thead>
              <tbody>
                {% for error in errors %}
                  <tr>
                    <td>{{ error.get('column-number') }}</td>
                    <td>{{ error.get('row-number') }}</td>
                    <td>{{ error.get('message') }}</td>
                  </tr>
                {% endfor %}
              </tbody>
            </table>
          {% else %}
            <p>No errors found.</p>
          {% endif %}
        {% endif %}

        {% if redis_error %}
          <h3 class="text-center">{{ redis_error }}</h3><commit_msg>Increase width for column number<commit_after>{% extends "package/edit_base.html" %}

{% block primary_content %}
  <section class="module">
    {% block page_header %}{% endblock %}
    <div class="module-content">
      {% block primary_content_inner %}
        {{ h.snippet('tayside/package/snippets/stages.html', stages=['complete', 'complete', 'active']) }}

        {% if report %}
          {% set errors = report.tables[0].errors %}

          <h3 class="validate-resource-report-header">Report</h3>

          <p>Openness: {% snippet "qa/stars.html", stars=stars %}</p>

          {% if errors | length > 0 %}
            <p class="validate-resource-report-error-count">Number of errors: {{ report.get('error-count') }}</p>

            <table class="table table-bordered" style="width: initial;">
              <thead>
                <tr>
                  <th class="span3">Column number</th>
                  <th class="span2">Row number</th>
                  <th class="span8">Message</th>
                </tr>
              </thead>
              <tbody>
                {% for error in errors %}
                  <tr>
                    <td>{{ error.get('column-number') }}</td>
                    <td>{{ error.get('row-number') }}</td>
                    <td>{{ error.get('message') }}</td>
                  </tr>
                {% endfor %}
              </tbody>
            </table>
          {% else %}
            <p>No errors found.</p>
          {% endif %}
        {% endif %}

        {% if redis_error %}
          <h3 class="text-center">{{ redis_error }}</h3>
{'fraction_non_alphanumeric': 0.17448818897637794, 'fraction_numerical': 0.005669291338582677, 'mean_word_length': 1.6011466011466011, 'pattern_counts': {'":': 0, '<': 71, '<?xml version=': 0, '>': 73, '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': '4939433', 'n_tokens_mistral': 986, 'n_tokens_neox': 870, 'n_words': 179}