<commit_before><div id="{{ id }}" class="mb-element mb-element-printclient" title="{{ title |trans }}">
    
    {% if configuration.type == 'element' %}
        <input type="button" id="printToggle" active="false" value="{{ 'mb.core.printclient.btn.activate' | trans }}"/>
        <div class="printElement hidden">
        <br>    
    {% endif %}
    
    <form id="formats" action="">
        
        <label class="labelInput">{{ 'mb.core.printclient.label.template' | trans }}</label>
        <div class="dropdown">
            <select name="template" class="hiddenDropdown">
                {% for id, template in configuration.templates %}
                    <option value="{{ id }}">{{ template.label }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        <label class="labelInput">{{ 'mb.core.printclient.label.quality' | trans }}</label>
        <div class="dropdown">
            <select name="quality" class="hiddenDropdown">
                {% for key , label in configuration.quality_levels %}
                    <option value="{{ key }}">{{ label }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        <label class="labelInput">{{ 'mb.core.printclient.label.scale' | trans }}</label>
        <div class="dropdown">
            <select name="scale_select" class="hiddenDropdown">
                {% for key in configuration.scales %}
                    <option value="{{ key }}">1:{{ key }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        {% if configuration.rotatable is defined and configuration.rotatable == 1 %}
            <label class="labelInput" for="rotation">{{ 'mb.core.printclient.label.rotation' | trans }}</label>
            <input class="input" type="text" name="rotation" value="0"/>
	    {% else %}
			<input class="input" type="text" name="rotation" value="0" style="display: none"/>
        {% endif %}

        {% if configuration.optional_fields is defined %}
            {% for key,field in configuration.optional_fields %}
                {% set required = '' %}
                <label class="labelInput">{{ field.label }}
                    {% if field.options.required == true %}
                        <span class="required">*</span>
                        {% set required = 'required=required' %}
                    {% endif %}
                </label>
                <input type="text" class="input validationInput" name="extra[{{ key }}]" {{ required }}>
            {% endfor %}
        {% endif %}
        
        {% if configuration.legend is defined and configuration.legend == 1 %}
            {% set legend_checked = 'checked' %}
            {% if configuration.legend_default_behaviour is defined and configuration.legend_default_behaviour == 0 %}
                {% set legend_checked = '' %}
            {% endif %}    
            <div class="checkWrapper left iconCheckbox iconCheckboxActive " data-icon="iconCheckbox">
                <input class="checkbox" type="checkbox" name="printLegend" value="1" {{ legend_checked }}>
            </div>
            <label class="labelCheck">{{ 'mb.core.printclient.label.legend' | trans }}</label>
        {% endif %}
        
        <div id="layers"></div>
        <input type="submit" style="display: none"/>
        <input type="button" class="printSubmit hidden" value="{{ 'mb.core.printclient.popup.btn.ok' | trans }}"/>
    
    </form>
    {% if configuration.type == 'element' %}
        </div>
    {% endif %}    
</div><commit_msg>Hotfix print twig template generation<commit_after><div id="{{ id }}" class="mb-element mb-element-printclient" title="{{ title |trans }}">
    
    {%  if configuration['type'] is defined and configuration.type == 'element' %}
        <input type="button" id="printToggle" active="false" value="{{ 'mb.core.printclient.btn.activate' | trans }}"/>
        <div class="printElement hidden">
        <br>    
    {% endif %}
    
    <form id="formats" action="">
        
        <label class="labelInput">{{ 'mb.core.printclient.label.template' | trans }}</label>
        <div class="dropdown">
            <select name="template" class="hiddenDropdown">
                {% for id, template in configuration.templates %}
                    <option value="{{ id }}">{{ template.label }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        <label class="labelInput">{{ 'mb.core.printclient.label.quality' | trans }}</label>
        <div class="dropdown">
            <select name="quality" class="hiddenDropdown">
                {% for key , label in configuration.quality_levels %}
                    <option value="{{ key }}">{{ label }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        <label class="labelInput">{{ 'mb.core.printclient.label.scale' | trans }}</label>
        <div class="dropdown">
            <select name="scale_select" class="hiddenDropdown">
                {% for key in configuration.scales %}
                    <option value="{{ key }}">1:{{ key }}</option>
                {% endfor %}
            </select>
            <div class="dropdownValue iconDown"></div>
            <ul class="dropdownList"></ul>
        </div>

        {% if configuration.rotatable is defined and configuration.rotatable == 1 %}
            <label class="labelInput" for="rotation">{{ 'mb.core.printclient.label.rotation' | trans }}</label>
            <input class="input" type="text" name="rotation" value="0"/>
	    {% else %}
			<input class="input" type="text" name="rotation" value="0" style="display: none"/>
        {% endif %}

        {% if configuration.optional_fields is defined %}
            {% for key,field in configuration.optional_fields %}
                {% set required = '' %}
                <label class="labelInput">{{ field.label }}
                    {% if field.options.required == true %}
                        <span class="required">*</span>
                        {% set required = 'required=required' %}
                    {% endif %}
                </label>
                <input type="text" class="input validationInput" name="extra[{{ key }}]" {{ required }}>
            {% endfor %}
        {% endif %}
        
        {% if configuration.legend is defined and configuration.legend == 1 %}
            {% set legend_checked = 'checked' %}
            {% if configuration.legend_default_behaviour is defined and configuration.legend_default_behaviour == 0 %}
                {% set legend_checked = '' %}
            {% endif %}    
            <div class="checkWrapper left iconCheckbox iconCheckboxActive " data-icon="iconCheckbox">
                <input class="checkbox" type="checkbox" name="printLegend" value="1" {{ legend_checked }}>
            </div>
            <label class="labelCheck">{{ 'mb.core.printclient.label.legend' | trans }}</label>
        {% endif %}
        
        <div id="layers"></div>
        <input type="submit" style="display: none"/>
        <input type="button" class="printSubmit hidden" value="{{ 'mb.core.printclient.popup.btn.ok' | trans }}"/>
    
    </form>
    {% if configuration['type'] is defined and configuration.type == 'element' %}
        </div>
    {% endif %}    
</div>
{'fraction_non_alphanumeric': 0.1636480411046885, 'fraction_numerical': 0.001798330122029544, 'mean_word_length': 2.058130400628437, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 127, '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': '4556622', 'n_tokens_mistral': 2161, 'n_tokens_neox': 1958, 'n_words': 467}