<commit_before>{% extends "contact.html" %}

{% block contact-content %}

    {% if not is_mobile %}<h2 class="contact-header">Report a problem</h2>{% endif %}
    <form action="/contact/{{ spot_id }}" method="post">{% csrf_token %}
        <div class="fieldWrapper">
            {{ spot_name }}<br />
            {{ spot_description }}
        </div>
        {{ form.non_field_errors }}
        {% for field in form %}
            {% if field.name == "email_confirmation" %}
                <div style="display: None;">
                    LEAVE BLANK {{ field }}
                </div>
            {% else %}
                <div class="fieldWrapper">
                    {{ field.label_tag }}{{ field }}
                    {% for error in field.errors %}
                        <strong class="alert">{{ error|escape }}</strong>
                    {% endfor %}
                </div>
            {% endif %}
        {% endfor %}
        <input type="submit" value="Send" />
    </form>
{% endblock %}
<commit_msg>adds an appending slash on the form post only if there is a spot_id<commit_after>{% extends "contact.html" %}

{% block contact-content %}

    {% if not is_mobile %}<h2 class="contact-header">Report a problem</h2>{% endif %}

    <form action="/contact/{% if spot_id != '' %}{{ spot_id }}/{% endif %}" method="post">{% csrf_token %}
        <div class="fieldWrapper">
            {{ spot_name }}<br />
            {{ spot_description }}
        </div>
        {{ form.non_field_errors }}
        {% for field in form %}
            {% if field.name == "email_confirmation" %}
                <div style="display: None;">
                    LEAVE BLANK {{ field }}
                </div>
            {% else %}
                <div class="fieldWrapper">
                    {{ field.label_tag }}{{ field }}
                    {% for error in field.errors %}
                        <strong class="alert">{{ error|escape }}</strong>
                    {% endfor %}
                </div>
            {% endif %}
        {% endfor %}
        <input type="submit" value="Send" />
    </form>
{% endblock %}

{'fraction_non_alphanumeric': 0.16423529411764706, 'fraction_numerical': 0.0018823529411764706, 'mean_word_length': 1.5583634175691938, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '3800727', 'n_tokens_mistral': 641, 'n_tokens_neox': 560, 'n_words': 138}