<commit_before>// Mongo fetch queries

var MongoClient = require('mongodb').MongoClient,
	movies = require('./data').movies,
	express = require('express'),
	app = express(),
	DB;

// Database connection
console.log('Connecting to database...');
MongoClient.connect('mongodb://localhost:27017/movies')
	.then(function(db) {
		DB = db;
		console.log('Connected to database!');

		return //DB.collection('list').insertMany(movies)
	})
	.then(function() {
		//console.log('Data saved to database!');

		app.listen(8000, function() {
			console.log('Server running...');
		});
	})
	.catch(function() {
		console.log('Some error occurred');
	});

// Data fetch queries
app.get('/keyInObject', function(req, res) {
	return DB.collection('list').find({
		"Tomato.meter": 85
	}).toArray()
		.then(function(movies) {
			res.send(movies);
		})
		.catch(function() {
			res.send('Data not found!');
		});
});	








<commit_msg>Data fetch query to perform exact array match<commit_after>// Mongo fetch queries

var MongoClient = require('mongodb').MongoClient,
	movies = require('./data').movies,
	express = require('express'),
	app = express(),
	DB;

// Database connection
console.log('Connecting to database...');
MongoClient.connect('mongodb://localhost:27017/movies')
	.then(function(db) {
		DB = db;
		console.log('Connected to database!');

		return //DB.collection('list').insertMany(movies)
	})
	.then(function() {
		//console.log('Data saved to database!');

		app.listen(8000, function() {
			console.log('Server running...');
		});
	})
	.catch(function() {
		console.log('Some error occurred');
	});

// Data fetch queries
app.get('/keyInObject', function(req, res) {
	return DB.collection('list').find({
		"Tomato.meter": 85
	}).toArray()
		.then(function(movies) {
			res.send(movies);
		})
		.catch(function() {
			res.send('Data not found!');
		});
});	

app.get('/exactArrayMatch', function(req, res) {
	return DB.collection('list').find({
		"Genre": ["Action", "Adventure", "Comedy"]
	}).toArray()
		.then(function(movies) {
			res.send(movies);
		})
		.catch(function() {
			res.send('Data not found!');
		});
});	







{'fraction_non_alphanumeric': 0.20422535211267606, 'fraction_numerical': 0.010328638497652582, 'mean_word_length': 4.037825059101655, 'pattern_counts': {'":': 3, '<': 3, '<?xml version=': 0, '>': 3, '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': '478206', 'n_tokens_mistral': 806, 'n_tokens_neox': 716, 'n_words': 139}