<commit_before>var MongoClient = require('mongodb').MongoClient;
var _ = require('lodash');

module.exports = function(req, res) {
	MongoClient.connect(process.env.MONGOHQ_URL, function(err, db) {
		if (err) throw err;
		db.collection('tweets').find({"followers_count": {$gt: 10000}}).toArray(function(err, docs) {
			console.log(docs);
	        var tweets = _.map(docs, function(tweet){
	        	return {
					tweet: tweet.text,
					handle: tweet.user.screen_name,
					avatar: tweet.user.profile_image_url,
					link: 'https://twitter.com/neutralthoughts/status/499062476063776768',
					category: 'politician',
					followers: tweet.user.followers_count
	        	}
	        });
	        console.log(tweets);
		    res.jsonp(tweets);

        });

        /*
		var tweets = [{
			tweet: 'I think we should eat book cases #stopthespies What do you think?',
			handle: 'neutralthoughts',
			avatar: 'https://pbs.twimg.com/profile_images/488579015507050497/QvG1ArTx_400x400.jpeg',
			link: 'https://twitter.com/neutralthoughts/status/499062476063776768',
			category: 'politician',
			followers: 1000
		}];
		*/
	});

};<commit_msg>more than 100k<commit_after>var MongoClient = require('mongodb').MongoClient;
var _ = require('lodash');

module.exports = function(req, res) {
	MongoClient.connect(process.env.MONGOHQ_URL, function(err, db) {
		if (err) throw err;
		db.collection('tweets').find({"followers_count": {$gt: 1000}}).toArray(function(err, docs) {
			console.log(docs);
	        var tweets = _.map(docs, function(tweet){
	        	return {
					tweet: tweet.text,
					handle: tweet.user.screen_name,
					avatar: tweet.user.profile_image_url,
					link: 'https://twitter.com/neutralthoughts/status/499062476063776768',
					category: 'politician',
					followers: tweet.user.followers_count
	        	}
	        });
	        console.log(tweets);
		    res.jsonp(tweets);

        });

        /*
		var tweets = [{
			tweet: 'I think we should eat book cases #stopthespies What do you think?',
			handle: 'neutralthoughts',
			avatar: 'https://pbs.twimg.com/profile_images/488579015507050497/QvG1ArTx_400x400.jpeg',
			link: 'https://twitter.com/neutralthoughts/status/499062476063776768',
			category: 'politician',
			followers: 1000
		}];
		*/
	});

};
{'fraction_non_alphanumeric': 0.1472663139329806, 'fraction_numerical': 0.06261022927689594, 'mean_word_length': 3.3550863723608444, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, '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': '161135', 'n_tokens_mistral': 1014, 'n_tokens_neox': 793, 'n_words': 130}