<commit_before>var socialshare = {

    init: function () {
        socialshare.bindEvents();
    },

    bindEvents: function() {
        // Share buttons
        jQuery('.facebook-share').click(function() {
            socialshare.shareFacebook(jQuery(this).data('share-link'), jQuery(this).data('share-caption'));
            return false;
        });

        jQuery('.twitter-share').click(function() {
            socialshare.shareTwitter(jQuery(this).data('share-text'));
            return false;
        });

        jQuery('.googleplus-share').click(function() {
            socialshare.shareGooglePlus(jQuery(this).data('share-link'));
            return false;
        });

        jQuery('.print-share').click(function() {
            socialshare.sharePrint();
            return false;
        });

        // Share counts
        jQuery('.facebook-share').each(function () {
            var $obj = $(this);
            (function ($obj) {
                var $count = $obj.find('.count');

                if ($count.length) {
                    var link = $obj.data('share-link');

                    if (typeof(link) === 'undefined') {
                        link = document.location.href;
                    }

                    var query = 'SELECT like_count, total_count, share_count, click_count, comment_count FROM link_stat WHERE url="'+ link +'"';
                    $.get('https://graph.facebook.com/fql?q=' + encodeURIComponent(query), function (response) {
                        $count.html(socialshare.formatCount(response.data[0].total_count));
                    }, 'jsonp');
                }
            })($obj);
        });

        jQuery('.twitter-share').each(function () {
            var $obj = $(this);
            (function ($obj) {
                var $count = $obj.find('.count');
<commit_msg>add support for jquery safe mode in wordpress<commit_after>var socialshare = {

    init: function () {
        socialshare.bindEvents();
    },

    bindEvents: function() {
        // Share buttons
        jQuery('.facebook-share').click(function() {
            socialshare.shareFacebook(jQuery(this).data('share-link'), jQuery(this).data('share-caption'));
            return false;
        });

        jQuery('.twitter-share').click(function() {
            socialshare.shareTwitter(jQuery(this).data('share-text'));
            return false;
        });

        jQuery('.googleplus-share').click(function() {
            socialshare.shareGooglePlus(jQuery(this).data('share-link'));
            return false;
        });

        jQuery('.print-share').click(function() {
            socialshare.sharePrint();
            return false;
        });

        // Share counts
        jQuery('.facebook-share').each(function () {
            var $obj = jQuery(this);
            (function ($obj) {
                var $count = $obj.find('.count');

                if ($count.length) {
                    var link = $obj.data('share-link');

                    if (typeof(link) === 'undefined') {
                        link = document.location.href;
                    }

                    var query = 'SELECT like_count, total_count, share_count, click_count, comment_count FROM link_stat WHERE url="'+ link +'"';
                    $.get('https://graph.facebook.com/fql?q=' + encodeURIComponent(query), function (response) {
                        $count.html(socialshare.formatCount(response.data[0].total_count));
                    }, 'jsonp');
                }
            })($obj);
        });

        jQuery('.twitter-share').each(function () {
            var $obj = jQuery(this);
            (function ($obj) {
                var $count = $obj.find('.count');

{'fraction_non_alphanumeric': 0.15380493033226153, 'fraction_numerical': 0.0005359056806002144, 'mean_word_length': 1.685611510791367, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5781540', 'n_tokens_mistral': 966, 'n_tokens_neox': 920, 'n_words': 159}