<commit_before>{% extends "admin/base_site.html" %}
{% load admin_static %}

{% block content_title %}<h1>{{ title }}</h1>{% endblock %}

{% block extrastyle %}
	{{ block.super }}
	<style>table {width: 100%;}</style>
	<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">
{% endblock %}

{% block breadcrumbs %}
	<div class="breadcrumbs">
		<a href="{% url "admin:index" %}">{% trans "Home" %}</a> &rsaquo;
		<a href="{% url "rq_stats" %}">{% trans "RQ Status" %}</a> &rsaquo;
		{% blocktrans with queue.name as name %}'{{ name }}' queue{% endblocktrans %}
	</div>
{% endblock %}


{% block content %}
	<div id="content-main">
		<div class="module">
			<table id="rq">
				<caption>Jobs</caption>
				<thead>
					<tr>
						<th>Job ID</th>
						<th>Description</th>
						<th>Date created</th>
						<th>Date enqueued</th>
						<th>Date ended</th>
						<th>Origin</th>
						<th>Result</th>
					</tr>
				</thead>
				<tbody>
					{% for job in jobs %}
						<tr class="{% cycle "row2" "row1" %}">
							<td><a href="{% url "rq_job" job.id %}">{{ job.id }}</a></td>
							<td>{{ job.description }}</td>
							<td>{{ job.created_at }}</td>
							<td>{{ job.enqueued_at }}</td>
							<td>{{ job.ended_at }}</td>
							<td>{{ job.origin }}</td>
							<td>{% if job.result %}{{ job.result }}{% else %}{% trans "failed" %}{% endif %}</td>
						</tr>
					{% endfor %}
				</tbody>
			</table>
		</div>
		{% include "rq/queue_actions.html" %}
	</div>
{% endblock %}<commit_msg>Fixed detection of failed queue<commit_after>{% extends "admin/base_site.html" %}
{% load admin_static %}

{% block content_title %}<h1>{{ title }}</h1>{% endblock %}

{% block extrastyle %}
	{{ block.super }}
	<style>table {width: 100%;}</style>
	<link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}">
{% endblock %}

{% block breadcrumbs %}
	<div class="breadcrumbs">
		<a href="{% url "admin:index" %}">{% trans "Home" %}</a> &rsaquo;
		<a href="{% url "rq_stats" %}">{% trans "RQ Status" %}</a> &rsaquo;
		{% blocktrans with queue.name as name %}'{{ name }}' queue{% endblocktrans %}
	</div>
{% endblock %}


{% block content %}
	<div id="content-main">
		<div class="module">
			<table id="rq">
				<caption>Jobs</caption>
				<thead>
					<tr>
						<th>Job ID</th>
						<th>Description</th>
						<th>Date created</th>
						<th>Date enqueued</th>
						<th>Date ended</th>
						<th>Origin</th>
						<th>Result</th>
					</tr>
				</thead>
				<tbody>
					{% for job in jobs %}
						<tr class="{% cycle "row2" "row1" %}">
							<td><a href="{% url "rq_job" job.id %}">{{ job.id }}</a></td>
							<td>{{ job.description }}</td>
							<td>{{ job.created_at }}</td>
							<td>{{ job.enqueued_at }}</td>
							<td>{{ job.ended_at }}</td>
							<td>{{ job.origin }}</td>
							<td>{% if job.exc_info %}{% trans "failed" %}{% else %}{{ job.result }}{% endif %}</td>
						</tr>
					{% endfor %}
				</tbody>
			</table>
		</div>
		{% include "rq/queue_actions.html" %}
	</div>
{% endblock %}
{'fraction_non_alphanumeric': 0.24704336399474375, 'fraction_numerical': 0.0045992115637319315, 'mean_word_length': 2.908857509627728, 'pattern_counts': {'":': 0, '<': 117, '<?xml version=': 0, '>': 117, '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': '5504695', 'n_tokens_mistral': 1507, 'n_tokens_neox': 1144, 'n_words': 262}