<commit_before>function ddg_spice_github_jobs(github) {
	if(github.length > 0) {
		var query = DDG.get_query();
		var re = /(?:\s*(?:i\s+|we\s+)?(?:need|want|deserve|seek|get)\s+(?:an?\s+)?)?(?:(.+)\s+)(?:jobs?|work|employment)(?:\s+(?:in\s+)?(.+))?/;
		var moreat = query.replace(re, "https://jobs.github.com/positions?description=$1&location=$2");
		//console.log(github);
		var out = '', more = '';
		out += '<div style="jobs"><ul>';
		more += out;
		for(var i = 0;i < github.length;i++) {
			var bullet = '<li><a href="' + github[i].url + '">' + github[i].title + 
					'</a> in ' + github[i].location + ' (' + github[i].company + ')</li>';
			if(i < 5) {
				out += bullet;
			} else {
				more += bullet;
			}
		}
		out += '</ul>';
		more += '</ul>';
		var items = [[],[]];
		items[0]['a'] = out;
		items[0]['h'] = query + ' (Github Jobs)';
		items[0]['s'] = 'Github';
		items[0]['u'] = moreat;
		items[0]['f'] = 1;
		items[0]['force_big_header'] = true;

		if(github.length > 5) {
			items[1]['a'] = more;
			items[1]['t'] = 'More jobs';
			items[1]['s'] = 'Github';
			items[1]['u'] =  encodeURIComponent(moreat);
			items[1]['f'] = 1;
		}
		nra(items);
	}<commit_msg>Description and location values are now escaped<commit_after>function ddg_spice_github_jobs(github) {
	if(github.length > 0) {
		var query = DDG.get_query();
		var re = /(?:\s*(?:i\s+|we\s+)?(?:need|want|deserve|seek|get)\s+(?:an?\s+)?)?(?:(.+)\s+)(?:jobs?|work|employment)(?:\s+(?:in\s+)?(.+))?/;
		var description = query.replace(re, "$1");
		var location = query.replace(re, "$2");
		var moreat = "https://jobs.github.com/positions?description=" +  encodeURIComponent(description) + "&location=" +  encodeURIComponent(location);
		var out = '', more = '';
		out += '<div style="jobs"><ul>';
		more += out;
		for(var i = 0;i < github.length;i++) {
			var bullet = '<li><a href="' + github[i].url + '">' + github[i].title + 
					'</a> in ' + github[i].location + ' (' + github[i].company + ')</li>';
			if(i < 5) {
				out += bullet;
			} else {
				more += bullet;
			}
		}
		out += '</ul>';
		more += '</ul>';
		var items = [[],[]];
		items[0]['a'] = out;
		items[0]['h'] = query + ' (Github Jobs)';
		items[0]['s'] = 'Github';
		items[0]['u'] = moreat;
		items[0]['f'] = 1;
		items[0]['force_big_header'] = true;

		if(github.length > 5) {
			items[1]['a'] = more;
			items[1]['t'] = 'More jobs';
			items[1]['s'] = 'Github';
			items[1]['u'] =  moreat;
			items[1]['f'] = 1;
		}
		nra(items);
	}
{'fraction_non_alphanumeric': 0.2846184901090028, 'fraction_numerical': 0.015341138473960436, 'mean_word_length': 3.649155722326454, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 23, 'https://': 2, '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': '6119298', 'n_tokens_mistral': 1148, 'n_tokens_neox': 1001, 'n_words': 173}