<commit_before>(function () {
    chrome.storage.sync.get({
        username: "",
        password: ""
    }, function (items) {
        var usr = items.username;
        var pwd = items.password;

        if (usr !== "" && pwd !== "") {
            var inputUsr = document.querySelectorAll('input[name*=name]')[0];
            var inputPwd = document.querySelectorAll('input[name*=pass]')[0];

            var btnSubmit;
            btnSubmit = document.querySelectorAll('input[type=submit]')[0];
            if (!btnSubmit) btnSubmit = document.getElementsByTagName("button")[0];

            inputUsr.value = usr;
            inputPwd.value = pwd;
            btnSubmit.click();
        }
    });
})();<commit_msg>Added a alert if user tries to use Giraffe with no entered credentials, resolves #3<commit_after>(function () {
    chrome.storage.sync.get({
        username: "",
        password: ""
    }, function (items) {
        var usr = items.username;
        var pwd = items.password;

        if (usr !== "" && pwd !== "") {
            var inputUsr = document.querySelectorAll('input[name*=name]')[0];
            var inputPwd = document.querySelectorAll('input[name*=pass]')[0];

            var btnSubmit;
            btnSubmit = document.querySelectorAll('input[type=submit]')[0];
            if (!btnSubmit) btnSubmit = document.getElementsByTagName("button")[0];

            inputUsr.value = usr;
            inputPwd.value = pwd;
            btnSubmit.click();
        } else {
            alert("LaGirafe doesn't have any credentials saved.\n\nPlease go to LaGirafe options page and set your credentials.");
        }
    });
})();
{'fraction_non_alphanumeric': 0.14769975786924938, 'fraction_numerical': 0.005447941888619854, 'mean_word_length': 2.2348336594911937, 'pattern_counts': {'":': 0, '<': 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': '1828233', 'n_tokens_mistral': 475, 'n_tokens_neox': 467, 'n_words': 98}