<commit_before>'use strict';

// 1/12: all the user display and delete/voting restrictions
var mongoose = require('mongoose');
var db = mongoose.connection;

var express = require('express');
var app = express();
var mongo = require('mongodb');
var bodyParser = require('body-parser');
var controller = require('./controllers');

mongoose.connect('mongodb://localhost:27017/votingapp', function (err, db)
{
 if (err) {
      throw new Error('Database failed to connect!');
   } else {
      console.log('Successfully connected to MongoDB on port 27017.');<commit_msg>Changed URL to a MongoLab one, for database connection<commit_after>'use strict';

// 1/12: all the user display and delete/voting restrictions
var mongoose = require('mongoose');
var db = mongoose.connection;

var express = require('express');
var app = express();
var mongo = require('mongodb');
var bodyParser = require('body-parser');
var controller = require('./controllers');

mongoose.connect('mongodb://heroku_l51d2vps:<EMAIL>:45475/heroku_l51d2vps', function (err, db)
{
 if (err) {
      throw new Error('Database failed to connect!');
   } else {
      console.log('Successfully connected to MongoDB on port 27017.');
{'fraction_non_alphanumeric': 0.14225941422594143, 'fraction_numerical': 0.026778242677824266, 'mean_word_length': 5.010050251256281, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '2660698', 'n_tokens_mistral': 375, 'n_tokens_neox': 356, 'n_words': 109}