<commit_before>(function ($) {

$(document).on('mouseenter', '#layout_content img:not(.big-image-handled)', function () {
    var $that   = $(this),
        $parent = $that.parent(),
        src     = $that.attr('src'),
        width   = parseInt($that.width(), 10),
        height  = parseInt($that.height(), 10),
        img;

    if ($that.is('[class*=avatar][class*=user]')
        || ($parent.is('a[href]') && $parent.attr('href') !== src)
        || $that.attr('src').match(STUDIP.ASSETS_URL + 'images/icons/'))
    {
        // Prevent any further handling
        $(this).addClass('big-image-handled'); 
        return;
    }

    img = new Image();
    img.onload = function () {
        if (img.width > width * window.devicePixelRatio || img.height > height * window.devicePixelRatio) {
            var offset = $that.offset(),
                info   = $('<div/>').hide(),
                text   = 'Dieses Bild wird verkleinert dargestellt.'.toLocaleString() + ' ';
            if (width >= 500) {
                text += '<nobr>' + 'Klicken Sie auf das Bild, um es in Originalgre zu ffnen.'.toLocaleString() + '</nobr>';
            } else if (width >= 300) {
                text += '<nobr>' + 'Klicken fr Originalgre.'.toLocaleString() + '</nobr>';
            } else if (width < 100) {
                text = $('<img>').attr('title', text).attr('src', STUDIP.ASSETS_URL + 'images/icons/16/white/visibility-invisible.png');
            }

            info.addClass('big-image-info').html(text);

            $that.wrap('<div class="big-image-handler"/>').after(info).addClass('big-image-handled');
        }
    };
    img.src = src;
});

$(document).on('mouseenter', '.big-image-handler', function () {
    $('div', this).stop(true, true).show('slide', {direction: 'up'});
}).on('mouseleave', '.big-image-handler', function () {
    $('div', this).stop(true, true).hide('slide', {direction: 'up'});<commit_msg>exlude svg, fixes #4<commit_after>(function ($) {

$(document).on('mouseenter', '#layout_content img:not(.big-image-handled)', function () {
    var $that   = $(this),
        $parent = $that.parent(),
        src     = $that.attr('src'),
        width   = parseInt($that.width(), 10),
        height  = parseInt($that.height(), 10),
        img;

    if ($that.is('[class*=avatar][class*=user]')
        || ($parent.is('a[href]') && $parent.attr('href') !== src)
        || src.match(STUDIP.ASSETS_URL + 'images/icons/')
        || src.match(/\.svg/))
    {
        // Prevent any further handling
        $(this).addClass('big-image-handled'); 
        return;
    }

    img = new Image();
    img.onload = function () {
        if (img.width > width * window.devicePixelRatio || img.height > height * window.devicePixelRatio) {
            var offset = $that.offset(),
                info   = $('<div/>').hide(),
                text   = 'Dieses Bild wird verkleinert dargestellt.'.toLocaleString() + ' ';
            if (width >= 500) {
                text += '<nobr>' + 'Klicken Sie auf das Bild, um es in Originalgröße zu öffnen.'.toLocaleString() + '</nobr>';
            } else if (width >= 300) {
                text += '<nobr>' + 'Klicken für Originalgröße.'.toLocaleString() + '</nobr>';
            } else if (width < 100) {
                text = $('<img>').attr('title', text).attr('src', STUDIP.ASSETS_URL + 'images/icons/16/white/visibility-invisible.png');
            }

            info.addClass('big-image-info').html(text);

            $that.wrap('<div class="big-image-handler"/>').after(info).addClass('big-image-handled');
        }
    };
    img.src = src;
});

$(document).on('mouseenter', '.big-image-handler', function () {
    $('div', this).stop(true, true).show('slide', {direction: 'up'});
}).on('mouseleave', '.big-image-handler', function () {
    $('div', this).stop(true, true).hide('slide', {direction: 'up'});
{'fraction_non_alphanumeric': 0.2096982202734073, 'fraction_numerical': 0.007995873097755997, 'mean_word_length': 2.4077328646748684, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 25, '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': '2840095', 'n_tokens_mistral': 1267, 'n_tokens_neox': 1211, 'n_words': 227}