<commit_before>var express = require('express'),
    path = require('path'),
    http = require('http'),
    mongoose = require('mongoose'),
    routes = require('./routes/routes.js');


mongoose.connect('mongodb://172.16.58.3/parking');
var db = mongoose.connection;

db.on('error', function(msg) {
  console.log('Mongoose connection error %s', msg);
});

db.once('open', function() {
  console.log('Mongoose connection established');
});

// set up the app

var app = express();


app.use(express.logger('dev'));  /* 'default', 'short', 'tiny', 'dev' */
app.use(express.json());
app.use(express.urlencoded());

app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'bower_components')));

routes.init(app);


app.set('port', process.env.PORT || 3000);
http.createServer(app).listen(app.get('port'), function () {
    console.log("Express server listening on port " + app.get('port'));
});

// For deployment
// module.exports = app;<commit_msg>Deploy<commit_after>var express = require('express'),
    path = require('path'),
    http = require('http'),
    mongoose = require('mongoose'),
    routes = require('./routes/routes.js');


mongoose.connect('mongodb://172.16.58.3/parking');
var db = mongoose.connection;

db.on('error', function(msg) {
  console.log('Mongoose connection error %s', msg);
});

db.once('open', function() {
  console.log('Mongoose connection established');
});

// set up the app

var app = express();


app.use(express.logger('dev'));  /* 'default', 'short', 'tiny', 'dev' */
app.use(express.json());
app.use(express.urlencoded());

app.use(app.router);
app.use(express.static(path.join(__dirname, 'public')));
app.use(express.static(path.join(__dirname, 'bower_components')));

routes.init(app);


// app.set('port', process.env.PORT || 3000);
// http.createServer(app).listen(app.get('port'), function () {
//     console.log("Express server listening on port " + app.get('port'));
// });

For deployment
module.exports = app;
{'fraction_non_alphanumeric': 0.21410952146028614, 'fraction_numerical': 0.011840157868771583, 'mean_word_length': 4.844380403458214, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '578265', 'n_tokens_mistral': 682, 'n_tokens_neox': 672, 'n_words': 123}