<commit_before>// [NOTE] this is a default basic setting for all jQuery UI Draggable objects;
// It should remain as IMMUTABLE
var baseDraggableSettings = {
    cursor:"move",
    scroll: false,
    helper: "clone",
    zIndex: 10000,
    containment: "document",
    appendTo: "body",
};

function newBaseDroppable(acceptableClasses) {
    var weakFocus = "ui-weak-focus", strongFocus = "ui-strong-focus",
    output = {
        over: function(e, ui) {
            var from = ui.draggable;
            var to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.addClass(strongFocus);
                to.removeClass(weakFocus);
            }
        },
        out: function(e, ui) {
            var from = ui.draggable;
            var to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.removeClass(strongFocus);
                to.addClass(weakFocus);
            }
        },
        activate: function(e, ui) {
            var from = ui.draggable;
            var to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.addClass(weakFocus);
            }<commit_msg>[update] drag & drop; now elements being dragged (such as fragment title, tag, ...) have a fixed size during D&D; so more easy to drag;<commit_after>// [NOTE] this is a default basic setting for all jQuery UI Draggable objects;
// It should remain as IMMUTABLE
const baseDraggableSettings = {
    cursor:"move",
    cursorAt:{ left:30 },
    scroll: false,
    helper: function() {
        var clone = $(this).clone().removeAttr("id");
        clone.css({ "max-width":60, "overflow":"hidden", "white-space":"nowrap" });
        return clone;
    },
//    helper: "clone",
    zIndex: 10000,
    containment: "document",
    appendTo: "body",
};

function newBaseDroppable(acceptableClasses) {
    var weakFocus = "ui-weak-focus", strongFocus = "ui-strong-focus",
    output = {
        over: function(e, ui) {
            var from = ui.draggable, to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.addClass(strongFocus);
                to.removeClass(weakFocus);
            }
        },
        out: function(e, ui) {
            var from = ui.draggable, to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.removeClass(strongFocus);
                to.addClass(weakFocus);
            }
        },
        activate: function(e, ui) {
            var from = ui.draggable, to = $(e.target);
            if (hasAnyClass(from, acceptableClasses)) {
                to.addClass(weakFocus);
            }
{'fraction_non_alphanumeric': 0.12734082397003746, 'fraction_numerical': 0.0052434456928838954, 'mean_word_length': 1.987695749440716, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, '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': '910359', 'n_tokens_mistral': 780, 'n_tokens_neox': 755, 'n_words': 194}