<commit_before>var express = require('express'),
    pkg     = require('./package.json'),
    mkdirp  = require('mkdirp'),
    uuid    = require('node-uuid'),
    auth    = require('./middlewares/auth'),
    config  = require('./config/'),
    routes  = require('./routes/');


// Setup the path to save files to
mkdirp(config.diskPath);

// Setup express app
var server = express();

server.use(express.urlencoded());
server.use(express.json());
server.use(express.cookieParser());
server.use(express.session({ secret: uuid.v4() }));

server.use(function(req, res, next) {
  res.set({
    'X-Powered-By': 'SpaceDock',
    'X-Docker-Registry-Version': pkg.version,
    'X-Docker-Registry-Config': config.env
  });
  next();
});

// Setup registry auth
server.use(auth);

// Setup registry routes
routes(server);

// Setup webserver
server.listen(config.port);<commit_msg>Log when the server is successfully listening<commit_after>var express = require('express'),
    pkg     = require('./package.json'),
    mkdirp  = require('mkdirp'),
    uuid    = require('node-uuid'),
    auth    = require('./middlewares/auth'),
    config  = require('./config/'),
    routes  = require('./routes/');


// Setup the path to save files to
mkdirp(config.diskPath);

// Setup express app
var server = express();

server.use(express.urlencoded());
server.use(express.json());
server.use(express.cookieParser());
server.use(express.session({ secret: uuid.v4() }));

server.use(function(req, res, next) {
  res.set({
    'X-Powered-By': 'SpaceDock',
    'X-Docker-Registry-Version': pkg.version,
    'X-Docker-Registry-Config': config.env
  });
  next();
});

// Setup registry auth
server.use(auth);

// Setup registry routes
routes(server);

// Setup webserver
server.listen(config.port, function () {
  console.log('Registry listening on port %d', config.port);
});
{'fraction_non_alphanumeric': 0.18466522678185746, 'fraction_numerical': 0.0010799136069114472, 'mean_word_length': 3.763496143958869, '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': '5838233', 'n_tokens_mistral': 589, 'n_tokens_neox': 586, 'n_words': 126}