<commit_before>var express = require('express'),
app = express(),
config = require('./config.js');

var port = config.server.listenPort;

var server = require('http').createServer(app);
// Hook Socket.io into Express
var io = require('socket.io').listen(server);

app.configure(function (){
  app.use(express.methodOverride());
  app.use(express.bodyParser());
  app.use(express.static(config.server.distFolder));
  app.use(function (req, res, next) {
    res.setHeader('Access-Control-Allow-Origin','*');
    next();
  });
  app.use(app.router);
});

var UserController = {
  get: function (req, res, next) {
    res.send(req.params.username)
  }
};

app.get('/api/user/:username', UserController.get);

server.listen(port, function () {
  console.log('Now serving the app at http://localhost:' + port + config.server.distFolder);
});

io.sockets.on('connection', function (socket) {
  socket.on('message.new', function (data) {
    socket.broadcast.emit('message.broadcast', data);
    socket.emit('message.received', {time: Date.now()});
  })
});
<commit_msg>fixed displayed server path to be correct for url<commit_after>var express = require('express'),
app = express(),
config = require('./config.js');

var port = config.server.listenPort;

var server = require('http').createServer(app);
// Hook Socket.io into Express
var io = require('socket.io').listen(server);

app.configure(function (){
  app.use(express.methodOverride());
  app.use(express.bodyParser());
  app.use(express.static(config.server.distFolder));
  app.use(function (req, res, next) {
    res.setHeader('Access-Control-Allow-Origin','*');
    next();
  });
  app.use(app.router);
});

var UserController = {
  get: function (req, res, next) {
    res.send(req.params.username)
  }
};

app.get('/api/user/:username', UserController.get);

server.listen(port, function () {
  console.log('Now serving the app at http://localhost:' + port + '/index.html');
});

io.sockets.on('connection', function (socket) {
  socket.on('message.new', function (data) {
    socket.broadcast.emit('message.broadcast', data);
    socket.emit('message.received', {time: Date.now()});
  })
});

{'fraction_non_alphanumeric': 0.1935784085621219, 'fraction_numerical': 0.0, 'mean_word_length': 4.613577023498695, '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': '7612337', 'n_tokens_mistral': 689, 'n_tokens_neox': 688, 'n_words': 132}