<commit_before>// (function() {
//     var childProcess = require("child_process");
//     oldSpawn = childProcess.spawn;
//     function mySpawn() {
//         console.log('spawn called');
//         console.log(arguments);
//         var result = oldSpawn.apply(this, arguments);
//         return result;
//     }
//     childProcess.spawn = mySpawn;
// })();

var routes = require('../routes');
var http = require('http');
var path = require('path');
var compass = require('node-compass');
var express = require('express');
var app = express();
exports.app = app;

// all environments
app.set('port', process.env.PORT || 3000);
app.set('view engine', 'ejs');
app.set('views', path.join(__dirname, '../views'));
app.use(express.logger('dev'));
app.configure(function() {
    app.use(compass({
      project: path.join(__dirname, '../'),
      sass: 'assets/sass',
      css: 'public/css',
      mode: 'compressed'
    }));
});
app.use(express.favicon("../public/images/favicon.png"));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(express.bodyParser());
app.use(app.router);
app.use(express.static(path.join(__dirname, '/../public')));
app.use('/bower_components',  express.static(__dirname + '/../support/bower_components'));

if ('development' == app.get('env')) {
  app.use(express.errorHandler());  
}

app.get('/', routes.home.get);
app.get('/gitpull', routes.gitPull.get);
app.post('/gitpull', routes.gitPull.post);
app.get('/coc', routes.coc.get);

http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});<commit_msg>mentor<commit_after>(function() {
    var childProcess = require("child_process");
    var oldSpawn = childProcess.spawn;
    function mySpawn() {
        console.log('spawn called');
        console.log(arguments);
        var result = oldSpawn.apply(this, arguments);
        return result;
    }
    childProcess.spawn = mySpawn;
})();

var routes = require('../routes');
var http = require('http');
var path = require('path');
var compass = require('node-compass');
var express = require('express');
var app = express();
exports.app = app;

// all environments
app.set('port', process.env.PORT || 3000);
app.set('view engine', 'ejs');
app.set('views', path.join(__dirname, '../views'));
app.use(express.logger('dev'));
app.configure(function() {
    app.use(compass({
      project: path.join(__dirname, '../'),
      sass: 'assets/sass',
      css: 'public/css',
      mode: 'compressed'
    }));
});
app.use(express.favicon("../public/images/favicon.png"));
app.use(express.json());
app.use(express.urlencoded());
app.use(express.methodOverride());
app.use(express.bodyParser());
app.use(app.router);
app.use(express.static(path.join(__dirname, '/../public')));
app.use('/bower_components',  express.static(__dirname + '/../support/bower_components'));

if ('development' == app.get('env')) {
  app.use(express.errorHandler());  
}

app.get('/', routes.home.get);
app.get('/gitpull', routes.gitPull.get);
app.post('/gitpull', routes.gitPull.post);
app.get('/coc', routes.coc.get);
app.get('/mentor', routes.mentor.get);

http.createServer(app).listen(app.get('port'), function(){
  console.log('Express server listening on port ' + app.get('port'));
});
{'fraction_non_alphanumeric': 0.21840120663650076, 'fraction_numerical': 0.0024132730015082957, 'mean_word_length': 4.125193199381762, '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': '2293973', 'n_tokens_mistral': 1080, 'n_tokens_neox': 1069, 'n_words': 188}