<commit_before>window.gnow = {};

gnow.id = "gnow";
gnow.name = "Google Now (Default)";
gnow.stylesheet = "./stylesheets/themes/gnow.css";

gnow.meify = function() {
  if (themer.themeid != gnow.id) {
    return;
  }
  
  if (stacks && stacks.sync && stacks.sync.auth2 && stacks.sync.auth2.isSignedIn.get()) {
    var name = stacks.sync.auth2.currentUser.get().getBasicProfile().getName();
    name = name.substr(0, name.lastIndexOf(" "));
    $("#cbar_me").text("+"+name);
  }
  
  setTimeout(gnow.meify, 10000);
};

gnow.doodle = {};
gnow.doodle.date = new Date();
gnow.doodle.dateArray = [gnow.doodle.date.getFullYear(), gnow.doodle.date.getMonth()+1, gnow.doodle.date.getUTCDate()];
gnow.doodle.doodle = null;

gnow.doodle.setDoodleEnabled = function(enabled, unload) {
  if (enabled == "false") {
    enabled = false;<commit_msg>Add default gnow meify text<commit_after>window.gnow = {};

gnow.id = "gnow";
gnow.name = "Google Now (Default)";
gnow.stylesheet = "./stylesheets/themes/gnow.css";

gnow.meify = function() {
  if (themer.themeid != gnow.id) {
    return;
  }
  
  if (stacks && stacks.sync && stacks.sync.auth2 && stacks.sync.auth2.isSignedIn.get()) {
    var name = stacks.sync.auth2.currentUser.get().getBasicProfile().getName();
    name = name.substr(0, name.lastIndexOf(" "));
    $("#cbar_me").text("+"+name);
  } else {
    $("#cbar_me").text(localized("cbar.me"));
  }
  
  setTimeout(gnow.meify, 10000);
};

gnow.doodle = {};
gnow.doodle.date = new Date();
gnow.doodle.dateArray = [gnow.doodle.date.getFullYear(), gnow.doodle.date.getMonth()+1, gnow.doodle.date.getUTCDate()];
gnow.doodle.doodle = null;

gnow.doodle.setDoodleEnabled = function(enabled, unload) {
  if (enabled == "false") {
    enabled = false;
{'fraction_non_alphanumeric': 0.19838987924094306, 'fraction_numerical': 0.011500862564692352, 'mean_word_length': 4.043478260869565, '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': '2070059', 'n_tokens_mistral': 708, 'n_tokens_neox': 691, 'n_words': 99}