<commit_before><?php namespace yajra\Oci8\Query\Processors;

use Illuminate\Database\Query\Builder;
use Illuminate\Database\Query\Processors\Processor;
use PDO;
use PDOStatement;

class OracleProcessor extends Processor {

	/**
	 * DB Statement
	 *
	 * @var PDOStatement
	 */
	protected $statement;

	/**
	 * Process an "insert get ID" query.
	 *
	 * @param  Builder $query
	 * @param  string $sql
	 * @param  array $values
	 * @param  string $sequence
	 * @return int
	 */
	public function processInsertGetId(Builder $query, $sql, $values, $sequence = null)
	{
		$counter = 0;
		$id = 0;

		// set PDO statement property
		$this->prepareStatement($query, $sql);
		$counter = $this->bindValuesAndReturnCounter($values, $counter);

		// bind output param for the returning clause
		$this->statement->bindParam($counter, $id, PDO::PARAM_INT);

		// execute statement<commit_msg>Fix 64-bit PHP bug with INOUT bindParam call <commit_after><?php namespace yajra\Oci8\Query\Processors;

use Illuminate\Database\Query\Builder;
use Illuminate\Database\Query\Processors\Processor;
use PDO;
use PDOStatement;

class OracleProcessor extends Processor {

	/**
	 * DB Statement
	 *
	 * @var PDOStatement
	 */
	protected $statement;

	/**
	 * Process an "insert get ID" query.
	 *
	 * @param  Builder $query
	 * @param  string $sql
	 * @param  array $values
	 * @param  string $sequence
	 * @return int
	 */
	public function processInsertGetId(Builder $query, $sql, $values, $sequence = null)
	{
		$counter = 0;
		$id = 0;

		// set PDO statement property
		$this->prepareStatement($query, $sql);
		$counter = $this->bindValuesAndReturnCounter($values, $counter);

		// bind output param for the returning clause
		$this->statement->bindParam($counter, $id, PDO::PARAM_INT|PDO::PARAM_INPUT_OUTPUT, 8);

		// execute statement
{'fraction_non_alphanumeric': 0.12755383765875208, 'fraction_numerical': 0.004969630038652678, 'mean_word_length': 3.9643835616438357, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '2363116', 'n_tokens_mistral': 608, 'n_tokens_neox': 560, 'n_words': 156}