<commit_before>var representatives = {};
var lists = {};
var results = {};
var votes = {};
var projectData = {};

var projects = [
	'ley-26331',
	'ley-26425',
	'ley-26522',
	'ley-26571',
	'ley-26618',
	'ley-26637',
	'ley-26639',
	'ley-26649',
	'ley-26728',
	'ley-26729',
	'ley-26734',
	'ley-26736',
	'ley-26737',
	'ley-26739',
	'ley-26740',
	'ley-26741',
	'ley-26743',
	'ley-26761',
	'ley-26764',
	'ley-26773',
	'ley-26774',
	'ley-26784',
	'ley-26790',
	'ley-26831',
	'ley-26842',
	'ley-26843',
	'ley-26844',
	'ley-26853',
	'ley-26854',
	'ley-26855',
	'ley-26860',
	'proyecto-res-125'
];

function reset() {
	results = {};
	votes = {};
	$('#intro').css('display', 'block');
	$('#about').css('display', 'none');
	$('#voting').css('display', 'none');
	$('#results').css('display', 'none');

	$('#district').val('');
	$('#lists').empty();
}

function saveResults(items) {
	$.each(items, function (i, li) {
		var id = slugify(li.innerText);
		if (representatives[id]) {
			results[id] = representatives[id];
		}
	});
}

function showLists(district, house, callback) {
	var selectedLists = lists[district][house];
	if (!selectedLists) {
		showResults();
	}
	var root = $('#lists');
	root.empty();
	for (var i = 0; i < selectedLists.length; i++) {
		var list = selectedLists[i];
		var p = $(document.createElement('p')).text(list['lista']);
		var ol = $(document.createElement('ol'));
		for (var j = 0; j < list['candidatos'].length; j++) {
			var name = list['candidatos'][j];<commit_msg>Fixed DOM compatibility for Firefox<commit_after>var representatives = {};
var lists = {};
var results = {};
var votes = {};
var projectData = {};

var projects = [
	'ley-26331',
	'ley-26425',
	'ley-26522',
	'ley-26571',
	'ley-26618',
	'ley-26637',
	'ley-26639',
	'ley-26649',
	'ley-26728',
	'ley-26729',
	'ley-26734',
	'ley-26736',
	'ley-26737',
	'ley-26739',
	'ley-26740',
	'ley-26741',
	'ley-26743',
	'ley-26761',
	'ley-26764',
	'ley-26773',
	'ley-26774',
	'ley-26784',
	'ley-26790',
	'ley-26831',
	'ley-26842',
	'ley-26843',
	'ley-26844',
	'ley-26853',
	'ley-26854',
	'ley-26855',
	'ley-26860',
	'proyecto-res-125'
];

function reset() {
	results = {};
	votes = {};
	$('#intro').css('display', 'block');
	$('#about').css('display', 'none');
	$('#voting').css('display', 'none');
	$('#results').css('display', 'none');

	$('#district').val('');
	$('#lists').empty();
}

function saveResults(items) {
	$.each(items, function (i, li) {
		var id = slugify($(li).text());
		if (representatives[id]) {
			results[id] = representatives[id];
		}
	});
}

function showLists(district, house, callback) {
	var selectedLists = lists[district][house];
	if (!selectedLists) {
		showResults();
	}
	var root = $('#lists');
	root.empty();
	for (var i = 0; i < selectedLists.length; i++) {
		var list = selectedLists[i];
		var p = $(document.createElement('p')).text(list['lista']);
		var ol = $(document.createElement('ol'));
		for (var j = 0; j < list['candidatos'].length; j++) {
			var name = list['candidatos'][j];
{'fraction_non_alphanumeric': 0.25267737617135205, 'fraction_numerical': 0.107095046854083, 'mean_word_length': 4.405063291139241, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2836230', 'n_tokens_mistral': 1442, 'n_tokens_neox': 1218, 'n_words': 225}