<commit_before>var _OnOff=1;

var onObje={text:"on"};
var onColorObje={color:"#0f0"};

var offObje={text:"off"};
var offColorObje={color:"#f00"};

chrome.browserAction.setBadgeText(onObje);
chrome.browserAction.setBadgeBackgroundColor(onColorObje);

chrome.extension.onRequest.addListener(

  function(request, sender, sendResponse) {
	if (request.msg === "getStatus")
	{	
		sendResponse({status:_OnOff});
		return true;
	}
    
  });

var reInject=function()<commit_msg>Persisting On/Off state<commit_after>var _OnOff=0;
if(!localStorage["easyWiki_OnOff"])
	{
		localStorage["easyWiki_OnOff"]=1;
		_OnOff=1;
	}
else{
		_OnOff=localStorage["easyWiki_OnOff"];
}
var onObje={text:"on"};
var onColorObje={color:"#0f0"};

var offObje={text:"off"};
var offColorObje={color:"#f00"};

if(_OnOff){
chrome.browserAction.setBadgeText(onObje);
chrome.browserAction.setBadgeBackgroundColor(onColorObje);
}
else{

chrome.browserAction.setBadgeText(offObje);
chrome.browserAction.setBadgeBackgroundColor(offColorObje);
}
chrome.extension.onRequest.addListener(

  function(request, sender, sendResponse) {
	if (request.msg === "getStatus")
	{	
		sendResponse({status:_OnOff});
		return true;
	}
    
  });

var reInject=function()
{'fraction_non_alphanumeric': 0.1611842105263158, 'fraction_numerical': 0.009868421052631578, 'mean_word_length': 7.27891156462585, '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': '878949', 'n_tokens_mistral': 471, 'n_tokens_neox': 450, 'n_words': 58}