<commit_before>'use strict';

var Q = require('q');
var express = require('express');
var routes = require('./routes/index');
var path = require('path');
var timetables = require('./timetables');

var server = express();

server.get('/', function (req, res) {
  res.sendfile('index.html', {'root': __dirname + '/../public' });
});

server.get('/stations', function(req, res, next) {
    timetables.getStations().then(function(stations) {
        res.setHeader('Content-Type', 'application/json');
        res.send(JSON.stringify(stations));
    }).fail(next);
});

server.start = function () {
    var port = 8080;
    return Q.ninvoke(server, 'listen', port)
        .then(function () {
            console.info("Server listening on port %s", port);
        });
};

module.exports = server;
<commit_msg>Remove routes from server.js as the source is not found.<commit_after>'use strict';

var Q = require('q');
var express = require('express');
var path = require('path');
var timetables = require('./timetables');

var server = express();

server.get('/', function (req, res) {
  res.sendfile('index.html', {'root': __dirname + '/../public' });
});

server.get('/stations', function(req, res, next) {
    timetables.getStations().then(function(stations) {
        res.setHeader('Content-Type', 'application/json');
        res.send(JSON.stringify(stations));
    }).fail(next);
});

server.start = function () {
    var port = 8080;
    return Q.ninvoke(server, 'listen', port)
        .then(function () {
            console.info("Server listening on port %s", port);
        });
};

module.exports = server;

{'fraction_non_alphanumeric': 0.1930477963997517, 'fraction_numerical': 0.004965859714463066, 'mean_word_length': 3.5925925925925926, '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': '1819934', 'n_tokens_mistral': 500, 'n_tokens_neox': 494, 'n_words': 116}