<commit_before><?php
/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com 
 * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html 
 */
lmb_require('limb/dbal/src/query/lmbTemplateQuery.class.php');

define('LIMB_INSERT_QUERY_NON_VALUE', uniqid());

/**
 * class lmbInsertQuery.
 *
 * @package dbal
 * @version $Id: lmbInsertQuery.class.php 7165 2008-08-29 11:15:26Z serega $
 */
class lmbInsertQuery extends lmbTemplateQuery
{
  protected $_table;
  protected $_fields = array();
  protected $_set_values = array();

  function __construct($table, $conn)
  {
    $this->_table = $table;
    parent :: __construct("INSERT INTO %table% (%fields%) VALUES (%values%)", $conn);
    $this->_registerHint('table');
    $this->_registerHint('values');
  }

  function addField($field, $value = LIMB_INSERT_QUERY_NON_VALUE)
  {
    $this->_fields[$field] = $value;
    $this->_registerHint('fields');
  }

  protected function _getTableHint()<commit_msg>[svn r7224] -- added self return for lmbInsertQuery::addField()<commit_after><?php
/*
 * Limb PHP Framework
 *
 * @link http://limb-project.com
 * @copyright  Copyright &copy; 2004-2007 BIT(http://bit-creative.com)
 * @license    LGPL http://www.gnu.org/copyleft/lesser.html
 */
lmb_require('limb/dbal/src/query/lmbTemplateQuery.class.php');

define('LIMB_INSERT_QUERY_NON_VALUE', uniqid());

/**
 * class lmbInsertQuery.
 *
 * @package dbal
 * @version $Id: lmbInsertQuery.class.php 7224 2008-11-17 15:57:24Z korchasa $
 */
class lmbInsertQuery extends lmbTemplateQuery
{
  protected $_table;
  protected $_fields = array();
  protected $_set_values = array();

  function __construct($table, $conn)
  {
    $this->_table = $table;
    parent :: __construct("INSERT INTO %table% (%fields%) VALUES (%values%)", $conn);
    $this->_registerHint('table');
    $this->_registerHint('values');
  }

  function addField($field, $value = LIMB_INSERT_QUERY_NON_VALUE)
  {
    $this->_fields[$field] = $value;
    $this->_registerHint('fields');
    return $this;
  }

  protected function _getTableHint()
{'fraction_non_alphanumeric': 0.1627469426152399, 'fraction_numerical': 0.02634054562558796, 'mean_word_length': 4.371212121212121, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '403851', 'n_tokens_mistral': 776, 'n_tokens_neox': 714, 'n_words': 137}