<commit_before>{% load i18n %}
<div class="col-md-{% if name == 'location' %}12{% else %}6{% endif %} location-group {{ name }}-select{% if location %} selected{% endif %}{% if active_field == name and map_level %} map{% endif %}">
    <div class="form-group{% if search == name and not search_results %} has-error{% endif %}" data-name="{{ name }}">
        <label for="{{ name }}_input">{{ heading }}</label>
        {% if name == 'destination' %}
            {% if origin %}
                {% if destination %}
                    <a class="swap pull-right" href="{% url 'site.route' origin=destination.location_id destination=origin.location_id %}">{% trans 'swap' %}</a>
                {% else %}
                    <a class="swap pull-right" href="{% url 'site.destination' destination=origin.location_id %}">{% trans 'swap' %}</a>
                {% endif %}
            {% elif destination %}
                <a class="swap pull-right" href="{% url 'site.origin' destination=destination.location_id %}">{% trans 'swap' %}</a>
            {% endif %}
        {% endif %}

        <div class="locationselect">
            <div class="locationselect-input">
                {% if search == name and search_results %}
                    <span class="twitter-typeahead" style="position: relative; display: inline-block;">
                {% endif %}
                        <input type="text" class="form-control input-lg" id="{{ name }}_input"
                               name="{{ name }}_search" placeholder="{% trans 'Search any Location…' %}"
                               {% if search and not location %} value="{% if search == name %}{{ search_query }}{% endif %}"{% endif %}>
                {% if search == name and search_results %}
                        <div class="tt-menu tt-open noscript" style="display: block;">
                            <div class="tt-dataset tt-dataset-0"><commit_msg>show swap link when using javascript<commit_after>{% load i18n %}
<div class="col-md-{% if name == 'location' %}12{% else %}6{% endif %} location-group {{ name }}-select{% if location %} selected{% endif %}{% if active_field == name and map_level %} map{% endif %}">
    <div class="form-group{% if search == name and not search_results %} has-error{% endif %}" data-name="{{ name }}">
        <label for="{{ name }}_input">{{ heading }}</label>
        {% if name == 'destination' %}
            {% if origin %}
                {% if destination %}
                    {% url 'site.route' origin=destination.location_id destination=origin.location_id as swap_url %}
                {% else %}
                    {% url 'site.destination' destination=origin.location_id as swap_url %}
                {% endif %}
            {% elif destination %}
                {% url 'site.origin' destination=destination.location_id as swap_url %}
            {% endif %}
            <a class="swap pull-right" href="{{ swap_url }}">{% trans 'swap' %}</a>
        {% endif %}

        <div class="locationselect">
            <div class="locationselect-input">
                {% if search == name and search_results %}
                    <span class="twitter-typeahead" style="position: relative; display: inline-block;">
                {% endif %}
                        <input type="text" class="form-control input-lg" id="{{ name }}_input"
                               name="{{ name }}_search" placeholder="{% trans 'Search any Location…' %}"
                               {% if search and not location %} value="{% if search == name %}{{ search_query }}{% endif %}"{% endif %}>
                {% if search == name and search_results %}
                        <div class="tt-menu tt-open noscript" style="display: block;">
                            <div class="tt-dataset tt-dataset-0">
{'fraction_non_alphanumeric': 0.16710457172884918, 'fraction_numerical': 0.0031529164477141357, 'mean_word_length': 2.0480384307445956, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6715215', 'n_tokens_mistral': 1103, 'n_tokens_neox': 942, 'n_words': 287}