<commit_before>$(document).ready(function() {
	var converter = new Showdown.converter();
	$.ajax({
		method: "GET",
		dataType: "JSON",
		url: "https://api.github.com/repos/kriekapps/cantrip/contents/README.md"
	}).done(function(response) {
		
		$('.main').append(converter.makeHtml(window.atob(response.content)));
		$('pre').addClass('prettyprint');
		$('#cantrip').remove();

		prettyPrint();

	}).fail(function(xhr, err) {
		console.log(xhr, err);
	});
});<commit_msg>random ID generated and stored in localstorage<commit_after>$(document).ready(function() {
	var converter = new Showdown.converter();
	$.ajax({
		method: "GET",
		dataType: "JSON",
		url: "https://api.github.com/repos/kriekapps/cantrip/contents/README.md"
	}).done(function(response) {
		
		$('.main').append(converter.makeHtml(window.atob(response.content).replace(/randomID/g,getMyId())));
		$('pre').addClass('prettyprint');
		$('#cantrip').remove();

		prettyPrint();

	}).fail(function(xhr, err) {
		console.log(xhr, err);
	});
});

function getMyId(){
	var id = "";
	if (Modernizr.localstorage) {
		id = localStorage.getItem("cantripId") || Math.random().toString(36).substring(7);
		localStorage.setItem("cantripId", id);
	} else {
		id = Math.random().toString(36).substring(7);
	}

	return id;
}
{'fraction_non_alphanumeric': 0.21786833855799373, 'fraction_numerical': 0.004702194357366771, 'mean_word_length': 5.139423076923077, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '7334900', 'n_tokens_mistral': 491, 'n_tokens_neox': 452, 'n_words': 64}