<commit_before>var keystone = require('keystone');
var async = require('async');
var Post = keystone.list('Post');
var strip = require('strip');

/**
 * List Posts
 */
module.exports = function getPosts(req, res) {
	Post.model.find(function(err, items) {

		if (err) return res.apiError('database error', err);
		console.log(items);
		var alexaCompliantItems = items.map((item) => {
			return {
				uid: item._id,
				updateDate: item.publishedDate,
				titleText: item.title,
				mainText: encode_utf8(strip(item.content.brief)),
				redirectionUrl: `https://microsite-torstar.herokuapp.com/articles/post/${item.slug}`
			}
		});

		res.send(alexaCompliantItems);

	});
}<commit_msg>removing a lingering console log<commit_after>var keystone = require('keystone');
var async = require('async');
var Post = keystone.list('Post');
var strip = require('strip');

/**
 * List Posts
 */
module.exports = function getPosts(req, res) {
	Post.model.find(function(err, items) {

		if (err) return res.apiError('database error', err);
		
		var alexaCompliantItems = items.map((item) => {
			return {
				uid: item._id,
				updateDate: item.publishedDate,
				titleText: item.title,
				mainText: encode_utf8(strip(item.content.brief)),
				redirectionUrl: `https://microsite-torstar.herokuapp.com/articles/post/${item.slug}`
			}
		});

		res.send(alexaCompliantItems);

	});
}
{'fraction_non_alphanumeric': 0.16374269005847952, 'fraction_numerical': 0.0014619883040935672, 'mean_word_length': 4.3062015503875966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '482117', 'n_tokens_mistral': 527, 'n_tokens_neox': 454, 'n_words': 87}