<commit_before>{% extends "planner/elements/base_page.html" %}
{% block head %}
{% endblock %}
{% block content %}
    {% for trip in object_list %}
        <div class="trip_result">
        <span>
            {% for step in trip %}
                {{ step.origin.name|add:" -> " }}
            {% endfor %}
            {% with trip|last as last %}
                {{ last.destination.name }}
            {% endwith %}
        </span>
        </div>
    {% endfor %}
{% endblock %}<commit_msg>searchtrip.html: add button to join the trip<commit_after>{% extends "planner/elements/base_page.html" %}
{% block head %}
{% endblock %}
{% block content %}
    {% for trip in object_list %}
        <div class="trip_result">
        <span>
            {% for step in trip %}
                {{ step.origin.name|add:" -> " }}
            {% endfor %}
            {% with trip|last as last %}
                {{ last.destination.name }}
                </span>
                <form method="post" action="{% url 'planner:join-trip' trip_id=trip.0.trip.id %}">
                {% csrf_token %}
                <input type="hidden" name="step_min" value="{{ trip.0.order }}"/>
                <input type="hidden" name="step_max" value="{{ last.order }}"/>
            {% endwith %}
            <input type="submit"/>
            </form>
        </div>
    {% endfor %}
{% endblock %}
{'fraction_non_alphanumeric': 0.17321688500727803, 'fraction_numerical': 0.001455604075691412, 'mean_word_length': 1.6750972762645915, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 18, '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': '6528362', 'n_tokens_mistral': 444, 'n_tokens_neox': 383, 'n_words': 88}