<commit_before>var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');

var routes = require('./routes/index');
var users = require('./routes/users');

var app = express();

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');
<commit_msg>updating files<commit_after>var express = require('express');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var mongoose =  require('mongoose');

var routes = require('./routes/index');
var users = require('./routes/users');

var app = express();
var mongodbUri = 'mongodb://pledgemaster:<EMAIL>:21356/nfldb';
//connecting to database
mongoose.connect(mongodbUri);
var db = mongoose.connection;

db.on('error', console.error.bind(console, 'connection error:'));

db.once('open', function callback (){
  
  var exampleSchema = mongoose.Schema({
    team: String,
    wins: Number,
    losses: Number
  });
  
  var team = mongoose.model('Teams', exampleSchema);
  
  var pats = new team({
    team: 'Pats',
    wins: 18,
    losses: 0
  });
  
  pats.save();
  
  mongoose.connection.db.close(function (err){
    if(err) throw err;
  });
  
});

// view engine setup
app.set('views', path.join(__dirname, 'views'));
app.set('view engine', 'ejs');

{'fraction_non_alphanumeric': 0.1815224463240078, 'fraction_numerical': 0.00520494469746259, 'mean_word_length': 4.696296296296296, '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': '1123344', 'n_tokens_mistral': 492, 'n_tokens_neox': 495, 'n_words': 122}