<commit_before>var config = require('./config/db-config');
var mongoose = require('mongoose');

var db = mongoose.connect(config.db[process.env.NODE_ENV].uri, config.db[process.env.NODE_ENV].options, function (err) {
    if (err) {
        console.error('Could not connect to MongoDB.');
        console.log(err);
    }
});

mongoose.connection.on('error', function (err) {
    console.error('MongoDB connection error: ' + err);
});

var app = require('./config/app-config')(db);

app.listen(config.port, function () {
    console.log('Express app listening on port: ' + config.port);
});<commit_msg>change the logged server message<commit_after>var config = require('./config/db-config');
var mongoose = require('mongoose');

var db = mongoose.connect(config.db[process.env.NODE_ENV].uri, config.db[process.env.NODE_ENV].options, function (err) {
    if (err) {
        console.error('Could not connect to MongoDB.');
        console.log(err);
    }
});

mongoose.connection.on('error', function (err) {
    console.error('MongoDB connection error: ' + err);
});

var app = require('./config/app-config')(db);

app.listen(config.port, function () {
    console.log('Subscriptions-API listening on Port: ' + config.port);
});
{'fraction_non_alphanumeric': 0.17714285714285713, 'fraction_numerical': 0.0, 'mean_word_length': 4.129707112970712, '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': '4275911', 'n_tokens_mistral': 385, 'n_tokens_neox': 392, 'n_words': 79}