<commit_before>// var http = require('http');
// http.createServer(function (req, res) {
//   res.writeHead(200, {'Content-Type': 'application/jsonnpm'});
//   res.end('Hello New York Lydia\n');
// }).listen(8888);
// console.log('Server running at http://localhost:3001/');

var express = require('express'),
mongoose = require('mongoose'),
bodyParser = require('body-parser'),
fs = require('fs');



var mongoUri = 'mongodb://localhost/noderest';
mongoose.connect(mongoUri);
var db = mongoose.connection;
db.on('error', function () {
  throw new Error('unable to connect to database at ' + mongoUri);
});

var app = express();

// app.use(bodyParser());

require('./models/musician.js');
require('./routes')(app);

app.listen(8899);
console.log('Listening on port 3001...');

// // var app = express();<commit_msg>mongoURI<commit_after>// var http = require('http');
// http.createServer(function (req, res) {
//   res.writeHead(200, {'Content-Type': 'application/jsonnpm'});
//   res.end('Hello New York Lydia\n');
// }).listen(8888);
// console.log('Server running at http://localhost:3001/');

var express = require('express'),
mongoose = require('mongoose'),
bodyParser = require('body-parser'),
fs = require('fs');



//default mongoURL for localhost
var mongoUri = 'mongodb://localhost/noderest';
//new URI for Heroku
mongoUri = 'mongodb://heroku_2vdkgl7c:<EMAIL>:55934/heroku_2vdkgl7c';
mongoose.connect(mongoUri);
var db = mongoose.connection;
db.on('error', function () {
  throw new Error('unable to connect to database at ' + mongoUri);
});

var app = express();

// app.use(bodyParser());

require('./models/musician.js');
require('./routes')(app);

app.listen(8899);
console.log('Listening on port 3001...');

// // var app = express();
{'fraction_non_alphanumeric': 0.2067390062821245, 'fraction_numerical': 0.026841804683038265, 'mean_word_length': 4.669902912621359, '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': '7091719', 'n_tokens_mistral': 613, 'n_tokens_neox': 583, 'n_words': 129}