<commit_before>'use strict';

var mysql = require("mysql");

module.exports = function () {

    var pool;

    function connect(config) {
        config['connectionLimit'] = config['connectionLimit'] || 100;
        pool = mysql.createPool(config);
    }

    function executeQuery(query, params, success, failure) {
        params = params || [];
        pool.getConnection(function (err, connection) {
            if (err) {
                failure && failure(err);
                return;
            }
            connection.query(query, params, function (err, result) {
                pool.releaseConnection(connection);
                if (err) {
                    failure && failure(err);
                    return;<commit_msg>Config parameter for connection pooling limit set to mysqli default<commit_after>'use strict';

var mysql = require("mysql");

module.exports = function () {

    var pool;

    function connect(config) {
        pool = mysql.createPool(config);
    }

    function executeQuery(query, params, success, failure) {
        params = params || [];
        pool.getConnection(function (err, connection) {
            if (err) {
                failure && failure(err);
                return;
            }
            connection.query(query, params, function (err, result) {
                pool.releaseConnection(connection);
                if (err) {
                    failure && failure(err);
                    return;
{'fraction_non_alphanumeric': 0.1121751025991792, 'fraction_numerical': 0.002051983584131327, 'mean_word_length': 1.840776699029126, 'pattern_counts': {'":': 0, '<': 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': '6967617', 'n_tokens_mistral': 368, 'n_tokens_neox': 343, 'n_words': 89}