<commit_before>{# This is the control shown/hidden #}
<div class="popup-form" id="{% block popup_id %}#popup-form{% endblock %}" style="display: none;">
    {% block form %}
        {# This lets us center the window #}
        <div class="popup-box">
            {# Actual displayed window #}
            <div class="popup-window">
                {% block title_panel %}
                    <div class="form-title">
                        {% block title_tag %}
                            <h1>{% block title %}Untitled Form{% endblock %}</h1>
                        {% endblock %}
                    </div>
                {% endblock %}
                {% block body_panel %}
                    <div class="form-body">
                        {% block body %}Be sure to override the body block.{% endblock %}
                        {% block buttons_panel %}
                          <div class="form-buttons">
                                <div class="form-button-container">
                                    {% block buttons %}
                                        {% block close_button %}
                                            <a
                                              {% block close_button_id %}{% endblock %}
                                              onclick="{% block close_click_action %}closePopup('{{ block('popup_id') }}'){% endblock %}"
                                              class="btn {% block close_button_classes %}btn-default{% endblock %} close-button key_to_click"
                                              tabindex="0"
                                            >
                                              {% block close_button_text %}Close{% endblock %}
                                            </a>
                                            <script>
                                              //Detects if the escape key is pressed and if the popup is open. If so, close the popup
                                              $(document).on(
                                                'keydown',
                                                function(event) {
                                                  console.log($("#{{ block('popup_id') }}").is(":visible"))
                                                    if (event.key == "Escape" && $("#{{ block('popup_id') }}").is(":visible")) {
                                                      {{ block('close_click_action') }}
                                                    }
                                              });
                                            </script>
                                        {% endblock %}
                                    {% endblock %}
                                </div>
                           </div>
                       {% endblock %}
                    </div>
                {% endblock %}
            </div>
        </div>
    {% endblock %}
</div>

<script>
    $(".popup-window").draggable();

    function closePopup(id) {
        $('#' + id).hide();
    }
</script>
<commit_msg>[Bugfix:Testing] Remove debug log statement (#5893)<commit_after>{# This is the control shown/hidden #}
<div class="popup-form" id="{% block popup_id %}#popup-form{% endblock %}" style="display: none;">
    {% block form %}
        {# This lets us center the window #}
        <div class="popup-box">
            {# Actual displayed window #}
            <div class="popup-window">
                {% block title_panel %}
                    <div class="form-title">
                        {% block title_tag %}
                            <h1>{% block title %}Untitled Form{% endblock %}</h1>
                        {% endblock %}
                    </div>
                {% endblock %}
                {% block body_panel %}
                    <div class="form-body">
                        {% block body %}Be sure to override the body block.{% endblock %}
                        {% block buttons_panel %}
                          <div class="form-buttons">
                                <div class="form-button-container">
                                    {% block buttons %}
                                        {% block close_button %}
                                            <a
                                              {% block close_button_id %}{% endblock %}
                                              onclick="{% block close_click_action %}closePopup('{{ block('popup_id') }}'){% endblock %}"
                                              class="btn {% block close_button_classes %}btn-default{% endblock %} close-button key_to_click"
                                              tabindex="0"
                                            >
                                              {% block close_button_text %}Close{% endblock %}
                                            </a>
                                            <script>
                                              //Detects if the escape key is pressed and if the popup is open. If so, close the popup
                                              $(document).on(
                                                'keydown',
                                                function(event) {
                                                    if (event.key == "Escape" && $("#{{ block('popup_id') }}").is(":visible")) {
                                                      {{ block('close_click_action') }}
                                                    }
                                              });
                                            </script>
                                        {% endblock %}
                                    {% endblock %}
                                </div>
                           </div>
                       {% endblock %}
                    </div>
                {% endblock %}
            </div>
        </div>
    {% endblock %}
</div>

<script>
    $(".popup-window").draggable();

    function closePopup(id) {
        $('#' + id).hide();
    }
</script>

{'fraction_non_alphanumeric': 0.11221822933681803, 'fraction_numerical': 0.001633453119895459, 'mean_word_length': 0.7449415787973782, 'pattern_counts': {'":': 3, '<': 47, '<?xml version=': 0, '>': 47, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 86, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '233845', 'n_tokens_mistral': 1264, 'n_tokens_neox': 1119, 'n_words': 286}