<commit_before>
$header		= $("#header");
$content	= $("#content");
$buttons	= $("#buttons");
$picture	= $("#picture");

var pages =
[
  {
    "header": "<NAME>",
    "button": "Home",
    "path": "main.html"
  },

  {
    "header": "Who is <NAME>?",
    "button": "About",
    "path": "about.html"
  },

  {
    "header": "Projects",
    "button": "Projects",
    "path": "projects.html"
  }

];

var currentpage = 0;

var setHeader = function setHeaderF(header){
	$header.html(header);
}
var setContent = function setContentF(path){
	$.get("pages/" + path, function(data){
		$content.html(data);
	})
}
var genButtons = function genButtonsF(){
    for(var i = 0; i < pages.length; i++){
        $buttons.append("<li id=\"" + i + "\"><a>" + pages[i].button + "</a></li>" );
    }
}
var update = function updateF(number){
    setHeader(pages[number].header);
    setContent(pages[number].path);
}

// Personal Functions
var removeAll = function removeAllF(){
	$picture.remove();
	$buttons.remove();
	$header.remove();
	$content.remove();
}
var addGames = function addGamesF(){
	$('head').append('<script src=\'js/blackjack.js\'></script>');
}

// Called immediately
update(0);
genButtons();
$('#0').addClass('active');

if(window.location.pathname = "/nopic"){
  $picture.remove();
}

// waiting
$("li").click(function(event){
    $('#' + currentpage).removeClass('active');
    $(this).addClass('active');
    update($(this)[0].id);
    currentpage = $(this)[0].id;
});<commit_msg>big error fixed<commit_after>
$header		= $("#header");
$content	= $("#content");
$buttons	= $("#buttons");
$picture	= $("#picture");

var pages =
[
  {
    "header": "<NAME>",
    "button": "Home",
    "path": "main.html"
  },

  {
    "header": "Who is <NAME>?",
    "button": "About",
    "path": "about.html"
  },

  {
    "header": "Projects",
    "button": "Projects",
    "path": "projects.html"
  }

];

var currentpage = 0;

var setHeader = function setHeaderF(header){
	$header.html(header);
}
var setContent = function setContentF(path){
	$.get("pages/" + path, function(data){
		$content.html(data);
	})
}
var genButtons = function genButtonsF(){
    for(var i = 0; i < pages.length; i++){
        $buttons.append("<li id=\"" + i + "\"><a>" + pages[i].button + "</a></li>" );
    }
}
var update = function updateF(number){
    setHeader(pages[number].header);
    setContent(pages[number].path);
}

// Personal Functions
var removeAll = function removeAllF(){
	$picture.remove();
	$buttons.remove();
	$header.remove();
	$content.remove();
}
var addGames = function addGamesF(){
	$('head').append('<script src=\'js/blackjack.js\'></script>');
}

// Called immediately
update(0);
genButtons();
$('#0').addClass('active');

if(window.location.pathname === "/nopic"){
  $picture.remove();
}

// waiting
$("li").click(function(event){
    $('#' + currentpage).removeClass('active');
    $(this).addClass('active');
    update($(this)[0].id);
    currentpage = $(this)[0].id;
});
{'fraction_non_alphanumeric': 0.24021592442645073, 'fraction_numerical': 0.004048582995951417, 'mean_word_length': 3.966499162479062, 'pattern_counts': {'":': 18, '<': 21, '<?xml version=': 0, '>': 19, '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': '148262', 'n_tokens_mistral': 1041, 'n_tokens_neox': 1036, 'n_words': 202}