<commit_before><?php
/**
 *  @package infra
 *  @subpackage DB
 */
class KalturaStatement extends PDOStatement
{
	protected static $dryRun = false;
	
	protected $values = array();
	
	/**
	 * @param bool $dryRun
	 */
	public static function setDryRun($dryRun)
	{
		self::$dryRun = $dryRun;
	}
	
	public function bindValue ($parameter, $value, $data_type = null)
	{
		$index = count($this->values) + 1;
		$this->values[":p{$index}"] = "'" . str_replace("'", "''", $value) . "'";
		
		return parent::bindValue ($parameter, $value, $data_type);
	}

	public function execute ($input_parameters = null) <commit_msg>qnd: log null as NULL<commit_after><?php
/**
 *  @package infra
 *  @subpackage DB
 */
class KalturaStatement extends PDOStatement
{
	protected static $dryRun = false;
	
	protected $values = array();
	
	/**
	 * @param bool $dryRun
	 */
	public static function setDryRun($dryRun)
	{
		self::$dryRun = $dryRun;
	}
	
	public function bindValue ($parameter, $value, $data_type = null)
	{
		$index = count($this->values) + 1;
		if(is_null($value))
			$this->values[":p{$index}"] = "NULL";
		else
			$this->values[":p{$index}"] = "'" . str_replace("'", "''", $value) . "'";
		
		return parent::bindValue ($parameter, $value, $data_type);
	}

	public function execute ($input_parameters = null) 
{'fraction_non_alphanumeric': 0.18272937548188126, 'fraction_numerical': 0.0015420200462606013, 'mean_word_length': 4.090196078431372, 'pattern_counts': {'":': 3, '<': 5, '<?xml version=': 0, '>': 8, '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': '4486084', 'n_tokens_mistral': 487, 'n_tokens_neox': 441, 'n_words': 104}