<commit_before>extends main

block content
	div#main.round_8.clearfix
		div.green.page_title.round_6
			h1.replace Teamspeak Users Around the World
		div#postdiv(style="float:right;margin-right:20px")
			table
				tr
					th Country
					th Users
				tr
					td
						| US 
						img(src="/img/flags/us.png")
					td=results["US"]
				each users,country in results
					if country != "US"
						tr
							td
								= country
								|  
								img(src="/img/flags/"+country.toLowerCase()+".png")
							td=users
		div#content.left
			div#tsmap(style="width: 600px; height: 400px")
			
block append subs
	+state('worldmap', JSON.stringify(results))
	+sub('onPageLoad', function() {
		var gdpData = state('worldmap');
		$("#tsmap").vectorMap({
			map: 'world_mill_en',
			series: {
				regions: [{
					values: gdpData,
					scale: ['#C8EEFF','#0071A4'],
					normalizeFunction: 'polynomial'
				}]
			},
			onRegionLabelShow: function(e, el, code) {
			if (gdpData[code]) {
				el.html(el.html()+' (' + gdpData[code] + ' Users)');
			} else {

			}
			}
		});
	})<commit_msg>Made the map a few pixels wider.<commit_after>extends main

block content
	div#main.round_8.clearfix
		div.green.page_title.round_6
			h1.replace Teamspeak Users Around the World
		div#postdiv(style="float:right;margin-right:20px")
			table
				tr
					th Country
					th Users
				tr
					td
						| US 
						img(src="/img/flags/us.png")
					td=results["US"]
				each users,country in results
					if country != "US"
						tr
							td
								= country
								|  
								img(src="/img/flags/"+country.toLowerCase()+".png")
							td=users
		div#content.left
			div#tsmap(style="width: 640px; height: 400px")
			
block append subs
	+state('worldmap', JSON.stringify(results))
	+sub('onPageLoad', function() {
		var gdpData = state('worldmap');
		$("#tsmap").vectorMap({
			map: 'world_mill_en',
			series: {
				regions: [{
					values: gdpData,
					scale: ['#C8EEFF','#0071A4'],
					normalizeFunction: 'polynomial'
				}]
			},
			onRegionLabelShow: function(e, el, code) {
			if (gdpData[code]) {
				el.html(el.html()+' (' + gdpData[code] + ' Users)');
			} else {

			}
			}
		});
	})
{'fraction_non_alphanumeric': 0.15614923998157532, 'fraction_numerical': 0.01566098572086596, 'mean_word_length': 2.668918918918919, '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': '5676612', 'n_tokens_mistral': 1056, 'n_tokens_neox': 778, 'n_words': 150}