<commit_before>define(["jquery", "bacon", "bacon.jquery", "jquery.cookie"], function($, Bacon, bjq) {
    if ($.cookie("authToken")) {
        document.location = "index.html"
        return {}
    }

    var usernames = bjq.textFieldValue($("#username"))
    var passwords = bjq.textFieldValue($("#password"))

    var logins = bjq.Model.combine({"username": usernames, "password": <PASSWORD>})
    logins.syncConverter = function(x) { return x || "" }

    function shouldEnableLogin(login) { console.log("laa", login); return login.username.length == 0 || login.password.length == 0 }
    logins.map(shouldEnableLogin).assign($("#login"), "attr", "disabled")

    return {}
})<commit_msg>remove console.log<commit_after>define(["jquery", "bacon", "bacon.jquery", "jquery.cookie"], function($, Bacon, bjq) {
    if ($.cookie("authToken")) {
        document.location = "index.html"
        return {}
    }

    var usernames = bjq.textFieldValue($("#username"))
    var passwords = bjq.textFieldValue($("#password"))

    var logins = bjq.Model.combine({"username": usernames, "password": <PASSWORD>})
    logins.syncConverter = function(x) { return x || "" }

    function shouldEnableLogin(login) { return login.username.length == 0 || login.password.length == 0 }
    logins.map(shouldEnableLogin).assign($("#login"), "attr", "disabled")

    return {}
})
{'fraction_non_alphanumeric': 0.18970588235294117, 'fraction_numerical': 0.0029411764705882353, 'mean_word_length': 4.116541353383458, 'pattern_counts': {'":': 4, '<': 5, '<?xml version=': 0, '>': 5, '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': '5305638', 'n_tokens_mistral': 433, 'n_tokens_neox': 412, 'n_words': 81}