<commit_before><?php
/**
 * Lithium: the most rad php framework
 *
 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
 */

namespace lithium\data\source\database\adapter\sqlite3;

use SQLite3Result;

class Result extends \lithium\data\source\database\Result {

	protected function _next() {
		if ($this->_resource instanceof SQLite3Result) {
			return $this->_resource->fetchArray(SQLITE3_ASSOC);
		}
	}

	protected function _close() {
		if ($this->_resource instanceof SQLite3Result) {
			$this->_resource->finalize();
		}
	}

	public function __call($name, $arguments) {
		if (!$this->_resource instanceof SQLite3Result) {
			return;
		}

		if(is_callable(array($this->_resource, $name))) {
			return call_user_method_array($name, $this->_resource, $arguments);
		}
	}
}

?><commit_msg>Minimal syntax correction.<commit_after><?php
/**
 * Lithium: the most rad php framework
 *
 * @copyright     Copyright 2011, Union of RAD (http://union-of-rad.org)
 * @license       http://opensource.org/licenses/bsd-license.php The BSD License
 */

namespace lithium\data\source\database\adapter\sqlite3;

use SQLite3Result;

class Result extends \lithium\data\source\database\Result {

	protected function _next() {
		if ($this->_resource instanceof SQLite3Result) {
			return $this->_resource->fetchArray(SQLITE3_ASSOC);
		}
	}

	protected function _close() {
		if ($this->_resource instanceof SQLite3Result) {
			$this->_resource->finalize();
		}
	}

	public function __call($name, $arguments) {
		if (!$this->_resource instanceof SQLite3Result) {
			return;
		}

		if (is_callable(array($this->_resource, $name))) {
			return call_user_method_array($name, $this->_resource, $arguments);
		}
	}
}

?>
{'fraction_non_alphanumeric': 0.14198218262806236, 'fraction_numerical': 0.011135857461024499, 'mean_word_length': 4.178674351585014, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 23, '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': '3633107', 'n_tokens_mistral': 626, 'n_tokens_neox': 569, 'n_words': 121}