<commit_before>{% extends 'AppBundle::layout.html.twig' %}
{% form_theme form 'bootstrap_3_layout.html.twig' %}
{% block body %}
    <div class="row">
        <div class="col-lg-12 text-center">
            <h1>Purl.</h1>
            <p class="lead">Purl (Petite URL) is an open source project with the goal of<br> providing you with your own private URL shortener!</p>
            <div class="form-home">
                {% if link.id %}
                    <div class="form-group">
                        <label class="sr-only" for="url">URL to shorten</label>
                        <input type="url" id="js-url" class="input-lg form-control" value="{{ app.request.schemeAndHttpHost ~ '/' ~ link.code }}">
                    </div>
                    <button type="button" data-clipboard-target="#js-url" class="btn btn-primary btn-lg">Copy</button>
                {% else %}
                    {{ form_start(form) }}
                    <div class="form-group">
                        <label class="sr-only" for="url">URL to shorten</label>
                        {{ form_widget(form.url, {'attr': {'class': 'input-lg', 'placeholder': 'http(s)://example.com'}}) }}
                    </div>
                    <button type="submit" class="btn btn-primary btn-lg">Shorten URL</button>
                    {{ form_end(form) }}
                {% endif %}
            </div>
        </div>
    </div>
    <!-- /.row -->
{% endblock %}<commit_msg>Added link to add another URL<commit_after>{% extends 'AppBundle::layout.html.twig' %}
{% form_theme form 'bootstrap_3_layout.html.twig' %}
{% block body %}
    <div class="row">
        <div class="col-lg-12 text-center">
            <h1>Purl.</h1>
            <p class="lead">Purl (Petite URL) is an open source project with the goal of<br> providing you with your own private URL shortener!</p>
            <div class="form-home">
                {% if link.id %}
                    <div class="form-group">
                        <label class="sr-only" for="url">URL to shorten</label>
                        <input type="url" id="js-url" class="input-lg form-control" value="{{ app.request.schemeAndHttpHost ~ '/' ~ link.code }}">
                    </div>
                    <button type="button" data-clipboard-target="#js-url" class="btn btn-primary btn-lg">Copy</button>
                    <br><br><br>
                    <a href="/">Shorten another URL?</a>
                {% else %}
                    {{ form_start(form) }}
                    <div class="form-group">
                        <label class="sr-only" for="url">URL to shorten</label>
                        {{ form_widget(form.url, {'attr': {'class': 'input-lg', 'placeholder': 'http(s)://example.com'}}) }}
                    </div>
                    <button type="submit" class="btn btn-primary btn-lg">Shorten URL</button>
                    {{ form_end(form) }}
                {% endif %}
            </div>
        </div>
    </div>
    <!-- /.row -->
{% endblock %}
{'fraction_non_alphanumeric': 0.16887417218543047, 'fraction_numerical': 0.0033112582781456954, 'mean_word_length': 1.6476774758983348, 'pattern_counts': {'":': 0, '<': 58, '<?xml version=': 0, '>': 58, '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': '6534298', 'n_tokens_mistral': 902, 'n_tokens_neox': 833, 'n_words': 190}