<commit_before>
(function(init, $) {
    $(function () {
        init.repositories();
        init.iframe();
        init.buttons();
        init.btnTooltip();
    });
}(
(function init ($) {
    return {
        repositories: function () {
            var self = this;
            $.ajax({
                type: 'GET',
                url: 'http://simov.herokuapp.com',
                // url: 'http://code:5000',
                dataType: 'json',
                success: function (res) {
                    if (res.status == 'success')
                        $('#content').append(res.body)
                    self.links();
                    self.linkTooltips();
                    self.spaces();
                    self.icons();
                    self.show();
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    console.log(jqXHR, textStatus, errorThrown);
                }
            });
        },
        show: function () {
            $('#content').animate({opacity: 1}, 5000, function () {
                
            });
        },
        iframe: function () {
            var soundcloud = $('#soundcloud').iframe({
                onload: function (e) {
                    window.setTimeout(function () {
                        $('#soundcloud').css({display: 'none', visibility: 'visible'});
                        $('#btn-music').fadeIn();
                    }, 2000);
                }
            });
        },
        links: function () {
            $('.syntaxhighlighter a').each(function (index) {
                var url = $(this).attr('href'),
                    title = $(this).parent().next();
                if (url.indexOf('npmjs')!=-1) url += '~simov';

                var link = title.text()
                    .replace(/>(.*)<\//, '><a href="'+url+
                            '" target="_blank" title="'+url+'">$1</a>&lt;/');
                title.html(link);

                $(this).replaceWith('&rarr;');
            });
        },
        buttons: function () {
            $('#btn-music').on('mouseover', function (e) {
                $('#soundcloud').fadeIn();
            });
            $('#soundcloud').on('mouseout', function (e) {
                $('#soundcloud').fadeOut();
            });
            $('#btn-music, #btn-info').on('click', function (e) {
                return false;
            });
        },
        btnTooltip: function () {
            $('#btn-info').bt({
                positions: ['top', 'most'],
                padding: 5,
                width: 'auto',
                spikeLength: 10,
                fill: 'rgba(117, 113, 94, .5)',
                cssStyles: {color: '#f8f8f2', 'white-space': 'nowrap'},
                hoverIntentOpts: {
                    timeout: 1000
                },
                showTip: function(box){
                    $(box).fadeIn(500);
                },
                hideTip: function(box, callback){
                    $(box).animate({opacity: 0}, 500, callback);
                }
            });
        },
        linkTooltips: function () {
            $('#content .syntaxhighlighter a').bt({
                positions: ['top', 'most'],
                padding: 10,
                width: 'auto',
                spikeLength: 5,
                fill: 'rgba(85, 85, 85)',
                strokeStyle: '#a6e22e',
                cssStyles: {color: '#a6e22e', 'white-space': 'nowrap', 'font-size': 16},
                hoverIntentOpts: {
                    timeout: 0
                },
                showTip: function(box){
                    $(box).fadeIn(200);
                },
                hideTip: function(box, callback){
                    $(box).animate({opacity: 0}, 200, callback);
                }
            });
        },
        spaces: function () {
            $('.line .spaces').each(function (index) {
                var text = $(this).text(),
                    count = text.match(/^(\s*)/g)[0].length;
                var indent = isMobile() ? 2 : 8;
                $(this).text('').parent().css({'padding-left': count*indent});
            });
        },
        icons: function () {
            $('.line .plain').each(function (index) {
                var text = $(this).text(),
                    match = text.match(/^>\+\d+ ~\d+<\/$/);
                if (!match) return;
                $(this).html(text
                    .replace('+', '<i class="icon-star"></i>')
                    .replace('~', '<i class="icon-fork"></i>')
                );
            });
        }
    };
}(jQuery)), jQuery));
<commit_msg>Fix links for g+ and request pull requests<commit_after>
(function(init, $) {
    $(function () {
        init.repositories();
        init.iframe();
        init.buttons();
        init.btnTooltip();
    });
}(
(function init ($) {
    return {
        repositories: function () {
            var self = this;
            $.ajax({
                type: 'GET',
                url: 'http://simov.herokuapp.com',
                // url: 'http://code:5000',
                dataType: 'json',
                success: function (res) {
                    if (res.status == 'success')
                        $('#content').append(res.body)
                    self.links();
                    self.linkTooltips();
                    self.spaces();
                    self.icons();
                    self.show();
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    console.log(jqXHR, textStatus, errorThrown);
                }
            });
        },
        show: function () {
            $('#content').animate({opacity: 1}, 5000, function () {
                
            });
        },
        iframe: function () {
            var soundcloud = $('#soundcloud').iframe({
                onload: function (e) {
                    window.setTimeout(function () {
                        $('#soundcloud').css({display: 'none', visibility: 'visible'});
                        $('#btn-music').fadeIn();
                    }, 2000);
                }
            });
        },
        links: function () {
            $('.syntaxhighlighter a').each(function (index) {
                var url = $(this).attr('href'),
                    title = $(this).parent().next();
                if (url.indexOf('npmjs')!=-1) url += '~simov';
                if (url.indexOf('plus')!=-1) url += '+SimeonVelichkov';
                if (url.indexOf('/pulls?q=')!=-1) url += 'is%3Apr+author%3Asimov+repo%3Arequest%2Frequest+';

                var link = title.text()
                    .replace(/>(.*)<\//, '><a href="'+url+
                            '" target="_blank" title="'+url+'">$1</a>&lt;/');
                title.html(link);

                $(this).replaceWith('&rarr;');
            });
        },
        buttons: function () {
            $('#btn-music').on('mouseover', function (e) {
                $('#soundcloud').fadeIn();
            });
            $('#soundcloud').on('mouseout', function (e) {
                $('#soundcloud').fadeOut();
            });
            $('#btn-music, #btn-info').on('click', function (e) {
                return false;
            });
        },
        btnTooltip: function () {
            $('#btn-info').bt({
                positions: ['top', 'most'],
                padding: 5,
                width: 'auto',
                spikeLength: 10,
                fill: 'rgba(117, 113, 94, .5)',
                cssStyles: {color: '#f8f8f2', 'white-space': 'nowrap'},
                hoverIntentOpts: {
                    timeout: 1000
                },
                showTip: function(box){
                    $(box).fadeIn(500);
                },
                hideTip: function(box, callback){
                    $(box).animate({opacity: 0}, 500, callback);
                }
            });
        },
        linkTooltips: function () {
            $('#content .syntaxhighlighter a').bt({
                positions: ['top', 'most'],
                padding: 10,
                width: 'auto',
                spikeLength: 5,
                fill: 'rgba(85, 85, 85)',
                strokeStyle: '#a6e22e',
                cssStyles: {color: '#a6e22e', 'white-space': 'nowrap', 'font-size': 16},
                hoverIntentOpts: {
                    timeout: 0
                },
                showTip: function(box){
                    $(box).fadeIn(200);
                },
                hideTip: function(box, callback){
                    $(box).animate({opacity: 0}, 200, callback);
                }
            });
        },
        spaces: function () {
            $('.line .spaces').each(function (index) {
                var text = $(this).text(),
                    count = text.match(/^(\s*)/g)[0].length;
                var indent = isMobile() ? 2 : 8;
                $(this).text('').parent().css({'padding-left': count*indent});
            });
        },
        icons: function () {
            $('.line .plain').each(function (index) {
                var text = $(this).text(),
                    match = text.match(/^>\+\d+ ~\d+<\/$/);
                if (!match) return;
                $(this).html(text
                    .replace('+', '<i class="icon-star"></i>')
                    .replace('~', '<i class="icon-fork"></i>')
                );
            });
        }
    };
}(jQuery)), jQuery));

{'fraction_non_alphanumeric': 0.17455310199789695, 'fraction_numerical': 0.015141955835962145, 'mean_word_length': 1.1206243032329988, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '5722912', 'n_tokens_mistral': 2698, 'n_tokens_neox': 2416, 'n_words': 455}