<commit_before>{% extends "./layout/default.twig" %}
{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}
{% block content %}

    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">{{ 'rules'|_ }}</h3>
                    <!-- ACTIONS MENU -->
                    <div class="box-tools pull-right">
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    </div>
                </div>
                <div class="box-body">
                    <p>
                        {{ 'rules_explanation'|_ }}
                    </p>
                </div>
            </div>
        </div>
    </div>

    {% for ruleGroup in ruleGroups %}
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">
                            {% if ruleGroup.active %}
                                {{ ruleGroup.title }}
                            {% else %}
                                <s>{{ ruleGroup.title }}</s> (inactive)
                            {% endif %}
                        </h3>

                        <!-- ACTIONS MENU -->
                        <div class="box-tools pull-right">
                            <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                            <div class="btn-group">
                                <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i
                                            class="fa fa-ellipsis-v"></i></button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{{ route('rules.rule-group.edit',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-pencil"></i> {{ 'edit'|_ }}</a></li>
                                    <li><a href="{{ route('rules.rule-group.delete',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-trash"></i> {{ 'delete'|_ }}</a>
                                        {% if ruleGroup.order > 1 %}
                                    <li><a href="{{ route('rules.rule-group.up',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-arrow-up"></i> {{ 'move_rule_group_up'|_ }}</a>
                                        {% endif %}
                                        {% if ruleGroup.order < ruleGroups|length %}
                                    <li><a href="{{ route('rules.rule-group.down',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-arrow-down"></i> {{ 'move_rule_group_down'|_ }}
                                        </a>
                                        {% endif %}
                                    </li>
                                </ul>
                            </div>
                        </div>

                    </div>
                    <div class="box-body">
                        <p>
                            <em>{{ ruleGroup.description }}</em>
                        </p>

                        {% if ruleGroup.rules.count > 0 %}
                            <table class="table table-hover table-striped sortable">
                                <thead>
                                <tr>
                                    <th colspan="2">{{ 'rule_name'|_ }}</th>
                                    <th>{{ 'rule_triggers'|_ }}</th>
                                    <th>{{ 'rule_actions'|_ }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for rule in ruleGroup.rules %}
                                    <tr>
                                        <td>
                                            <div class="btn-group btn-group-xs"><commit_msg>Added closing li tags<commit_after>{% extends "./layout/default.twig" %}
{% block breadcrumbs %}
    {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
{% endblock %}
{% block content %}

    <div class="row">
        <div class="col-lg-12 col-md-12 col-sm-12">
            <div class="box box-primary">
                <div class="box-header with-border">
                    <h3 class="box-title">{{ 'rules'|_ }}</h3>
                    <!-- ACTIONS MENU -->
                    <div class="box-tools pull-right">
                        <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                    </div>
                </div>
                <div class="box-body">
                    <p>
                        {{ 'rules_explanation'|_ }}
                    </p>
                </div>
            </div>
        </div>
    </div>

    {% for ruleGroup in ruleGroups %}
        <div class="row">
            <div class="col-lg-12 col-md-12 col-sm-12">
                <div class="box">
                    <div class="box-header with-border">
                        <h3 class="box-title">
                            {% if ruleGroup.active %}
                                {{ ruleGroup.title }}
                            {% else %}
                                <s>{{ ruleGroup.title }}</s> (inactive)
                            {% endif %}
                        </h3>

                        <!-- ACTIONS MENU -->
                        <div class="box-tools pull-right">
                            <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i></button>
                            <div class="btn-group">
                                <button class="btn btn-box-tool dropdown-toggle" data-toggle="dropdown"><i
                                            class="fa fa-ellipsis-v"></i></button>
                                <ul class="dropdown-menu" role="menu">
                                    <li><a href="{{ route('rules.rule-group.edit',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-pencil"></i> {{ 'edit'|_ }}</a></li>
                                    <li><a href="{{ route('rules.rule-group.delete',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-trash"></i> {{ 'delete'|_ }}</a></li>
                                        {% if ruleGroup.order > 1 %}
                                    <li><a href="{{ route('rules.rule-group.up',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-arrow-up"></i> {{ 'move_rule_group_up'|_ }}</a></li>
                                        {% endif %}
                                        {% if ruleGroup.order < ruleGroups|length %}
                                    <li><a href="{{ route('rules.rule-group.down',ruleGroup.id) }}"><i
                                                    class="fa fa-fw fa-arrow-down"></i> {{ 'move_rule_group_down'|_ }}
                                        </a></li>
                                        {% endif %}
                                </ul>
                            </div>
                        </div>

                    </div>
                    <div class="box-body">
                        <p>
                            <em>{{ ruleGroup.description }}</em>
                        </p>

                        {% if ruleGroup.rules.count > 0 %}
                            <table class="table table-hover table-striped sortable">
                                <thead>
                                <tr>
                                    <th colspan="2">{{ 'rule_name'|_ }}</th>
                                    <th>{{ 'rule_triggers'|_ }}</th>
                                    <th>{{ 'rule_actions'|_ }}</th>
                                </tr>
                                </thead>
                                <tbody>
                                {% for rule in ruleGroup.rules %}
                                    <tr>
                                        <td>
                                            <div class="btn-group btn-group-xs">
{'fraction_non_alphanumeric': 0.14227118246806517, 'fraction_numerical': 0.004453298956990507, 'mean_word_length': 0.8053733869261688, 'pattern_counts': {'":': 0, '<': 181, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 67, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6697344', 'n_tokens_mistral': 2108, 'n_tokens_neox': 1910, 'n_words': 371}