<commit_before>
var store = localStorage;
$( document ).ready(function() {

function isStorageFilled() {
    // store.getItem("MA31")==null ? alert("empty") : alert ("full");
    return    store.getItem("MA31")!=null;
}

   
    $("#plan").click(function() {
	// checkStorage() ? $("#stundenplan").click() : $("#planwahl").click();
	isStorageFilled() ? window.open("stundenplan.html") : $("#planwahl").click();
    });

    $("#settingsbtn").click(function() {
	fillStorageWithCourses();
	window.open("stundenplan.html","_self");
    });

    $("#switchall").click(function() {
	$(":checkbox").click();
    });

function fillStorageWithCourses() {
    // alert("yes");
    $(":checkbox").each(function() {
	// alert($(this).attr("id"));
	var id = $(this).attr("id");
	var val = $(this).prop("checked");
	store.setItem(id, val);
	// alert( id + val);
    });
}

});
<commit_msg>no new tab, fo real<commit_after>
var store = localStorage;
$( document ).ready(function() {

function isStorageFilled() {
    // store.getItem("MA31")==null ? alert("empty") : alert ("full");
    return    store.getItem("MA31")!=null;
}

   
    $("#plan").click(function() {
	// checkStorage() ? $("#stundenplan").click() : $("#planwahl").click();
	isStorageFilled() ? window.open("stundenplan.html") : $("#planwahl").click();
    });

    $("#settingsbtn").click(function() {
	fillStorageWithCourses();
	location.href = "stundenplan.html";
	// window.open("stundenplan.html","_self");
    });

    $("#switchall").click(function() {
	$(":checkbox").click();
    });

function fillStorageWithCourses() {
    // alert("yes");
    $(":checkbox").each(function() {
	// alert($(this).attr("id"));
	var id = $(this).attr("id");
	var val = $(this).prop("checked");
	store.setItem(id, val);
	// alert( id + val);
    });
}

});

{'fraction_non_alphanumeric': 0.25722222222222224, 'fraction_numerical': 0.0044444444444444444, 'mean_word_length': 4.145714285714286, 'pattern_counts': {'":': 4, '<': 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': '6572916', 'n_tokens_mistral': 602, 'n_tokens_neox': 601, 'n_words': 90}