<commit_before>/**
 * Created by tomasj on 28/01/14.
 */
var config =  require('./config');
var winston = require("winston");
winston.add(winston.transports.File, {filename: '../app.log', level: 'debug'}).remove(winston.transports.Console);
var express = require('express');
var path = require('path');

var app = express();

app.use(express.json());
app.use(express.urlencoded());
app.use(express.static(path.join(__dirname, 'public')));
//var AUTOUSING_THE_ROUTER_IS_A_NUISANCE = app.router;
//Load the routes ("controllers" -ish)
["./backend/routes/guests"].forEach(function (routePath) {
    require(routePath)(app);
});

//OK, routes are loaded, NOW use the router:
app.use(app.router);


app.listen(config.express.port, config.express.ip, function (error) {
  if (error) {
    winston.error("Unable to listen for connections", error);
    process.exit(10);
  }
  winston.info("express is listening on http://" +
    config.express.ip + ":" + config.express.port);
});<commit_msg>remove logging to a file (console logging should be on)<commit_after>/**
 * Created by tomasj on 28/01/14.
 */
var config =  require('./config');
var winston = require("winston");
//winston.add(winston.transports.File, {filename: '../app.log', level: 'debug'}).remove(winston.transports.Console);
var express = require('express');
var path = require('path');

var app = express();

app.use(express.json());
app.use(express.urlencoded());
app.use(express.static(path.join(__dirname, 'public')));
//var AUTOUSING_THE_ROUTER_IS_A_NUISANCE = app.router;
//Load the routes ("controllers" -ish)
["./backend/routes/guests"].forEach(function (routePath) {
    require(routePath)(app);
});

//OK, routes are loaded, NOW use the router:
app.use(app.router);


app.listen(config.express.port, config.express.ip, function (error) {
  if (error) {
    winston.error("Unable to listen for connections", error);
    process.exit(10);
  }
  winston.info("express is listening on http://" +
    config.express.ip + ":" + config.express.port);
});
{'fraction_non_alphanumeric': 0.18570009930486595, 'fraction_numerical': 0.007944389275074478, 'mean_word_length': 4.724431818181818, 'pattern_counts': {'":': 2, '<': 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': '6016919', 'n_tokens_mistral': 683, 'n_tokens_neox': 661, 'n_words': 149}