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

{% block content %}

<div class="page-header">
  <h1>Rules</h1>
</div>

<ol class="breadcrumb">
  <li><a href="{% url 'service-list' %}">Home</a></li>
  <li class="active">List Rules</li>
</ol>

{% for service in service_list %}
{% if service.rule_set.count %}
<h2><a href="{% url 'service-detail' service.id %}">{{ service.name }}</a></h2>
<div class="panel panel-default">
{% include "promgen/rule_block.html" with object=service show_full=1 %}
</div>
{% endif %}
{% endfor %}

{% endblock %}<commit_msg>Re-add 'Register rule' to rule list page<commit_after>{% extends "base.html" %}
{% load i18n %}
{% block content %}

<div class="page-header">
  <h1>Rules</h1>
</div>

<ol class="breadcrumb">
  <li><a href="{% url 'service-list' %}">Home</a></li>
  <li class="active">List Rules</li>
</ol>

{% for service in service_list %}
{% if service.rule_set.count %}
<h2><a href="{% url 'service-detail' service.id %}">{{ service.name }}</a></h2>
<div class="panel panel-default">
  <div class="panel-heading">
    Rules ( {{service.rule_set.count}} )
    <span class="pull-right form-inline">
      <a href="{% url 'rule-new' service.id %}" class="btn btn-primary btn-xs">{% trans "Register Rule" %}</a>
    </span>
  </div>
{% include "promgen/rule_block.html" with object=service show_full=1 %}
</div>
{% endif %}
{% endfor %}

{% endblock %}
{'fraction_non_alphanumeric': 0.23355025307302965, 'fraction_numerical': 0.008676789587852495, 'mean_word_length': 4.51394422310757, 'pattern_counts': {'":': 0, '<': 45, '<?xml version=': 0, '>': 45, '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': '5887360', 'n_tokens_mistral': 549, 'n_tokens_neox': 503, 'n_words': 119}