<commit_before>{% extends "base.html" %}
{% block title %}List of submitted solvers{% endblock %}
{% block content %}
<h2>List of submitted solvers</h2>
    {% if solvers %}
    <ul>
        {% for solver in solvers %}
            <li>
                <a href="{{ url_for('frontend.solver_details', database=database, solver_id=solver.idSolver) }}">{{solver.name}}</a>
                <a href="{{ url_for('accounts.submit_solver', database=database, id=solver.idSolver) }}">[Edit]</a>
                <a href="{{ url_for('accounts.delete_solver', database=database, solver_id=solver.idSolver) }}">[Delete]</a>
            </li>
        {% endfor %}
    </ul>
    {% else %}<commit_msg>confirm solver deletion<commit_after>{% extends "base.html" %}
{% block title %}List of submitted solvers{% endblock %}
{% block head %}
    {{ super() }}
    <script type="text/javascript">
        var doConfirm = function(id) {
            if (confirm("Do you really want to delete this solver?")) return true;
            else return false;
        }
    </script>
{% endblock %}
{% block content %}
<h2>List of submitted solvers</h2>
    {% if solvers %}
    <ul>
        {% for solver in solvers %}
            <li>
                <a href="{{ url_for('frontend.solver_details', database=database, solver_id=solver.idSolver) }}">{{solver.name}}</a>
                <a href="{{ url_for('accounts.submit_solver', database=database, id=solver.idSolver) }}">[Edit]</a>
                <a onclick="return doConfirm(this.id);" href="{{ url_for('accounts.delete_solver', database=database, solver_id=solver.idSolver) }}">[Delete]</a>
            </li>
        {% endfor %}
    </ul>
    {% else %}
{'fraction_non_alphanumeric': 0.17857142857142858, 'fraction_numerical': 0.002380952380952381, 'mean_word_length': 2.7775280898876407, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, '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': '6975352', 'n_tokens_mistral': 573, 'n_tokens_neox': 521, 'n_words': 120}