<commit_before>(function () {
	'use strict';
	// Awesome Browser Shortcuts
	chrome.commands.onCommand.addListener(function (command) {
		console.log(command);
		if (command === 'toggle-pin') {
			// Get current tab in the active window
			chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
				var currentTab = tabs[0];
				chrome.tabs.update(currentTab.id, {'pinned': currentTab.pinned});
			});
		}
	});
})();<commit_msg>Fix toggle-pin and clean code<commit_after>(function () {
	'use strict';
	// Awesome Browser Shortcuts
	chrome.commands.onCommand.addListener(function (command) {
		if (command === 'toggle-pin') {
			// Get current tab in the active window
			chrome.tabs.query({active: true, currentWindow: true}, function(tabs) {
				var currentTab = tabs[0];
				chrome.tabs.update(currentTab.id, {'pinned': !currentTab.pinned});
			});
		}
	});
})();
{'fraction_non_alphanumeric': 0.16799091940976163, 'fraction_numerical': 0.0022701475595913734, 'mean_word_length': 4.188235294117647, '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': '3569357', 'n_tokens_mistral': 313, 'n_tokens_neox': 275, 'n_words': 63}