bin/loadTweets.js
//Keeps count of the total tweets by country
Keeps count of the total tweets by country
Keeps count of the total tweets by country
function sum(country, point) {
	summary.total += 1;
	if (!summary[country]) {
		summary[country] = {};
		summary[country].count = 1;
		summary[country].points = 0;
		summary[country].places = 0;
	} else {
		summary[country].count += 1;
	}
	if (point) {
		summary.points += 1;
		summary[country].points += 1;
	} else {
		summary.places += 1;
		summary[country].places += 1;
	}
	return;
}
function sum ( country , point ) { summary . total += 1 ; if ( ! summary [ country ] ) { summary [ country ] = { } ; summary [ country ] . count = 1 ; summary [ country ] . points = 0 ; summary [ country ] . places = 0 ; } else { summary [ country ] . count += 1 ; } if ( point ) { summary . points += 1 ; summary [ country ] . points += 1 ; } else { summary . places += 1 ; summary [ country ] . places += 1 ; } return ; }
Keeps count of the total tweets by country
Keeps count of the total tweets by country