<commit_before><?php

namespace Carrooi\NoGrid\DataSource\Doctrine;

use Carrooi\NoGrid\DataSource\IDataSource;
use Carrooi\NoGrid\NotImplementedException;
use Doctrine\ORM\AbstractQuery;
use Kdyby\Doctrine\QueryObject;
use Kdyby\Persistence\Queryable;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
class DoctrineQueryObjectDataSource implements IDataSource
{


	/** @var \Kdyby\Persistence\Queryable */
	private $repository;

	/** @var \Kdyby\Doctrine\QueryObject */
	private $query;

	/** @var \Kdyby\Doctrine\ResultSet */
	private $resultSet;

	/** @var int */
	private $hydrationMode = AbstractQuery::HYDRATE_OBJECT;


	/**
	 * @param \Kdyby\Persistence\Queryable $repository
	 * @param \Kdyby\Doctrine\QueryObject $query
	 */
	public function __construct(Queryable $repository, QueryObject $query)
	{
		$this->repository = $repository;
		$this->query = $query;
	}


	/**
	 * @return int
	 */
	public function getHydrationMode()
	{
		return $this->hydrationMode;
	}<commit_msg>Fix namespaces in doctrine query object data source<commit_after><?php

namespace Carrooi\NoGrid\DataSource\Doctrine;

use Carrooi\NoGrid\DataSource\IDataSource;
use Carrooi\NoGrid\NotImplementedException;
use Doctrine\ORM\AbstractQuery as DoctrineAbstractQuery;
use Kdyby\Doctrine\QueryObject;
use Kdyby\Persistence\Queryable;

/**
 *
 * @author <NAME> <<EMAIL>>
 */
class DoctrineQueryObjectDataSource implements IDataSource
{


	/** @var \Kdyby\Persistence\Queryable */
	private $repository;

	/** @var \Kdyby\Doctrine\QueryObject */
	private $query;

	/** @var \Kdyby\Doctrine\ResultSet */
	private $resultSet;

	/** @var int */
	private $hydrationMode = DoctrineAbstractQuery::HYDRATE_OBJECT;


	/**
	 * @param \Kdyby\Persistence\Queryable $repository
	 * @param \Kdyby\Doctrine\QueryObject $query
	 */
	public function __construct(Queryable $repository, QueryObject $query)
	{
		$this->repository = $repository;
		$this->query = $query;
	}


	/**
	 * @return int
	 */
	public function getHydrationMode()
	{
		return $this->hydrationMode;
	}
{'fraction_non_alphanumeric': 0.13359722909450766, 'fraction_numerical': 0.0, 'mean_word_length': 4.494565217391305, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 15, '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': '6717500', 'n_tokens_mistral': 704, 'n_tokens_neox': 662, 'n_words': 129}