<commit_before>function Dog() {

  this.minute = localStorage['minute'];

  this._DEBUG = 1;
  this._currentUsage = localStorage['usage'];
  this._monthlyCap = localStorage['cap'];
  this._percent = localStorage['percent'];

  if(!this._percent) {
    localStorage['percent'] = 90;
  }

  if(!this.minute) {
    localStorage['minute'] = 120;
  }

  if(!this._usage) {
    localStorage['usage'] = 0;
  }

  if(!this._cap) {
    localStorage['cap'] = 0;
  }

  this.init = function() {
    this.run();
  };

  this.log = function(text) {
    if(this._DEBUG == 1) {
      console.log(text);
    }
  };

  this.setUsageBadge = function(usage) {
    this.log('setUsageBadge() Current Usage = ' + this._currentUsage);
    chrome.browserAction.setBadgeText({
      text: String( usage + 'g' )
    });
    chrome.browserAction.setBadgeBackgroundColor({
      color: [0, 0, 0, 255]
    });
  };

  this.setUsageBadgeLoading = function(usage) {
    this.log('setUsageBadgeLoading()');
    chrome.browserAction.setBadgeText({
      text: String( 'fetch' )
    });<commit_msg>enhc: /g/G/ in badge<commit_after>function Dog() {

  this.minute = localStorage['minute'];

  this._DEBUG = 1;
  this._currentUsage = localStorage['usage'];
  this._monthlyCap = localStorage['cap'];
  this._percent = localStorage['percent'];

  if(!this._percent) {
    localStorage['percent'] = 90;
  }

  if(!this.minute) {
    localStorage['minute'] = 120;
  }

  if(!this._usage) {
    localStorage['usage'] = 0;
  }

  if(!this._cap) {
    localStorage['cap'] = 0;
  }

  this.init = function() {
    this.run();
  };

  this.log = function(text) {
    if(this._DEBUG == 1) {
      console.log(text);
    }
  };

  this.setUsageBadge = function(usage) {
    this.log('setUsageBadge() Current Usage = ' + this._currentUsage);
    chrome.browserAction.setBadgeText({
      text: String( usage + 'G' )
    });
    chrome.browserAction.setBadgeBackgroundColor({
      color: [0, 0, 0, 255]
    });
  };

  this.setUsageBadgeLoading = function(usage) {
    this.log('setUsageBadgeLoading()');
    chrome.browserAction.setBadgeText({
      text: String( 'fetch' )
    });
{'fraction_non_alphanumeric': 0.17330210772833723, 'fraction_numerical': 0.01405152224824356, 'mean_word_length': 3.1315280464216633, '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': '6554891', 'n_tokens_mistral': 779, 'n_tokens_neox': 721, 'n_words': 115}