<commit_before>/**
 * Main JS file for Casper behaviours
 */

/*globals jQuery, document */
(function ($) {
    "use strict";

    $(document).ready(function(){

        $(".post-content").fitVids();
        
        // Calculates Reading Time
        $('.post-content').readingTime({
            readingTimeTarget: '.post-reading-time',
            wordCountTarget: '.post-word-count',
        });
        
        // Creates Captions from Alt tags
        $(".post-content img").each(function() {
            // Let's put a caption if there is one
            if($(this).attr("alt"))
              $(this).wrap('<figure class="image"></figure>')
              .after('<figcaption>'+$(this).attr("alt")+'</figcaption>');
        });
        
    });
        function GetIEVersion() {
	var sAgent = window.navigator.userAgent;
	var Idx = sAgent.indexOf("MSIE");
	// If IE, return version number.
		if (Idx > 0)
			return parseInt(sAgent.substring(Idx+ 5, sAgent.indexOf(".", Idx)));
		// If IE 11 then look for Updated user agent string.
		else if (!!navigator.userAgent.match(/Trident\/7\./))
			return 11;
		else
			return 0; //It is not IE
		}
		if (GetIEVersion() > 0)
		var txt="It looks like you are using Internet Explorer, for the best experience, you should view this site in ";
		var or=" or ";
		var firefox="<a href=\"https://www.mozilla.org/en-US/firefox/new/\">Firefox</a>";
		var chrome="<a href=\"http://www.google.com/chrome/\">Chrome</a>";
		var cancel = "<i class=\"icon-cancel-circled\" onclick=\"parentNode.remove()\"></i>";
		$("headerIE").html(txt+chrome+or+firefox+cancel);
		if (GetIEVersion() == 0)
		$('#headerIE').html('');
}(jQuery));<commit_msg>Update index.js<commit_after>/**
 * Main JS file for Casper behaviours
 */

/*globals jQuery, document */
(function ($) {
    "use strict";

    $(document).ready(function(){

        $(".post-content").fitVids();
        
        // Calculates Reading Time
        $('.post-content').readingTime({
            readingTimeTarget: '.post-reading-time',
            wordCountTarget: '.post-word-count',
        });
        
        // Creates Captions from Alt tags
        $(".post-content img").each(function() {
            // Let's put a caption if there is one
            if($(this).attr("alt"))
              $(this).wrap('<figure class="image"></figure>')
              .after('<figcaption>'+$(this).attr("alt")+'</figcaption>');
        });
                function GetIEVersion() {
	var sAgent = window.navigator.userAgent;
	var Idx = sAgent.indexOf("MSIE");
	// If IE, return version number.
		if (Idx > 0)
			return parseInt(sAgent.substring(Idx+ 5, sAgent.indexOf(".", Idx)));
		// If IE 11 then look for Updated user agent string.
		else if (!!navigator.userAgent.match(/Trident\/7\./))
			return 11;
		else
			return 0; //It is not IE
		}
		if (GetIEVersion() > 0)
		var txt="It looks like you are using Internet Explorer, for the best experience, you should view this site in ";
		var or=" or ";
		var firefox="<a href=\"https://www.mozilla.org/en-US/firefox/new/\">Firefox</a>";
		var chrome="<a href=\"http://www.google.com/chrome/\">Chrome</a>";
		var cancel = "<i class=\"icon-cancel-circled\" onclick=\"parentNode.remove()\"></i>";
		$("headerIE").html(txt+chrome+or+firefox+cancel);
		if (GetIEVersion() == 0)
		$('#headerIE').html('');
    });

}(jQuery));
{'fraction_non_alphanumeric': 0.19122911694510739, 'fraction_numerical': 0.0059665871121718375, 'mean_word_length': 2.6406080347448424, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 27, 'https://': 2, 'lorem ipsum': 0, 'www.': 4, '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': '4395312', 'n_tokens_mistral': 1106, 'n_tokens_neox': 1034, 'n_words': 254}