<commit_before>var express = require('express');
var app = express();

app.use(express.static(__dirname + "/public"));

app.get('/contactList', function(req, res) {
	console.log('I received a GET request')
	
	person1 = {
		name: 'Patr',
		email: '<EMAIL>',
		number: '(021) 333-3333'
	};
	
	person2 = {
		name: 'John',
		email: '<EMAIL>',
		number: '(021) 262-2626'
	};
	
	person3 = {
		name: 'Costa',
		email: '<EMAIL>',
		number: '(021) 191-1919'
	};
	
	var contactList = [person1, person2, person3];
	res.json(contactList);
});<commit_msg>Update server.js to use mongoDB<commit_after>var express = require('express');
var app = express();
var mongojs = require('mongojs');
var db = mongojs('contactList', ['contactList']);

app.use(express.static(__dirname + "/public"));

app.get('/contactList', function(req, res) {
	console.log('I received a GET request')
	
	db.contactList.find(function(err, docs) {
		console.log(docs);
		res.json(docs);
	});
});
{'fraction_non_alphanumeric': 0.19916142557651992, 'fraction_numerical': 0.03773584905660377, 'mean_word_length': 4.650887573964497, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '1612087', 'n_tokens_mistral': 384, 'n_tokens_neox': 342, 'n_words': 77}