<commit_before>window.planner = {
	currentStartDate: null,
	loadState: 0,
	subjectCount: 0,
	saving: false,
	movedID: 0,
	moveID: 0
};

window.planner.showSaving = function() {
	window.planner.saving = true;
	$("#planner-status").html('<i class="fa fa-refresh fa-spin"></i> Saving...');
	$("#planner").attr("data-exitPrompt", "We're currently saving your information. Please stay on the page.");
};

window.planner.showSaved = function() {
	window.planner.saving = false;
	$("#planner-status").html('<i class="fa fa-check"></i> Saved!');
	$("#planner").attr("data-exitPrompt", "");
};

window.planner.createSubjectRow = function(subjectName, subjectIndex) {
	var $row = $('<tr class="subjectRow"></tr>');
		$row.attr("data-subjectName", subjectName);
		$row.attr("data-subjectIndex", subjectIndex);

		var $subjectCell = $('<td class="subjectCell"></td>');
			$subjectCell.text(subjectName);

			var $controls = $('<div class="subjectControls"></div>');
				var $move = $('<button class="btn btn-xs btn-default planner-subject-handle"><i class="fa fa-arrows"></i></button>');
					$move.attr("data-subjectIndex", subjectIndex);
					$move.click(function() {
						window.planner.moveID = parseInt($(this).attr("data-subjectIndex"));
						$(this).parent().parent().parent().detach();<commit_msg>too many children, had to use find<commit_after>window.planner = {
	currentStartDate: null,
	loadState: 0,
	subjectCount: 0,
	saving: false,
	movedID: 0,
	moveID: 0
};

window.planner.showSaving = function() {
	window.planner.saving = true;
	$("#planner-status").html('<i class="fa fa-refresh fa-spin"></i> Saving...');
	$("#planner").attr("data-exitPrompt", "We're currently saving your information. Please stay on the page.");
};

window.planner.showSaved = function() {
	window.planner.saving = false;
	$("#planner-status").html('<i class="fa fa-check"></i> Saved!');
	$("#planner").attr("data-exitPrompt", "");
};

window.planner.createSubjectRow = function(subjectName, subjectIndex) {
	var $row = $('<tr class="subjectRow"></tr>');
		$row.attr("data-subjectName", subjectName);
		$row.attr("data-subjectIndex", subjectIndex);

		var $subjectCell = $('<td class="subjectCell"></td>');
			$subjectCell.text(subjectName);

			var $controls = $('<div class="subjectControls"></div>');
				var $move = $('<button class="btn btn-xs btn-default planner-subject-handle"><i class="fa fa-arrows"></i></button>');
					$move.attr("data-subjectIndex", subjectIndex);
					$move.click(function() {
						window.planner.moveID = parseInt($(this).attr("data-subjectIndex"));
						$(this).parent().parent().parent().detach();
						$("#planner table tbody").find(".planner-subject-handle").detach();
						$(body).css("background-color", "black");
						$("#planner table tbody").children().css("background-color", "white");
{'fraction_non_alphanumeric': 0.21743772241992881, 'fraction_numerical': 0.0028469750889679717, 'mean_word_length': 5.137554585152839, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '3996835', 'n_tokens_mistral': 992, 'n_tokens_neox': 912, 'n_words': 168}