<commit_before>iOlog("isOnline started");

opt = [{"name": "Online",          "value" : "online",  "color": "green"},
       {"name": "Away",            "value" : "absent",  "color": "orange"},
       {"name": "Offline (ghost)", "value" : "offline", "color": "grey"}];
isOwnAccount = false;
stop = 0;
try {localuser = document.documentElement.innerHTML.substring(document.documentElement.innerHTML.search("username")+10,document.documentElement.innerHTML.search("username")+100).match(/\'(.*)\'/).pop();main();}
catch(err) {document.onreadystatechange = function(){localuser = document.getElementsByClassName("profile-name")[0].innerHTML;main();}}

if(location.href.toLowerCase().startsWith("https://scratch.mit.edu/search/") && location.search.toLowerCase() === "the%20best%20extension") location.href = "https://scratch.mit.edu/users/isOnlineV2/"; // easter egg!

function main() {

    /* One line account key validation */ if (window.location.href.startsWith("https://scratch.mit.edu/isonline-extension/verify")){stop = "On verification page";document.documentElement.innerHTML = "<center><h1 style='font-family:verdana';>Validating...</h1></center>";test = new XMLHttpRequest();test.open("GET", ' https://scratchtools.tk/isonline/api/v1/' + localuser + '/' + location.hash.substring(1) + "/test/", true);test.send();test.onreadystatechange = function() {if (test.readyState === 4 && test.status === 200  && test.responseText == '{"valid":true}') {localStorage.setItem("iOuser", localuser);localStorage.setItem("iOkey", location.hash.substring(1));document.documentElement.innerHTML = "<center><h1 style='font-family:verdana; color:green'>Successfully validated your Scratch account. isOnline is now working. <br>You can close this tab.</h1></center>";}else {document.documentElement.innerHTML = "<center><h1 style='font-family:verdana; color:red'>An error occurred. Please contact <a href='https://scratch.mit.edu/users/chooper100#comments'>@chooper100</a> if you come from isOnline account validation.</h1></center>";}}}

    if (localStorage.getItem("iOuser") === null) {
        stop = "User didn't validate any account.";
        isError();
        didntValidate();}
<commit_msg>Ummm switch to RegEx for Easter egg<commit_after>iOlog("isOnline started");

opt = [{"name": "Online",          "value" : "online",  "color": "green"},
       {"name": "Away",            "value" : "absent",  "color": "orange"},
       {"name": "Offline (ghost)", "value" : "offline", "color": "grey"}];
isOwnAccount = false;
stop = 0;
try {localuser = document.documentElement.innerHTML.substring(document.documentElement.innerHTML.search("username")+10,document.documentElement.innerHTML.search("username")+100).match(/\'(.*)\'/).pop();main();}
catch(err) {document.onreadystatechange = function(){localuser = document.getElementsByClassName("profile-name")[0].innerHTML;main();}}

if(location.href.toLowerCase().startsWith("https://scratch.mit.edu/search/") && /\?q=the(%20|\+)best\1extension/i) location.href = "https://scratch.mit.edu/users/isOnlineV2/"; // easter egg!

function main() {

    /* One line account key validation */ if (window.location.href.startsWith("https://scratch.mit.edu/isonline-extension/verify")){stop = "On verification page";document.documentElement.innerHTML = "<center><h1 style='font-family:verdana';>Validating...</h1></center>";test = new XMLHttpRequest();test.open("GET", ' https://scratchtools.tk/isonline/api/v1/' + localuser + '/' + location.hash.substring(1) + "/test/", true);test.send();test.onreadystatechange = function() {if (test.readyState === 4 && test.status === 200  && test.responseText == '{"valid":true}') {localStorage.setItem("iOuser", localuser);localStorage.setItem("iOkey", location.hash.substring(1));document.documentElement.innerHTML = "<center><h1 style='font-family:verdana; color:green'>Successfully validated your Scratch account. isOnline is now working. <br>You can close this tab.</h1></center>";}else {document.documentElement.innerHTML = "<center><h1 style='font-family:verdana; color:red'>An error occurred. Please contact <a href='https://scratch.mit.edu/users/chooper100#comments'>@chooper100</a> if you come from isOnline account validation.</h1></center>";}}}

    if (localStorage.getItem("iOuser") === null) {
        stop = "User didn't validate any account.";
        isError();
        didntValidate();}

{'fraction_non_alphanumeric': 0.19917676652183855, 'fraction_numerical': 0.013949233935513377, 'mean_word_length': 5.489614243323442, 'pattern_counts': {'":': 14, '<': 33, '<?xml version=': 0, '>': 33, 'https://': 10, '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': '4287047', 'n_tokens_mistral': 1367, 'n_tokens_neox': 1325, 'n_words': 237}