<commit_before>{% extends 'core/page.html' %}
{% load staticfiles %}
{% load compress %}
{% load i18n %}

{% block head %}
    {% compress css %}
    <link rel="stylesheet" type="text/x-scss" href="{% static 'conditions/css/conditions.scss' %}" />
    {% endcompress %}

    <script type="text/javascript" src="{% static 'angular/angular.min.js' %}" ></script>
    <script type="text/javascript" src="{% static 'angular-resource/angular-resource.min.js' %}" ></script>
    <script type="text/javascript" src="{% static 'core/js/core.js' %}" ></script>
    <script type="text/javascript" src="{% static 'conditions/js/conditions.js' %}" ></script>
{% endblock %}

{% block bodyattr %} ng-app="conditions" ng-controller="ConditionsController" {% endblock %}

{% block sidebar %}

    <h2>{% trans 'Filter' %}</h2>

    <div class="input-group">
        <input type="text" class="form-control" ng-model="service.filter"></input>
        <span class="input-group-btn" ng-click="service.filter = ''">
            <button class="btn btn-default">
                <span class="glyphicon glyphicon-remove"></span>
            </button>
        </span>
    </div>

    <h2>{% trans 'Options' %}</h2>

    <ul class="list-unstyled">
        <li>
            <a href="" ng-click="service.openFormModal('conditions', null, true)">
                {% trans 'Create new Condition' %}
            </a>
        </li>
    </ul>

    <h2>{% trans 'Export' %}</h2>

    <ul class="list-unstyled">
        {% for format, text in export_formats.items %}
        <li >
            <a href="{% url 'conditions_export' format %}" target="_blank">
                {{ text }}
            </a>
        </li>
        {% endfor %}
    </ul>

{% endblock %}

{% block page %}

    <h1>{% trans 'Conditions' %}</h1>

    <div ng-repeat="condition in service.conditions | filter: service.filter" ng-cloak>

        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="pull-right">
                    <a href="" class="fa fa-pencil"
                        title="{% trans 'Update condition' %}"
                        ng-click="service.openFormModal('conditions', condition)">
                    </a>
                    <a href="" class="fa fa-trash"
                        title="{% trans 'Delete condition' %}"
                        ng-click="service.openDeleteModal('conditions', condition)">
                    </a>
                </div>
                <strong>{% trans 'Condition' %}</strong> {$ condition.title $}
            </div><commit_msg>add <code> to title in conditions app<commit_after>{% extends 'core/page.html' %}
{% load staticfiles %}
{% load compress %}
{% load i18n %}

{% block head %}
    {% compress css %}
    <link rel="stylesheet" type="text/x-scss" href="{% static 'conditions/css/conditions.scss' %}" />
    {% endcompress %}

    <script type="text/javascript" src="{% static 'angular/angular.min.js' %}" ></script>
    <script type="text/javascript" src="{% static 'angular-resource/angular-resource.min.js' %}" ></script>
    <script type="text/javascript" src="{% static 'core/js/core.js' %}" ></script>
    <script type="text/javascript" src="{% static 'conditions/js/conditions.js' %}" ></script>
{% endblock %}

{% block bodyattr %} ng-app="conditions" ng-controller="ConditionsController" {% endblock %}

{% block sidebar %}

    <h2>{% trans 'Filter' %}</h2>

    <div class="input-group">
        <input type="text" class="form-control" ng-model="service.filter"></input>
        <span class="input-group-btn" ng-click="service.filter = ''">
            <button class="btn btn-default">
                <span class="glyphicon glyphicon-remove"></span>
            </button>
        </span>
    </div>

    <h2>{% trans 'Options' %}</h2>

    <ul class="list-unstyled">
        <li>
            <a href="" ng-click="service.openFormModal('conditions', null, true)">
                {% trans 'Create new Condition' %}
            </a>
        </li>
    </ul>

    <h2>{% trans 'Export' %}</h2>

    <ul class="list-unstyled">
        {% for format, text in export_formats.items %}
        <li >
            <a href="{% url 'conditions_export' format %}" target="_blank">
                {{ text }}
            </a>
        </li>
        {% endfor %}
    </ul>

{% endblock %}

{% block page %}

    <h1>{% trans 'Conditions' %}</h1>

    <div ng-repeat="condition in service.conditions | filter: service.filter" ng-cloak>

        <div class="panel panel-default">
            <div class="panel-heading">
                <div class="pull-right">
                    <a href="" class="fa fa-pencil"
                        title="{% trans 'Update condition' %}"
                        ng-click="service.openFormModal('conditions', condition)">
                    </a>
                    <a href="" class="fa fa-trash"
                        title="{% trans 'Delete condition' %}"
                        ng-click="service.openDeleteModal('conditions', condition)">
                    </a>
                </div>
                <strong>{% trans 'Condition' %}</strong>
                <code>{$ condition.title $}</code>
            </div>
{'fraction_non_alphanumeric': 0.18532744382561936, 'fraction_numerical': 0.003840983291722681, 'mean_word_length': 2.0963139120095127, 'pattern_counts': {'":': 0, '<': 108, '<?xml version=': 0, '>': 108, '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': '525149', 'n_tokens_mistral': 1638, 'n_tokens_neox': 1494, 'n_words': 339}