<commit_before>var clipboardData = new Array();
var clipboardURL = new Array();
var count = 0;
function saveInfo(info,tab) {

	if(info.selectionText)
	{
		clipboardData[count] = info.selectionText;
		clipboardURL[count++] = tab.url;
	}
	else if(info.srcUrl)
	{
		clipboardData[count] = info.srcUrl;
		clipboardURL[count++] = tab.url;
	}
	for(i = 0; i< count; i++)	
	{
		alert(clipboardData[i]);
		alert(clipboardURL[i]);
	}
}

chrome.contextMenus.create({

	title: "Add to clipboard",
	contexts:["all"], 
	onclick: saveInfo

});<commit_msg>Only image and selection contexts<commit_after>var clipboardData = new Array();
var clipboardURL = new Array();
var count = 0;
function saveInfo(info,tab) {

	if(info.selectionText)
	{
		clipboardData[count] = info.selectionText;
		clipboardURL[count++] = tab.url;
	}
	else if(info.srcUrl)
	{
		clipboardData[count] = info.srcUrl;
		clipboardURL[count++] = tab.url;
	}
	for(i = 0; i< count; i++)	
	{
		alert(clipboardData[i]);
		alert(clipboardURL[i]);
	}
}

chrome.contextMenus.create({

	title: "Add to clipboard",
	contexts:["image", "selection"], 
	onclick: saveInfo

});
{'fraction_non_alphanumeric': 0.16412556053811658, 'fraction_numerical': 0.003587443946188341, 'mean_word_length': 4.8125, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5470770', 'n_tokens_mistral': 445, 'n_tokens_neox': 421, 'n_words': 83}