<commit_before>
/**
 * Module dependencies.
 */

var express = require('express'),
    nko     = require('nko')('HZImKIPa/PNedR2z');

var app = module.exports = express.createServer();

// Configuration

app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); 
});

app.configure('production', function(){
  app.use(express.errorHandler()); 
});

// Routes

app.get('/', function(req, res){
  res.render('index', {
    title: 'Express'
  });
});

app.listen(process.env.NODE_ENV === 'production' ? 80 :3000);
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
<commit_msg>heh. Let's not run the server as root<commit_after>
/**
 * Module dependencies.
 */

var express = require('express'),
    nko     = require('nko')('HZImKIPa/PNedR2z');

var app = module.exports = express.createServer();

// Configuration

app.configure(function(){
  app.set('views', __dirname + '/views');
  app.set('view engine', 'jade');
  app.use(express.bodyParser());
  app.use(express.methodOverride());
  app.use(app.router);
  app.use(express.static(__dirname + '/public'));
});

app.configure('development', function(){
  app.use(express.errorHandler({ dumpExceptions: true, showStack: true })); 
});

app.configure('production', function(){
  app.use(express.errorHandler()); 
});

// Routes

app.get('/', function(req, res){
  res.render('index', {
    title: 'Express'
  });
});

app.listen(process.env.NODE_ENV === 'production' ? 80 :3000,function(){
	// Maybe we shouldn't run as root =)
	if (process.getuid() === 0)
	    require('fs').stat(__filename, function(err, stats) {
		    if (err) return console.log(err)
				 process.setuid(stats.uid);
		});
	console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);
    });
{'fraction_non_alphanumeric': 0.20180009474182853, 'fraction_numerical': 0.0071056371387967785, 'mean_word_length': 4.457364341085271, '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': '6750229', 'n_tokens_mistral': 712, 'n_tokens_neox': 690, 'n_words': 138}