<commit_before>$(document).ready(getposts);

var posts = [];

function pager(page) {
	var text = "";
	
	var under = '<p class = "lead" style = "text-align:center">';
	for (i = (page - 1) * 5; i < (page - 1) * 5 + 5; i++) {
		if (posts.length > i) {
			console.log(i + ' - ' + posts[i]);
			text += posts[i];
		}
	}	
	
	for (i = 0; i < Math.ceil(posts.length / 5); i++) {
		if (i + 1 == page) {
			under += ' <span onclick = "pager(' + (i + 1) + ')" style = "cursor: pointer; text-decoration:underline;">' + (i + 1) + '</span>'
		} else {
			under += ' <span style = "cursor: pointer;" onclick = "pager(' + (i + 1) + ')">' + (i + 1) + '</span>';
		}
	}
	
	under += '</p>';
	
	text += under;
	$('#blog').html(text);
	$('#blog')[0].scrollIntoView(true);
}

function getposts(){
	console.log("loading");
	$.get("entries.json", function( data ) {
		var data = data['entries'];
		$.each(data, function(key, value) {
			var date = value['date'];
			var title = value['title'];
			var text = value['text'];
			posts.push("<div id='key' class='col-sm-12 blogpost'><small> <p class='muted' style='float:right;'>" + date + "</p></small><h5>" + title + "</h5><p>" + text + "</p><hr/></div>");
		});
		
		pager(1);
	});
}<commit_msg>updates<commit_after>$(document).ready(getposts);

var posts = [];

function pager(page) {
	var text = "";
	
	var under = '<p class = "lead" style = "text-align:center">';
	for (i = (page - 1) * 5; i < (page - 1) * 5 + 5; i++) {
		if (posts.length > i) {
			console.log(i + ' - ' + posts[i]);
			text += posts[i];
		}
	}	
	
	for (i = 0; i < Math.ceil(posts.length / 5); i++) {
		if (i + 1 == page) {
			under += ' <span onclick = "pager(' + (i + 1) + ')" style = "cursor: pointer; text-decoration:underline;">' + (i + 1) + '</span>'
		} else {
			under += ' <span style = "cursor: pointer;" onclick = "pager(' + (i + 1) + ')">' + (i + 1) + '</span>';
		}
	}
	
	under += '</p>';
	
	text += under;
	$('#blog').html(text);
	$('#blogheader')[0].scrollIntoView(true);
}

function getposts(){
	console.log("loading");
	$.get("entries.json", function( data ) {
		var data = data['entries'];
		$.each(data, function(key, value) {
			var date = value['date'];
			var title = value['title'];
			var text = value['text'];
			posts.push("<div id='key' class='col-sm-12 blogpost'><small> <p class='muted' style='float:right;'>" + date + "</p></small><h5>" + title + "</h5><p>" + text + "</p><hr/></div>");
		});
		
		pager(1);
	});
}
{'fraction_non_alphanumeric': 0.2680327868852459, 'fraction_numerical': 0.014754098360655738, 'mean_word_length': 3.2600349040139616, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 39, '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': '1028985', 'n_tokens_mistral': 1033, 'n_tokens_neox': 931, 'n_words': 220}