<commit_before>var express = require('express'),
  mongoose = require('mongoose'),
  bodyParser = require('body-parser'),
  app = express(),
  fs = require('fs');

var config = {
  'database' : 'mongodb://127.0.0.1/agenda_colaborativa',
};

var router = express.Router();

// Conexão com o mongoDB.
mongoose.connect(config.database, function(err) {
  console.log('Erro no mongoDB');
});
app.use(bodyParser());
// Require all routes.
fs.readdirSync('./controllers').forEach(function(file) {
  if(file.substr(-3) == '.js') {
    route = require('./controllers/' + file);
    route.controller(app);
  }
});

app.set('port', process.env.PORT || 8080);
<commit_msg>Corrigindo problema no log da conexao com o banco de dados<commit_after>var express = require('express'),
  mongoose = require('mongoose'),
  bodyParser = require('body-parser'),
  app = express(),
  fs = require('fs');

var config = {
  'database' : 'mongodb://localhost/agenda_colaborativa',
};

var router = express.Router();

// Conexão com o mongoDB.
mongoose.connect(config.database, function(err) {
  if (err) {
    console.log('Erro no mongoDB');
  }
});

app.use(bodyParser());
// Require all routes.
fs.readdirSync('./controllers').forEach(function(file) {
  if(file.substr(-3) == '.js') {
    route = require('./controllers/' + file);
    route.controller(app);
  }
});

app.set('port', process.env.PORT || 8080);

{'fraction_non_alphanumeric': 0.1956678700361011, 'fraction_numerical': 0.011552346570397111, 'mean_word_length': 4.230188679245283, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 1, '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': '6453342', 'n_tokens_mistral': 483, 'n_tokens_neox': 477, 'n_words': 94}