<commit_before>// Create a pool of connections with the database.
var mysql = require('mysql');

var pool = mysql.createPool({
    connectionLimit : 10,
    host: 'localhost',
    user: 'root',
    password: '<PASSWORD>',
    database: 'meadmuseum'
});

// Connect to the database
pool.getConnection(function(err, connection) {
  // Use the connection
  connection.query( 'SELECT something FROM sometable', function(err, rows) {
	if (err) throw err;
   	else {
        	console.log('Connection was sucessful');
    }
    // And done with the connection.
    connection.release();

    // Don't use the connection here, it has been returned to the pool.
  });<commit_msg>updated server.js that shows objects<commit_after>// Create a pool of connections with the database.
var mysql = require('mysql');

var pool = mysql.createPool({
    connectionLimit : 10,
    host: 'localhost',
    user: 'root',
    password: '<PASSWORD>',
    database: 'meadmuseum'
});

// Connect to the database
pool.getConnection(function(err, connection) {
  // Use the connection
  connection.query( 'select id, title from objects', function(err, result, fields) {
	if (err) throw err;
   	else {
        	console.log('Connection was sucessful');
		console.log('Number of objects: ' + result.length);
		for (var i in result) {
            		var object = result[i];
            		console.log(object.id +': '+ object.title);
       		}
    }
    // And done with the connection.
    connection.release();

    // Don't use the connection here, it has been returned to the pool.
  });
{'fraction_non_alphanumeric': 0.12644415917843388, 'fraction_numerical': 0.0025673940949935813, 'mean_word_length': 3.0284237726098193, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3155714', 'n_tokens_mistral': 459, 'n_tokens_neox': 447, 'n_words': 154}