<commit_before>/**
 * Insert db method
 */
var util    = require('util');
var table   = require('./proto/table');
var data   = require('./proto/data');


/**
 * db.Insert() - initiator
 */
function Init(_table) {
    return new Insert(_table, this._connection);
}


/**
 * Insert constructor
 */
function Insert(_table, connection) {
    this._connection = connection;

    //defaults
    this._table       = _table || '';
    this._dataColumns = '';
    this._dataHolders = '';
    this._dataArgs    = [];

    return this;
}


/**
 * Prototypes
 */
Insert.prototype.data  = data;
Insert.prototype.table = table;


/**
 * Run
 */
Insert.prototype.run = function Run(cb) {
    var query = util.format('INSERT INTO %s (%s) VALUES %s', this._table, this._dataColumns, this._dataHolders);

    console.log(query)

    this._connection.queryPost(query, this._dataArgs, cb);

    return this;
}


/**
 * Exports
 */
module.exports  = Init;<commit_msg>forgot to remove debug message<commit_after>/**
 * Insert db method
 */
var util    = require('util');
var table   = require('./proto/table');
var data   = require('./proto/data');


/**
 * db.Insert() - initiator
 */
function Init(_table) {
    return new Insert(_table, this._connection);
}


/**
 * Insert constructor
 */
function Insert(_table, connection) {
    this._connection = connection;

    //defaults
    this._table       = _table || '';
    this._dataColumns = '';
    this._dataHolders = '';
    this._dataArgs    = [];

    return this;
}


/**
 * Prototypes
 */
Insert.prototype.data  = data;
Insert.prototype.table = table;


/**
 * Run
 */
Insert.prototype.run = function Run(cb) {
    var query = util.format('INSERT INTO %s (%s) VALUES %s', this._table, this._dataColumns, this._dataHolders);

    this._connection.queryPost(query, this._dataArgs, cb);

    return this;
}


/**
 * Exports
 */
module.exports  = Init;
{'fraction_non_alphanumeric': 0.1649867374005305, 'fraction_numerical': 0.0, 'mean_word_length': 2.912863070539419, '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': '1247765', 'n_tokens_mistral': 607, 'n_tokens_neox': 576, 'n_words': 132}