<commit_before>{% extends "questionnaire.html" %}
{% load i18n %}

{% block stylesheet %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/questionnaire.css" />
{% endblock %}


{% block content %}

<div class="feature_comments analysis_popup">
    {% trans "Touch a feature with your mouse to see the comments!" %}
</div>
<div class="user_info analysis_popup">
</div>
    
<p style="padding-left: 10px">
{% trans "Features originating from the same drawbutton are colored alike. Touch them with your mouse to see the comments! Filtering on long answers is not supported." %}
</p>

<div id="property-ctrl">
    <div class="property-ctrl-general" style="margin-bottom:7px">
        <form class="property-ctrl-andor">
            <span><strong>Apply filters as:</strong></span>
                <label><input type="radio" name="andor" value="and">AND</label>
                <label><input type="radio" name="andor" value="or">OR</label>
        </form>
    </div>
<ul class="property-ctrl-main">
</ul>
</div>
<div id="feature-ctrl">
<form class="feature-ctrl-andor">
    <span><strong>Apply attribute filters as:</strong></span>
        <label><input type="radio" name="andor" value="and">AND</label>
        <label><input type="radio" name="andor" value="or">OR</label>
</form>
</div>
{% comment %}
<div class="instructions">
    <p><strong>Instructions for attribute selection</strong></p>
    <p>
    Assume your multiple-choice question had four options: w, x, y, and z. If x and y were checked above, it could have two distinct meanings: 
    </p>
    <ul style="margin-left: 10px">
        <li>A) answers that include x or y ( {x}, {x,y}, {y,z}, {x,y,w}, ...)</li>
        <li>B) answers that include neither w nor z ( {x}, {y}, {x,y} )</li>
    </ul>

    <p>
    In order to get A, start from all checkboxes unchecked and check x and y. To get B, start from all checkboxes checked and then uncheck w and z.
    </p>
    <p>
    For more detailed analysis you may use e.g. <a href="http://qgis.org/" target="_new">QuatumGIS</a>.
    </p>
</div>
{% endcomment %}
{% endblock content %}


{% block extra_js %}
<script src="{{ STATIC_URL }}js/feedback.js"></script>
{% endblock extra_js %}
{% block questionnaire_init %}

jQuery(document).ready(function() {
    gnt.questionnaire.init('', '#forms', questionnaire_area, data_group);
});
{% endblock questionnaire_init %}



<commit_msg>the show_feedback has to be called only after the map has been loaded<commit_after>{% extends "questionnaire.html" %}
{% load i18n %}

{% block stylesheet %}
    <link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/questionnaire.css" />
{% endblock %}


{% block content %}

<div class="feature_comments analysis_popup">
    {% trans "Touch a feature with your mouse to see the comments!" %}
</div>
<div class="user_info analysis_popup">
</div>
    
<p style="padding-left: 10px">
{% trans "Features originating from the same drawbutton are colored alike. Touch them with your mouse to see the comments! Filtering on long answers is not supported." %}
</p>

<div id="property-ctrl">
    <div class="property-ctrl-general" style="margin-bottom:7px">
        <form class="property-ctrl-andor">
            <span><strong>Apply filters as:</strong></span>
                <label><input type="radio" name="andor" value="and">AND</label>
                <label><input type="radio" name="andor" value="or">OR</label>
        </form>
    </div>
<ul class="property-ctrl-main">
</ul>
</div>
<div id="feature-ctrl">
<form class="feature-ctrl-andor">
    <span><strong>Apply attribute filters as:</strong></span>
        <label><input type="radio" name="andor" value="and">AND</label>
        <label><input type="radio" name="andor" value="or">OR</label>
</form>
</div>
{% comment %}
<div class="instructions">
    <p><strong>Instructions for attribute selection</strong></p>
    <p>
    Assume your multiple-choice question had four options: w, x, y, and z. If x and y were checked above, it could have two distinct meanings: 
    </p>
    <ul style="margin-left: 10px">
        <li>A) answers that include x or y ( {x}, {x,y}, {y,z}, {x,y,w}, ...)</li>
        <li>B) answers that include neither w nor z ( {x}, {y}, {x,y} )</li>
    </ul>

    <p>
    In order to get A, start from all checkboxes unchecked and check x and y. To get B, start from all checkboxes checked and then uncheck w and z.
    </p>
    <p>
    For more detailed analysis you may use e.g. <a href="http://qgis.org/" target="_new">QuatumGIS</a>.
    </p>
</div>
{% endcomment %}
{% endblock content %}


{% block extra_js %}
<script src="{{ STATIC_URL }}js/feedback.js"></script>
{% endblock extra_js %}
{% block questionnaire_init %}

jQuery(document).ready(function() {
    gnt.questionnaire.init('', '#forms', questionnaire_area, data_group);
    function check_map_loaded(){
        if (gnt.map_loaded){
            show_feedback();
        } else {
            setTimeout(check_map_loaded,200);
        }
    }
    check_map_loaded();
});
{% endblock questionnaire_init %}




{'fraction_non_alphanumeric': 0.1696957724219676, 'fraction_numerical': 0.0033583563808771235, 'mean_word_length': 3.5367383512544803, 'pattern_counts': {'":': 0, '<': 125, '<?xml version=': 0, '>': 125, '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': '5003554', 'n_tokens_mistral': 1682, 'n_tokens_neox': 1579, 'n_words': 488}