<commit_before>$(document).ready(function() {
	//defining add content function
	function addContent(event) {
		$("#contentBox").empty();
		$("#contentBox").load(event.data.page, function(response, status, xhr) {
			if (status == "error") {
				alert("Error: " + xhr.status + " " + xhr.statusText);
			}
		});
	}
	//defining contentbox positioning function
	function resizeContentBox(){
		if($(window).width()*0.2 > 200){
			$("#contentBox").css("left", "200px");
		}
		else if($(window).width()*0.2<100){
			$("#contentBox").css("left", "100px");
		}
		else{
			$("#contentBox").css("left", "20%");
		}
	}
	
	//adding contents when respective menu items are pressed.
	$("#View").click(function() {
		$("#contentBox").empty();
		$("#contentBox").append('<embed src="./pdf/resume.pdf" style = "position:absoltue; width:100%; height:100%">');
	});
	$("#PP").click({page: "includehtml/pump.html"}, addContent);
	$("#Robartics").click({page: "includehtml/robartics.html"}, addContent);
	$("#HW").click({page: "includehtml/hotwheels.html"}, addContent);
	$("#Home").click({page: "includehtml/home.html"}, addContent);
	$("#contact").click({page: "includehtml/contact.html"}, addContent);
	$("#SW").click({page: "includehtml/sw.html"}, addContent);
	
	//Setting Minium and maximum position of the contentbox
	$(window).resize(resizeContentBox);
	
	//initially adding home page.
	$("#contentBox").load("includehtml/home.html", function(response, status, xhr) {
			if (status == "error") {
				alert("Error: " + xhr.status + " " + xhr.statusText);
			}
	});
	resizeContentBox();
});<commit_msg>connecting menu button to page load<commit_after>$(document).ready(function() {
	//defining add content function
	function addContent(event) {
		$("#contentBox").empty();
		$("#contentBox").load(event.data.page, function(response, status, xhr) {
			if (status == "error") {
				alert("Error: " + xhr.status + " " + xhr.statusText);
			}
		});
	}
	//defining contentbox positioning function
	function resizeContentBox(){
		if($(window).width()*0.2 > 200){
			$("#contentBox").css("left", "200px");
		}
		else if($(window).width()*0.2<100){
			$("#contentBox").css("left", "100px");
		}
		else{
			$("#contentBox").css("left", "20%");
		}
	}
	
	//adding contents when respective menu items are pressed.
	$("#View").click(function() {
		$("#contentBox").empty();
		$("#contentBox").append('<embed src="./pdf/resume.pdf" style = "position:absoltue; width:100%; height:100%">');
	});
	$("#PP").click({page: "includehtml/pump.html"}, addContent);
	$("#Robartics").click({page: "includehtml/robartics.html"}, addContent);
	$("#HW").click({page: "includehtml/hotwheels.html"}, addContent);
	$("#Home").click({page: "includehtml/home.html"}, addContent);
	$("#contact").click({page: "includehtml/contact.html"}, addContent);
	$("#SW").click({page: "includehtml/sw.html"}, addContent);
	$("#LV").click({page: "includehtml/labview.html"}, addContent);
	
	//Setting Minium and maximum position of the contentbox
	$(window).resize(resizeContentBox);
	
	//initially adding home page.
	$("#contentBox").load("includehtml/home.html", function(response, status, xhr) {
			if (status == "error") {
				alert("Error: " + xhr.status + " " + xhr.statusText);
			}
	});
	resizeContentBox();
});
{'fraction_non_alphanumeric': 0.23457169174086584, 'fraction_numerical': 0.01473748848633712, 'mean_word_length': 5.0897196261682245, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4636494', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1088, 'n_words': 194}