<commit_before>$(function () {
    var dragging

    var lastx
    var lasty

    $(document).on('mousedown', '.dragresize', function(e) {
        e.preventDefault()
        dragging = $(e.target)
        dragging.addClass('dragging')
        lastx = e.pageX
        lasty = e.pageY
    })

    $(document).on('mousemove', function (e) {
        if (!dragging) {
            return
        }
        e.preventDefault()

        var newx = e.pageX - lastx
        var newy = e.pageY - lasty

        var width = dragging.width()
        var height = dragging.height()

        dragging.addClass('dragged')

        if (Math.abs(newx) > Math.abs(newy)) {
            dragging.width(width + newx)
            dragging.height('auto')
        } else {
            dragging.height(height + newy)
            dragging.width('auto')
        }


        lastx = e.pageX
        lasty = e.pageY

    })

    $(document).on('mouseup', function (e) {
        if (!dragging) {
            return
        }
        e.preventDefault()

        dragging.removeClass('dragging')
        dragging = undefined<commit_msg>Double click zoom full<commit_after>$(function () {
    var dragging

    var lastx
    var lasty

    $(document).on('dblclick', '.dragresize', function (e) {
        var target = $(e.target)
        target.toggleClass('full')
        if (target.hasClass('full')) {
            target.addClass('dragged')
            target.width(e.target.naturalWidth)
            target.height(e.target.naturalHeight)
        } else {
            target.removeClass('dragged')
            target.width('auto')
            target.height('auto')
        }
    })

    $(document).on('mousedown', '.dragresize', function(e) {
        if (event.which != 1) {
            return
        }
        dragging = $(e.target)
        dragging.addClass('dragging')
        lastx = e.pageX
        lasty = e.pageY
    })

    $(document).on('mousemove', function (e) {
        if (!dragging) {
            return
        }
        
        e.preventDefault();
        var newx = e.pageX - lastx
        var newy = e.pageY - lasty

        
        var width = dragging.width()
        var height = dragging.height()

        dragging.addClass('dragged')

        if (Math.abs(newx) > Math.abs(newy)) {
            dragging.width(width + newx)
            dragging.height('auto')
        } else {
            dragging.height(height + newy)
            dragging.width('auto')
        }


        lastx = e.pageX
        lasty = e.pageY

    })

    $(document).on('mouseup', function (e) {
        if (!dragging) {
            return
        }
        if (event.which != 1) {
            return
        }
        dragging.removeClass('dragging')
        dragging = undefined
{'fraction_non_alphanumeric': 0.1314160902803058, 'fraction_numerical': 0.0007280669821623589, 'mean_word_length': 1.5634328358208955, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7425989', 'n_tokens_mistral': 833, 'n_tokens_neox': 806, 'n_words': 153}