<commit_before>{% with
    scrollwheel|default:"false",
    blackwhite|default:"false",
    disabledefaultui|default:"false",
    gridsize|default:"60",
    loadgeojson,
    datastyle,
    mapstyle,
    container|default:"map",
    height,
    panOffsetX|default:0,
    panOffsetY|default:0
as
    scrollwheel,
    blackwhite,
    disabledefaultui,
    gridsize,
    loadgeojson,
    datastyle,
    mapstyle,
    container,
    height,
    panOffsetX,
    panOffsetY
%}

    {% block map %}

            {% if result|length > 0 %}

                <div id="{{ container }}" style="
                {% if height %}
                    height: {{ height }}px
                {% else %}
                    height: 100%
                {% endif %}
                 " class="do_googlemap map_canvas {{ class }}"

                    data-locations='
                        {% filter replace:"'":"\\&#39;" %}
                            [
                                {% include "map/map-locations.tpl" %}
                            ]
                        {% endfilter %}
                    '

                    data-mapoptions='
                        {
                            "scrollwheel": {{ scrollwheel }},
                            "blackwhite": {{ blackwhite }},
                            "disabledefaultui": {{ disabledefaultui }},
                            "gridsize": {{ gridsize }},
                            "panOffsetX": {{ panOffsetX }},
                            "panOffsetY": {{ panOffsetY }}
                            {% if loadgeojson %},"loadgeojson": "{{ loadgeojson }}"{% endif %}
                            {% if mapstyle %},"mapstyle": {{ mapstyle }}{% endif %}
                            {% if datastyle %},"datastyle": {{ datastyle }}{% endif %}
                        }
                    '

               ></div>
            {% else %}
                <p class="no-results">{_ No results _}</p>
            {% endif %} 
            

            {% wire name="map_infobox"
                    action={
                        postback
                        postback={
                            map_infobox
                        }
                        delegate="mod_ginger_base"
                    }
                    %}

    {% endblock %}
<commit_msg>[base] Add block around wire for position of infobox<commit_after>{% with
    scrollwheel|default:"false",
    blackwhite|default:"false",
    disabledefaultui|default:"false",
    gridsize|default:"60",
    loadgeojson,
    datastyle,
    mapstyle,
    container|default:"map",
    height,
    panOffsetX|default:0,
    panOffsetY|default:0
as
    scrollwheel,
    blackwhite,
    disabledefaultui,
    gridsize,
    loadgeojson,
    datastyle,
    mapstyle,
    container,
    height,
    panOffsetX,
    panOffsetY
%}

    {% block map %}

            {% if result|length > 0 %}

                <div id="{{ container }}" style="
                {% if height %}
                    height: {{ height }}px
                {% else %}
                    height: 100%
                {% endif %}
                 " class="do_googlemap map_canvas {{ class }}"

                    data-locations='
                        {% filter replace:"'":"\\&#39;" %}
                            [
                                {% include "map/map-locations.tpl" %}
                            ]
                        {% endfilter %}
                    '

                    data-mapoptions='
                        {
                            "scrollwheel": {{ scrollwheel }},
                            "blackwhite": {{ blackwhite }},
                            "disabledefaultui": {{ disabledefaultui }},
                            "gridsize": {{ gridsize }},
                            "panOffsetX": {{ panOffsetX }},
                            "panOffsetY": {{ panOffsetY }}
                            {% if loadgeojson %},"loadgeojson": "{{ loadgeojson }}"{% endif %}
                            {% if mapstyle %},"mapstyle": {{ mapstyle }}{% endif %}
                            {% if datastyle %},"datastyle": {{ datastyle }}{% endif %}
                        }
                    '

               ></div>
            {% else %}
                <p class="no-results">{_ No results _}</p>
            {% endif %} 
            
            {% block map_infobox_wire %}
                {% wire name="map_infobox"
                        action={
                            postback
                            postback={
                                map_infobox
                            }
                            delegate="mod_ginger_base"
                        }
                %}
            {% endblock %}

    {% endblock %}

{'fraction_non_alphanumeric': 0.11897779639715124, 'fraction_numerical': 0.0041893590280687055, 'mean_word_length': 0.9561655059401885, 'pattern_counts': {'":': 20, '<': 11, '<?xml version=': 0, '>': 13, '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': '2304', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1117, 'n_words': 203}