<commit_before><?php
/**
 * This file is part of the Kappa\Doctrine package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the license.md
 * file that was distributed with this source code.
 *
 * @testCase
 */

namespace KappaTests\Doctrine\Queries;

use Doctrine\ORM\Tools\SchemaTool;
use Kappa\Doctrine\Queries\QueryExecutor;
use KappaTests\Mocks\ExecutableQuery;
use KappaTests\Mocks\FormItemsEntity;
use KappaTests\ORMTestCase;
use Kdyby\Doctrine\EntityRepository;
use Tester\Assert;
use Tester\Environment;

require_once __DIR__ . '/../../bootstrap.php';

/**
 * Class QueryExecutorTest
 *
 * @package Kappa\Doctrine\Tests
 * @author <NAME> <http://zaruba-ondrej.cz>
 */
class QueryExecutorTest extends ORMTestCase
{
	/** @var QueryExecutor */
	private $queryExecutor;

	/** @var EntityRepository */
	private $dao;

	/*protected function setUp()
	{
		parent::setUp();
		$entity1 = new FormItemsEntity("entity1 title", "entity1 name");
		$classes = [
			$this->em->getClassMetadata('KappaTests\Mocks\FormItemsEntity'),
		];
		$schemaTool = new SchemaTool($this->em);
		$schemaTool->dropSchema($classes);
		$schemaTool->createSchema($classes);
		$this->em->persist($entity1);
		$this->em->flush();
		$this->dao = $this->em->getRepository('KappaTests\Mocks\FormItemsEntity');
		$this->queryExecutor = new QueryExecutor($this->em);
	}

	public function testBuild()
	{
		Assert::same("entity1 title", $this->dao->find(1)->getTitle());
		$this->queryExecutor->execute(new ExecutableQuery());
		Assert::same("UPDATED", $this->dao->find(1)->getTitle());
	}*/
}

Environment::lock("database", dirname(TEMP_DIR));

\run(new QueryExecutorTest());<commit_msg>Updated test<commit_after><?php
/**
 * This file is part of the Kappa\Doctrine package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the license.md
 * file that was distributed with this source code.
 *
 * @testCase
 */

namespace KappaTests\Doctrine\Queries;

use Doctrine\ORM\Tools\SchemaTool;
use Kappa\Doctrine\Queries\QueryExecutor;
use KappaTests\Mocks\ExecutableQuery;
use KappaTests\Mocks\FormItemsEntity;
use KappaTests\Mocks\GetAll;
use KappaTests\ORMTestCase;
use Kdyby\Doctrine\EntityRepository;
use Tester\Assert;
use Tester\Environment;

require_once __DIR__ . '/../../bootstrap.php';

/**
 * Class QueryExecutorTest
 *
 * @package Kappa\Doctrine\Tests
 * @author <NAME> <http://zaruba-ondrej.cz>
 */
class QueryExecutorTest extends ORMTestCase
{
	/** @var QueryExecutor */
	private $queryExecutor;

	/** @var EntityRepository */
	private $dao;

	/*protected function setUp()
	{
		parent::setUp();
		$entity1 = new FormItemsEntity("entity1 title", "entity1 name");
		$entity2 = new FormItemsEntity("entity2 title", "entity2 name");
		$classes = [
			$this->em->getClassMetadata('KappaTests\Mocks\FormItemsEntity'),
		];
		$schemaTool = new SchemaTool($this->em);
		$schemaTool->dropSchema($classes);
		$schemaTool->createSchema($classes);
		$this->em->persist($entity1, $entity2);
		$this->em->flush();
		$this->dao = $this->em->getRepository('KappaTests\Mocks\FormItemsEntity');
		$this->queryExecutor = new QueryExecutor($this->em);
	}

	public function testBuild()
	{
		Assert::same("entity1 title", $this->dao->find(1)->getTitle());
		$this->queryExecutor->execute(new ExecutableQuery());
		Assert::same("UPDATED", $this->dao->find(2)->getTitle());
	}*/
}

Environment::lock("database", dirname(TEMP_DIR));

\run(new QueryExecutorTest());
{'fraction_non_alphanumeric': 0.16585783614045105, 'fraction_numerical': 0.005138452754781616, 'mean_word_length': 5.083333333333333, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 57, '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': '6813028', 'n_tokens_mistral': 1175, 'n_tokens_neox': 1147, 'n_words': 229}