<commit_before>// Browser detection. Yes, really. Guess for which browser? Nope! Chrome.
var b = document.documentElement;
b.setAttribute('data-useragent',  navigator.userAgent);
b.setAttribute('data-platform', navigator.platform);

$(document).ready(function(){

	/* setting up hamburger nav dropdown */

	$('.global-nav').addClass('deluxe');
	
	$('.go-to-nav').click (function(event){
	
		var navState = $( "html" ).hasClass('show-nav');
	
		var scrollHandler = function(){
		    $('html').removeClass('show-nav');
		}
		
		if (!navState){
			$( "html" ).addClass('show-nav');
			/* $(window).bind('scroll', scrollHandler); */
		} else {
			$( "html" ).removeClass('show-nav');
			/* $(window).unbind('scroll', scrollHandler); */
		}
		
		return false;
		
	});
	
	$('.global-nav').click(function(event){
	     event.stopPropagation();
	});
	
	$('body').click(function() {
	   $('html').removeClass('show-nav'); 
	});

	$("sup[data-footnote]").each(function() {

		noteCount = $(this).html();

		$(this).html('<a id="ref' + noteCount + '" href="#note' + noteCount + '">' + noteCount + '</a>');

	});

	var count1 = 0;
	var count2 = 0;
	var count3 = 0;
	
	$(".hentry .main-content > h2, .hentry .main-content > h3, .hentry .main-content > h4, .hentry .main-content > h5, .hentry .main-content > h6").each(function() {
		
		count1++;
		$(this).attr("id", "section" + count1);
    $(this).append("<a class='subhead-anchor' href='#section" + count1 + "'>#section" + count1 + "</a>'");

	});
	
	$(".hentry .main-content > pre").each(function() {
		
		count2++;
		$(this).attr("id", "snippet" + count2);
<commit_msg>eliminate errant apostrophe (yes we know it's not *really* an apostrophe)<commit_after>// Browser detection. Yes, really. Guess for which browser? Nope! Chrome.
var b = document.documentElement;
b.setAttribute('data-useragent',  navigator.userAgent);
b.setAttribute('data-platform', navigator.platform);

$(document).ready(function(){

	/* setting up hamburger nav dropdown */

	$('.global-nav').addClass('deluxe');
	
	$('.go-to-nav').click (function(event){
	
		var navState = $( "html" ).hasClass('show-nav');
	
		var scrollHandler = function(){
		    $('html').removeClass('show-nav');
		}
		
		if (!navState){
			$( "html" ).addClass('show-nav');
			/* $(window).bind('scroll', scrollHandler); */
		} else {
			$( "html" ).removeClass('show-nav');
			/* $(window).unbind('scroll', scrollHandler); */
		}
		
		return false;
		
	});
	
	$('.global-nav').click(function(event){
	     event.stopPropagation();
	});
	
	$('body').click(function() {
	   $('html').removeClass('show-nav'); 
	});

	$("sup[data-footnote]").each(function() {

		noteCount = $(this).html();

		$(this).html('<a id="ref' + noteCount + '" href="#note' + noteCount + '">' + noteCount + '</a>');

	});

	var count1 = 0;
	var count2 = 0;
	var count3 = 0;
	
	$(".hentry .main-content > h2, .hentry .main-content > h3, .hentry .main-content > h4, .hentry .main-content > h5, .hentry .main-content > h6").each(function() {
		
		count1++;
		$(this).attr("id", "section" + count1);
		$(this).append("<a class='subhead-anchor' href='#section" + count1 + "'>#section" + count1 + "</a>");

	});
	
	$(".hentry .main-content > pre").each(function() {
		
		count2++;
		$(this).attr("id", "snippet" + count2);

{'fraction_non_alphanumeric': 0.23604757548032937, 'fraction_numerical': 0.01036901494358036, 'mean_word_length': 3.760522496371553, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, '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': '5685794', 'n_tokens_mistral': 1246, 'n_tokens_neox': 1119, 'n_words': 218}