<commit_before>var mysql = require('mysql');
var connection;

if (process.env.JAWSDB_URL) {
	connection = mysql.createConnection(process.env.JAWSDB_URL);
} else {
  connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '<PASSWORD>',
    database: 'burgers_db'
  });
};

connection.connect(function(err) {
    if (err) {
        console.error('error connecting: ' + err.stack);
        return;
    }
    console.log('connected as id ' + connection.threadId);
});

module.exports = connection;<commit_msg>db connection<commit_after>//Require mysql
var mysql = require('mysql');
//Set up our connection information
var connection = mysql.createConnection({
    host: 'localhost',
    user: 'root',
    password: '<PASSWORD>',
    database: 'burgers_db'
  });
//Connect to the database
connection.connect(function(err) {
    if (err) {
        console.error('error connecting: ' + err.stack);
        return;
    }
    console.log('connected as id ' + connection.threadId);
});
// Export connection
module.exports = connection;
{'fraction_non_alphanumeric': 0.147834274952919, 'fraction_numerical': 0.0, 'mean_word_length': 3.662280701754386, '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': '1507418', 'n_tokens_mistral': 318, 'n_tokens_neox': 317, 'n_words': 73}