<commit_before>{% extends 'DeepMikotoAdminBundle:Parts:divided_layout.html.twig' %}
{% block sidebar %}
    {% include 'DeepMikotoAdminBundle:Parts:sidebars/coding_sidebar.html.twig' %}
{% endblock %}
{% block content %}
    {% for flashMessage in app.session.flashbag.get('success') %}
        <div class="alert alert-success alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            {{ flashMessage | raw }}
        </div>
    {% endfor %}
    <table class="table table-hover">
        <thead>
        <tr>
            <th>title</th>
            <th>coding post title</th>
            <th>url</th>
            <th>date</th>
            <th>actions</th>
        </tr>
        </thead>
        <tbody>
        {% if pages|length == 0 %}
            <tr>
                <td colspan="4" class="text-center">
                    Nothing to show, <a href="{{ path('deepmikoto_admin_coding_new_demo_page') }}"><i class="glyphicon glyphicon-save"></i> create new demo page</a>
                </td>
            </tr>
        {% else %}
            {% for page in pages %}
                <tr>
                    <td>{{ page.title }}</td>
                    <td>{{ page.codingPostTitle }}</td>
                    <td>{{ page.url }} <a href="{{ page.url }}" target="_blank"><i class="glyphicon glyphicon-link"></i></a></td>
                    <td>{{ page.date | date( 'd F Y H:i:s' ) }}</td>
                    <td>
                        <a href="{{ path('deepmikoto_admin_coding_edit_demo_page', { 'id': page.id }) }}">
                            <i class="glyphicon glyphicon-edit"></i> Edit
                        </a>
                    </td>
                </tr>
            {% endfor %}
        {% endif %}
        </tbody>
    </table>
{% endblock %}<commit_msg>admin demo page delete link<commit_after>{% extends 'DeepMikotoAdminBundle:Parts:divided_layout.html.twig' %}
{% block sidebar %}
    {% include 'DeepMikotoAdminBundle:Parts:sidebars/coding_sidebar.html.twig' %}
{% endblock %}
{% block content %}
    {% for flashMessage in app.session.flashbag.get('success') %}
        <div class="alert alert-success alert-dismissible" role="alert">
            <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            {{ flashMessage | raw }}
        </div>
    {% endfor %}
    <table class="table table-hover">
        <thead>
        <tr>
            <th>title</th>
            <th>coding post title</th>
            <th>url</th>
            <th>date</th>
            <th>actions</th>
        </tr>
        </thead>
        <tbody>
        {% if pages|length == 0 %}
            <tr>
                <td colspan="4" class="text-center">
                    Nothing to show, <a href="{{ path('deepmikoto_admin_coding_new_demo_page') }}"><i class="glyphicon glyphicon-save"></i> create new demo page</a>
                </td>
            </tr>
        {% else %}
            {% for page in pages %}
                <tr>
                    <td>{{ page.title }}</td>
                    <td>{{ page.codingPostTitle }}</td>
                    <td>{{ page.url }} <a href="{{ page.url }}" target="_blank"><i class="glyphicon glyphicon-link"></i></a></td>
                    <td>{{ page.date | date( 'd F Y H:i:s' ) }}</td>
                    <td>
                        <a href="{{ path('deepmikoto_admin_coding_edit_demo_page', { 'id': page.id }) }}">
                            <i class="glyphicon glyphicon-edit"></i> Edit
                        </a>
                        <a href="{{ path('deepmikoto_admin_delete_coding_demo_page',{'id': post.id}) }}">
                            <i class="glyphicon glyphicon-trash"></i> Delete
                        </a>
                    </td>
                </tr>
            {% endfor %}
        {% endif %}
        </tbody>
    </table>
{% endblock %}
{'fraction_non_alphanumeric': 0.17313432835820897, 'fraction_numerical': 0.0009950248756218905, 'mean_word_length': 1.6298234139960759, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 111, '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': '5397246', 'n_tokens_mistral': 1269, 'n_tokens_neox': 1141, 'n_words': 237}