<commit_before>{% extends '::base.html.twig' %}

{% block title %}API list{% endblock %}

{% block body %}
    <a class="btn-info btn" href="{{ path('api_new', appParams) }}">New API</a>

    <table class="table">
        <thead>
            <tr>
                <th>Name</th>
                <th>Table</th>
                <th>Action</th>
                <th>Manage</th>
                <th>Link</th>
            </tr>
        </thead>
        {% for api in apis %}
            <tr>
                <td>
                    {{ api.name }}
                </td>
                <td>
                    {{ api.store.name }}
                </td>
                <td>
                    {{ api.action }}
                </td>
                <td>
                    <form method="POST" action="{{ path('api_delete', appParams|merge({'uuid': api.uuid})) }}" onsubmit="return confirm('Are you sure?');">
                        <a class="btn btn-sm btn-success " href="{{ path('api_edit', appParams|merge({'uuid': api.uuid})) }}">Edit</a>
                        <button class="btn btn-sm btn-danger" type="submit">Delete</button>
                    </form>
                </td>
                <td>
                    <a class="btn btn-sm btn-default" href="{{ path('api_show', {'uuid': api.uuid}) }}" target="_blank">Link</a>
                    <a class="btn btn-sm btn-default" href="{{ apiVisualizerUrl }}#{{ url('api_show', {'uuid': api.uuid}) }}" target="_blank">Get</a>
                </td>
            </tr>
        {% endfor %}
    </table>


{% endblock %}
<commit_msg>hide edit button on InsertAPI<commit_after>{% extends '::base.html.twig' %}

{% block title %}API list{% endblock %}

{% block body %}
    <a class="btn-info btn" href="{{ path('api_new', appParams) }}">New API</a>

    <table class="table">
        <thead>
            <tr>
                <th>Name</th>
                <th>Table</th>
                <th>Action</th>
                <th>Manage</th>
                <th>Link</th>
            </tr>
        </thead>
        {% for api in apis %}
            <tr>
                <td>
                    {{ api.name }}
                </td>
                <td>
                    {{ api.store.name }}
                </td>
                <td>
                    {{ api.action }}
                </td>
                <td>
                    <form method="POST" action="{{ path('api_delete', appParams|merge({'uuid': api.uuid})) }}" onsubmit="return confirm('Are you sure?');">
                        {% if api.action != 'Insert' %}
                            <a class="btn btn-sm btn-success " href="{{ path('api_edit', appParams|merge({'uuid': api.uuid})) }}">Edit</a>
                        {% endif %}
                        <button class="btn btn-sm btn-danger" type="submit">Delete</button>
                    </form>
                </td>
                <td>
                    <a class="btn btn-sm btn-default" href="{{ path('api_show', {'uuid': api.uuid}) }}" target="_blank">Link</a>
                    <a class="btn btn-sm btn-default" href="{{ apiVisualizerUrl }}#{{ url('api_show', {'uuid': api.uuid}) }}" target="_blank">Get</a>
                </td>
            </tr>
        {% endfor %}
    </table>


{% endblock %}

{'fraction_non_alphanumeric': 0.18456375838926176, 'fraction_numerical': 0.0, 'mean_word_length': 1.2946116165150454, 'pattern_counts': {'":': 0, '<': 83, '<?xml version=': 0, '>': 83, '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': '5937652', 'n_tokens_mistral': 1004, 'n_tokens_neox': 913, 'n_words': 198}