<commit_before>{% extends "base.html" %}

{% block content %}

<p><a href="{% url config:configs %}">&laquo; Back to list of configurations</a></p>

<h1>Config: <em>{{ config.name }}</em></h1>

<form action="{% url build:enqueue config.pk %}" method="post">
<input type="submit" value="Build">
</form>

{% if config.builds.exists %}
<table cellpadding="5">
<tr>
  <th>#</th>
  <th>Enqueued</th>
  <th>Status</th>
</tr>
{% for build in config.builds.all %}
<tr>
  <td>{{ build.pk }}</td>
  <td>{{ build.enqueued|timesince }} ago</td>
  <td>
    {% if build.status == "waiting"%}
      <em>Waiting for builder to become available..</em>
    {% endif %}

    {% if build.status == "building"%}
      <em>Building...</em> ({{ build.started|timesince }})
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

    {% if build.status == "failure"%}
      <strong>Build failed!</strong> 
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

    {% if build.status == "success"%}
      <strong>Finished.</strong>
      <a href="{{ build.result_url}}">Download</a>
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

  </td>
</tr><commit_msg>Add missing whitespace<commit_after>{% extends "base.html" %}

{% block content %}

<p><a href="{% url config:configs %}">&laquo; Back to list of configurations</a></p>

<h1>Config: <em>{{ config.name }}</em></h1>

<form action="{% url build:enqueue config.pk %}" method="post">
<input type="submit" value="Build">
</form>

{% if config.builds.exists %}
<table cellpadding="5">
<tr>
  <th>#</th>
  <th>Enqueued</th>
  <th>Status</th>
</tr>
{% for build in config.builds.all %}
<tr>
  <td>{{ build.pk }}</td>
  <td>{{ build.enqueued|timesince }} ago</td>
  <td>
    {% if build.status == "waiting" %}
      <em>Waiting for builder to become available..</em>
    {% endif %}

    {% if build.status == "building" %}
      <em>Building...</em> ({{ build.started|timesince }})
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

    {% if build.status == "failure" %}
      <strong>Build failed!</strong> 
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

    {% if build.status == "success" %}
      <strong>Finished.</strong>
      <a href="{{ build.result_url}}">Download</a>
      <a href="{{ build.log_url}}">Log</a>
    {% endif %}

  </td>
</tr>
{'fraction_non_alphanumeric': 0.24407072013799053, 'fraction_numerical': 0.00258732212160414, 'mean_word_length': 3.3042671614100185, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 91, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2982286', 'n_tokens_mistral': 915, 'n_tokens_neox': 842, 'n_words': 183}