<commit_before>(function(){

	chrome.tabs.getSelected(null, function(tab) {
		chrome.extension.sendMessage({name: 'getPollution', tabId: tab.id}, function(response) {
			title = document.getElementsByClassName('title')[0].innerHTML = '<strong>' + response.pollution.length + ' objects </strong><small>polluting the global namespace:</small>';
			table = document.getElementById('pollution-body');
			response.pollution.forEach(function(obj, idx) {
				tr = document.createElement('tr');
				tr.setAttribute('fulldata', obj.name);
				name = obj.name;
				if (name.length > 30) {
					name = name.substr(0,30) + ' ...';
				}
				tr.innerHTML = '<td>' + (idx+1) + '</td><td>' + name + '</td><td>' + obj.type + '</td>';
				table.appendChild(tr);
			});
		});
	});

	document.onclick = function(event) {
		var el = event.target;
		if (el.nodeName = 'TD') {<commit_msg>Sorted alphabetically, ignoreing case. Fixes #2<commit_after>(function(){

	chrome.tabs.getSelected(null, function(tab) {
		chrome.extension.sendMessage({name: 'getPollution', tabId: tab.id}, function(response) {
			title = document.getElementsByClassName('title')[0].innerHTML = '<strong>' + response.pollution.length + ' objects </strong><small>polluting the global namespace:</small>';
			table = document.getElementById('pollution-body');

			// Alphabetize, son.
			response.pollution.sort(function(a,b) {
				var cmp = a.name.toLowerCase().localeCompare(b.name.toLowerCase());
				if (cmp > 0) {
					return 1;
				} else if (cmp < 0) {
					return -1;
				}
				return 0;
			});


			response.pollution.forEach(function(obj, idx) {
				tr = document.createElement('tr');
				tr.setAttribute('fulldata', obj.name);
				name = obj.name;
				if (name.length > 30) {
					name = name.substr(0,30) + ' ...';
				}
				tr.innerHTML = '<td>' + (idx+1) + '</td><td>' + name + '</td><td>' + obj.type + '</td>';
				table.appendChild(tr);
			});
		});
	});

	document.onclick = function(event) {
		var el = event.target;
		if (el.nodeName = 'TD') {
{'fraction_non_alphanumeric': 0.19492789656887122, 'fraction_numerical': 0.009945300845350571, 'mean_word_length': 3.6466512702078524, 'pattern_counts': {'":': 0, '<': 24, '<?xml version=': 0, '>': 26, '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': '7077159', 'n_tokens_mistral': 780, 'n_tokens_neox': 664, 'n_words': 122}