<commit_before>$(function(){
	function supports_html5_storage() {
	  try {
	    return 'localStorage' in window && window['localStorage'] !== null;
	  } catch (e) {
	    return false;
	  }
	}
	
	if(supports_html5_storage()){

		if(localStorage.getItem("deleted-sections") != undefined){
			var stored = localStorage.getItem("deleted-sections");
		}
		else{
			var stored = "";
		}
		var sections = $(".site-sections li");
		//add something to our localStorage we want to delete from the main page
		function addRemovedSection(toStore){
			if(stored == null){
				var store = toStore;
			}
			else{
				var store = stored+":"+toStore;
			}
			localStorage.setItem("deleted-sections", store);
			stored = localStorage.getItem("deleted-sections");
			getLocallyStored();
 		}
		
		
		//retrieve and hide hidden sections
		function getLocallyStored(){
			var toHide = stored.split(':');
			var i = toHide.length;
			while(i--){
				$("."+toHide[i]).css("display","none")
			}
		}
		
		//reset hidden sections
		function resetSections(){
			localStorage.removeItem("deleted-sections");
			stored = localStorage.getItem("deleted-sections");
			$(sections).css("display","block");
		}
		
		function addClosers(){
			var i = sections.length;
			while(i--){
				$(sections[i]).children("h2").append(" <a href='#' class='hide'>hide</a>");
			}
			
			$("a.hide").click(function(){
				var toRemove = $(this).parent().parent().attr("class");
				addRemovedSection(toRemove);
				return false;
			});

			
		}
		
		$(".site-sections").prepend("<a href='#' class='resetAll'>reset sections</a>");
		$("a.resetAll").click(function(){
			resetSections();
			return false;
		});
		
		addClosers();
		addRemovedSection("section-taxes");
		getLocallyStored();
		
	}
	
	
});<commit_msg>Removed stupid call to add to localstorage<commit_after>$(function(){
	function supports_html5_storage() {
	  try {
	    return 'localStorage' in window && window['localStorage'] !== null;
	  } catch (e) {
	    return false;
	  }
	}
	
	if(supports_html5_storage()){

		if(localStorage.getItem("deleted-sections") != undefined){
			var stored = localStorage.getItem("deleted-sections");
		}
		else{
			var stored = "";
		}
		var sections = $(".site-sections li");
		//add something to our localStorage we want to delete from the main page
		function addRemovedSection(toStore){
			if(stored == null){
				var store = toStore;
			}
			else{
				var store = stored+":"+toStore;
			}
			localStorage.setItem("deleted-sections", store);
			stored = localStorage.getItem("deleted-sections");
			getLocallyStored();
 		}
		
		
		//retrieve and hide hidden sections
		function getLocallyStored(){
			var toHide = stored.split(':');
			var i = toHide.length;
			while(i--){
				$("."+toHide[i]).css("display","none")
			}
		}
		
		//reset hidden sections
		function resetSections(){
			localStorage.removeItem("deleted-sections");
			stored = localStorage.getItem("deleted-sections");
			$(sections).css("display","block");
		}
		
		function addClosers(){
			var i = sections.length;
			while(i--){
				$(sections[i]).children("h2").append(" <a href='#' class='hide'>hide</a>");
			}
			
			$("a.hide").click(function(){
				var toRemove = $(this).parent().parent().attr("class");
				addRemovedSection(toRemove);
				return false;
			});

			
		}
		
		$(".site-sections").prepend("<a href='#' class='resetAll'>reset sections</a>");
		$("a.resetAll").click(function(){
			resetSections();
			return false;
		});
		
		addClosers();
		getLocallyStored();
		
	}
	
	
});
{'fraction_non_alphanumeric': 0.17996026114107294, 'fraction_numerical': 0.0017030939540164632, 'mean_word_length': 3.500638569604087, 'pattern_counts': {'":': 2, '<': 11, '<?xml version=': 0, '>': 11, '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': '3386856', 'n_tokens_mistral': 1370, 'n_tokens_neox': 1136, 'n_words': 221}