<commit_before>function reverse(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'reverse'});
	});
};

function flip(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'flip'});
	});
};

function rainbowBBCode(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'rainbowBBCode'});
	});
};

function rainbowHTML(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'rainbowHTML'});
	});
};

chrome.contextMenus.create({
	'title': 'Reverse selection',
	'contexts': ['editable'],
	'onclick': reverse
});

chrome.contextMenus.create({
	'title': 'Flip selection',
	'contexts': ['editable'],
	'onclick': flip
});

chrome.contextMenus.create({
	'title': 'Rainbowify - Forum',
	'contexts': ['editable'],
	'onclick': rainbowBBCode
});

chrome.contextMenus.create({
	'title': 'Rainbowify - HTML',
	'contexts': ['editable'],
	'onclick': rainbowHTML
});<commit_msg>Changed 'Forum' to 'BBCode' in context menu.<commit_after>function reverse(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'reverse'});
	});
};

function flip(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'flip'});
	});
};

function rainbowBBCode(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'rainbowBBCode'});
	});
};

function rainbowHTML(e) {
	chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
		chrome.tabs.sendMessage(tabs[0].id, {textTool: 'rainbowHTML'});
	});
};

chrome.contextMenus.create({
	'title': 'Reverse selection',
	'contexts': ['editable'],
	'onclick': reverse
});

chrome.contextMenus.create({
	'title': 'Flip selection',
	'contexts': ['editable'],
	'onclick': flip
});

chrome.contextMenus.create({
	'title': 'Rainbowify - BBCode',
	'contexts': ['editable'],
	'onclick': rainbowBBCode
});

chrome.contextMenus.create({
	'title': 'Rainbowify - HTML',
	'contexts': ['editable'],
	'onclick': rainbowHTML
});
{'fraction_non_alphanumeric': 0.20435153583617746, 'fraction_numerical': 0.0034129692832764505, 'mean_word_length': 6.237654320987654, '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': '2591548', 'n_tokens_mistral': 860, 'n_tokens_neox': 831, 'n_words': 150}