<commit_before>'use strict';

var util = require('util'),

    express = require('express'),

    config = require('./config'),
    logger = require('./logger'),
    updater = require('./updater'),
    controllers = require('./controllers');

/**
 * Starts express server
 */
module.exports = function () {
    var app = express();
    app.set('port', config.get('server:port') || 3000);

    app
        .use(function (req, res, next) {
            logger.debug(util.format('retrieve request %s', req.path), module);
            next();
        })
        .get('/', controllers.index)
        .get('/ping/:environment', controllers.ping)
        .get('/data/:environment', controllers.data)<commit_msg>Remove updater dependency from server module<commit_after>'use strict';

var util = require('util'),

    express = require('express'),

    config = require('./config'),
    logger = require('./logger'),
    controllers = require('./controllers');

/**
 * Starts express server
 */
module.exports = function () {
    var app = express();
    app.set('port', config.get('server:port') || 3000);

    app
        .use(function (req, res, next) {
            logger.debug(util.format('retrieve request %s', req.path), module);
            next();
        })
        .get('/', controllers.index)
        .get('/ping/:environment', controllers.ping)
        .get('/data/:environment', controllers.data)
{'fraction_non_alphanumeric': 0.1841541755888651, 'fraction_numerical': 0.005710206995003569, 'mean_word_length': 2.7386666666666666, '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': '1401410', 'n_tokens_mistral': 399, 'n_tokens_neox': 383, 'n_words': 88}