<commit_before>
function Window(Data)
{
    $('body').prepend("<div class='border'><div class='window'>" + Data + "</div></div>");
    
    var dragged = false;
    var offset = {};

    offset.top = 16;
    offset.left = $('body').width() - $('.border').width() + 44;

    $('.border').style({top:$(window).scroll().top + offset.top + 'px', left:$(window).scroll().left + offset.left + 'px'});
    $('.border').dragondrop({ignore: 'a'});

    $('.border').on('dragend', function(event)
    {
        offset = $('.border').position();
        
        offset.top -= $(window).scroll().top;
        offset.left -= $(window).scroll().left;

        dragged = true;
    });
    
    $(window).on('scroll', function()
    {
        if(!dragged)
        {
            $('.border').transform('translate', $(window).scroll().left + offset.left + 'px',  $(window).scroll().top + offset.top + 'px');
        }
    });
}
<commit_msg>Fixed super edit unbinding body events<commit_after>
function Window(Data)
{
    var elem = document.createElement('div');
    $(elem).addClass('border');
    $(elem).append("<div class='window'>" + Data + "</div>");

    $('body').prepend(elem);
    
    var dragged = false;
    var offset = {};

    offset.top = 16;
    offset.left = $('body').width() - $('.border').width() + 44;

    $('.border').style({top:$(window).scroll().top + offset.top + 'px', left:$(window).scroll().left + offset.left + 'px'});
    $('.border').dragondrop({ignore: 'a'});

    $('.border').on('dragend', function(event)
    {
        offset = $('.border').position();
        
        offset.top -= $(window).scroll().top;
        offset.left -= $(window).scroll().left;

        dragged = true;
    });
    
    $(window).on('scroll', function()
    {
        if(!dragged)
        {
            $('.border').transform('translate', $(window).scroll().left + offset.left + 'px',  $(window).scroll().top + offset.top + 'px');
        }
    });
}

{'fraction_non_alphanumeric': 0.24564102564102563, 'fraction_numerical': 0.0041025641025641026, 'mean_word_length': 2.5732600732600734, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '7111685', 'n_tokens_mistral': 568, 'n_tokens_neox': 597, 'n_words': 103}