<commit_before><%@include file="/WEB-INF/taglibs.jsp" %>

<div style="margin-top: 4px; height: 60px">
    <c:set var="savedLocationStatusHtml">
        <c:if test="${empty point}">Nog geen locatie.</c:if>
        <c:if test="${!empty point}">Coordinaten: <span id='location'>${point}</span></c:if>
    </c:set>
    <b>Locatie</b><br>
    <br>
    <span id="locationStatus" style="font-weight: bold">${savedLocationStatusHtml}</span>
    <input id="newLocation" disabled="${notEditable}" type="button" ${!empty point ? 'style="display: none"' : ""} value="Locatie aanwijzen in kaart" onclick="newLocationClicked();">
    <input id="reset" type="button" style="display: none" value="Reset" onclick="resetClicked();">
    <input id="changeLocation" disabled="${notEditable}" type="button" ${empty point ? 'style="display: none"' : ""} value="Locatie wijzigen" onclick="changeLocationClicked();">
    <input id="deleteLocation" disabled="${notEditable}" type="button" ${empty point ? 'style="display: none"' : ""} value="Wissen" onclick="deleteLocationClicked();">
    <br>
</div>

    <script type="text/javascript">
        var savedLocationStatusHtml = "${savedLocationStatusHtml}";
        <c:if test="${point == null}">
            var oldLocation = null;
        </c:if>
        <c:if test="${point != null}">
            var oldLocation = [${point}];
        </c:if>
        var newLocation;

        <c:if test="${locationUpdated}">
            parent.flamingo.callMethod("map_kar_layer", "update");
        </c:if>

        parent.flamingo_cancelEdit();

        function resetClicked() {
            parent.flamingo_cancelEdit();
            newLocation = null;
            document.forms[0].location.value = "";
            document.getElementById("locationStatus").innerHTML = savedLocationStatusHtml;
            document.getElementById("reset").style.display = "none";
            document.getElementById("newLocation").style.display = "none";
            if(oldLocation != null) {
                document.getElementById("changeLocation").style.display = "inline";
                document.getElementById("deleteLocation").style.display = "inline";
            } else {
                document.getElementById("newLocation").style.display = "inline";<commit_msg>maak juiste disabled attributes<commit_after><%@include file="/WEB-INF/taglibs.jsp" %>

<div style="margin-top: 4px; height: 60px">
    <c:set var="savedLocationStatusHtml">
        <c:if test="${empty point}">Nog geen locatie.</c:if>
        <c:if test="${!empty point}">Coordinaten: <span id='location'>${point}</span></c:if>
    </c:set>
    <b>Locatie</b>${notEditable}<br>
    <br>
    <span id="locationStatus" style="font-weight: bold">${savedLocationStatusHtml}</span>
    <input id="newLocation" ${notEditable ? 'disabled="disabled"' : ''} type="button" ${!empty point ? 'style="display: none"' : ""} value="Locatie aanwijzen in kaart" onclick="newLocationClicked();">
    <input id="reset" type="button" style="display: none" value="Reset" onclick="resetClicked();">
    <input id="changeLocation" ${notEditable ? 'disabled="disabled"' : ''} type="button" ${empty point ? 'style="display: none"' : ""} value="Locatie wijzigen" onclick="changeLocationClicked();">
    <input id="deleteLocation" ${notEditable ? 'disabled="disabled"' : ''} type="button" ${empty point ? 'style="display: none"' : ""} value="Wissen" onclick="deleteLocationClicked();">
    <br>
</div>

    <script type="text/javascript">
        var savedLocationStatusHtml = "${savedLocationStatusHtml}";
        <c:if test="${point == null}">
            var oldLocation = null;
        </c:if>
        <c:if test="${point != null}">
            var oldLocation = [${point}];
        </c:if>
        var newLocation;

        <c:if test="${locationUpdated}">
            parent.flamingo.callMethod("map_kar_layer", "update");
        </c:if>

        parent.flamingo_cancelEdit();

        function resetClicked() {
            parent.flamingo_cancelEdit();
            newLocation = null;
            document.forms[0].location.value = "";
            document.getElementById("locationStatus").innerHTML = savedLocationStatusHtml;
            document.getElementById("reset").style.display = "none";
            document.getElementById("newLocation").style.display = "none";
            if(oldLocation != null) {
                document.getElementById("changeLocation").style.display = "inline";
                document.getElementById("deleteLocation").style.display = "inline";
            } else {
                document.getElementById("newLocation").style.display = "inline";
{'fraction_non_alphanumeric': 0.17810880829015543, 'fraction_numerical': 0.0017271157167530224, 'mean_word_length': 3.4548076923076922, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '6703955', 'n_tokens_mistral': 1338, 'n_tokens_neox': 1299, 'n_words': 239}