<commit_before>var enableCheckboxList = function() {
	$(".checkbox-list").find("li").click(function(event) {
		el = $(event.toElement);

		var newValue;
		if(el.hasClass("checked")) {
			newValue = 0;
			el.removeClass("checked");
		} else {
			newValue = 1;
			el.addClass("checked");
		}

		// TODO this should be post, once I have updated the server
		$.get("http://localhost:3000/note/list/set-checkbox",
		      {
		      	"list-id": el.attr("data-list-id"),
		      	"id": el.attr("data-id"),
		      	"new-value": newValue
		      });
	});
}

// TODO possibly rewrite this without mutation
var createHTMLList = function(json) {
	var bullets = "";
	json.map(function(item) {
		// item.done to see check-mark status
		console.log(item);
		var checked = "";
		if(item.done) {
			checked = " checked";
		}
		bullets +=<commit_msg>tidied up enableCheckboxList function a tiny bit<commit_after>var enableCheckboxList = function() {
	$(".checkbox-list").find("li").click(function(event) {
		var el = $(event.toElement);

		var newValue;
		if(el.hasClass("checked")) {
			newValue = 0;
			el.removeClass("checked");
		} else {
			newValue = 1;
			el.addClass("checked");
		}

		// TODO this should be post, once I have updated the server
		$.get("http://localhost:3000/note/list/set-checkbox",
		      {
		      	"list-id": el.data("listId"),
		      	"id": el.data("id"),
		      	"new-value": newValue
		      });
	});
}

// TODO possibly rewrite this without mutation
var createHTMLList = function(json) {
	var bullets = "";
	json.map(function(item) {
		// item.done to see check-mark status
		console.log(item);
		var checked = "";
		if(item.done) {
			checked = " checked";
		}
		bullets +=
{'fraction_non_alphanumeric': 0.1717827626918536, 'fraction_numerical': 0.0070838252656434475, 'mean_word_length': 2.988235294117647, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 3, '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': '1991241', 'n_tokens_mistral': 645, 'n_tokens_neox': 564, 'n_words': 123}