<commit_before>var common = exports;
var path   = require('path');

common.lib = path.join(__dirname, '../lib');

var Mysql = require('../');

common.createConnection = function() {
  return Mysql.createConnection({
    host     : process.env.MYSQL_HOST,
    port     : process.env.MYSQL_PORT,
    user     : process.env.MYSQL_USER,
    password : <PASSWORD>,
  });
};<commit_msg>Make common.createConnection configurable<commit_after>var common = exports;
var path   = require('path');
var _      = require('underscore');

common.lib = path.join(__dirname, '../lib');

var Mysql = require('../');

common.createConnection = function(config) {
  return Mysql.createConnection(_.extend({
    host     : process.env.MYSQL_HOST,
    port     : process.env.MYSQL_PORT,
    user     : process.env.MYSQL_USER,
    password : <PASSWORD>,
  }, config));
};
{'fraction_non_alphanumeric': 0.15683962264150944, 'fraction_numerical': 0.0, 'mean_word_length': 3.445026178010471, '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': '3341047', 'n_tokens_mistral': 271, 'n_tokens_neox': 271, 'n_words': 53}