<commit_before>
// Initialize postboxes
if (typeof postboxes !== 'undefined') {
    postboxes.add_postbox_toggles(pagenow);
}

(function($){

    // Show spinner when clicking save on Modularity options page
    $('#modularity-options #publish').on('click', function () {
        $(this).siblings('.spinner').css('visibility', 'visible');
    });

    // Remove the first menu item in the Modularity submenu (admin menu)
    $('a.wp-first-item[href="admin.php?page=modularity"]').parent('li').remove();

    // Trigger autosave when switching tabs
    $('#modularity-tabs a').on('click', function (e) {
        if (wp.autosave) {
            $(window).unbind();

            wp.autosave.server.triggerSave();

            $(document).ajaxComplete(function () {
                return true;
            });
        }

        return true;
    });

    // Editor
    $('.modularity-js-draggable').draggable({
        appendTo: 'body',
        containment: 'window',
        scroll: false,
        helper: 'clone',
        revert: 'invalid',
        revertDuration: 200
    });

    $('.modularity-js-droppable').droppable({
        accept: '.modularity-js-draggable',
        hoverClass: 'modularity-state-droppable',
        drop: function(event, ui) {
            $(this).html("DROPPED");
        }
    });

})(jQuery);<commit_msg>Drop demo<commit_after>
// Initialize postboxes
if (typeof postboxes !== 'undefined') {
    postboxes.add_postbox_toggles(pagenow);
}

(function($){

    // Show spinner when clicking save on Modularity options page
    $('#modularity-options #publish').on('click', function () {
        $(this).siblings('.spinner').css('visibility', 'visible');
    });

    // Remove the first menu item in the Modularity submenu (admin menu)
    $('a.wp-first-item[href="admin.php?page=modularity"]').parent('li').remove();

    // Trigger autosave when switching tabs
    $('#modularity-tabs a').on('click', function (e) {
        if (wp.autosave) {
            $(window).unbind();

            wp.autosave.server.triggerSave();

            $(document).ajaxComplete(function () {
                return true;
            });
        }

        return true;
    });

    // Editor
    $('.modularity-js-draggable').draggable({
        appendTo: 'body',
        containment: 'window',
        scroll: false,
        helper: 'clone',
        revert: 'invalid',
        revertDuration: 200
    });

    $('.modularity-js-droppable').droppable({
        accept: '.modularity-js-draggable',
        hoverClass: 'modularity-state-droppable',
        drop: function(event, ui) {
            var module = ui.draggable;

            $(this).append('<div>' + module.find('.modularity-module-name').text() + '</div>');
        }
    });

})(jQuery);
{'fraction_non_alphanumeric': 0.1708378672470076, 'fraction_numerical': 0.002176278563656148, 'mean_word_length': 2.3552311435523112, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5865519', 'n_tokens_mistral': 859, 'n_tokens_neox': 832, 'n_words': 159}