<commit_before>var
	_ = require('underscore'),
	express = require('express'),
	router = express.Router(),
	viewConfigService = require('../services/dataService');

module.exports = function (app) {
  app.use('/data', router);
};

router.route('/evolution')
	.get(function(req, res, next) {
		var minutes = req.query.minutes ? req.query.minutes : 90;

		return viewConfigService
			.getEvolution(minutes)
			.then(function(result) {
				return res.status(200).json(result).end();
			})
			.error(function(err) {
				return res.status(500).send(err).end();
			})
	});

//router.route('/maps/:mapId')
//	.get(function (req, res) {
//		res.status(200).json(actionService.getMap(req.params.mapId)).end();
//	});<commit_msg>Added missing return statement and renamed variable<commit_after>var
	_ = require('underscore'),
	express = require('express'),
	router = express.Router(),
	dataService = require('../services/dataService');

module.exports = function (app) {
  app.use('/data', router);
};

router.route('/evolution')
	.get(function(req, res, next) {
		var minutes = req.query.minutes ? req.query.minutes : 90;

		return dataService
			.getEvolution(minutes)
			.then(function(result) {
				return res.status(200).json(result).end();
			})
			.error(function(err) {
				return next(err);
			})
	});

//router.route('/maps/:mapId')
//	.get(function (req, res) {
//		res.status(200).json(actionService.getMap(req.params.mapId)).end();
//	});
{'fraction_non_alphanumeric': 0.19791666666666666, 'fraction_numerical': 0.013194444444444444, 'mean_word_length': 4.109929078014185, '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': '5732754', 'n_tokens_mistral': 543, 'n_tokens_neox': 482, 'n_words': 78}