<commit_before><?php
declare(strict_types=1);

namespace ManaPHP\Data;

use ArrayIterator;
use IteratorAggregate;
use ManaPHP\Component;
use ManaPHP\Data\Query\NotFoundException;
use ManaPHP\Exception\MisuseException;
use ManaPHP\Exception\NotSupportedException;
use ManaPHP\Helper\Sharding;
use ManaPHP\Helper\Sharding\ShardingTooManyException;

/**
 * @property-read \ManaPHP\Http\RequestInterface          $request
 * @property-read \ManaPHP\Data\Relation\ManagerInterface $relationManager
 */
abstract class AbstractQuery extends Component implements QueryInterface, IteratorAggregate
{
    protected mixed $db;
    protected string $table;
    protected string $alias;
    protected null|string|array $fields = null;
    protected ?int $limit = null;
    protected ?int $offset = null;
    protected bool $distinct;
    protected ?ModelInterface $model = null;
    protected bool $multiple;
    protected array $with = [];
    protected ?array $order = null;
    protected array $group;
    protected mixed $index;
    protected array $aggregate;
    protected bool $force_master = false;
    protected array $shard_context = [];
    protected mixed $shard_strategy;
    protected mixed $map;

    public function getIterator(): ArrayIterator
    {<commit_msg>fix strict-types or Query<commit_after><?php
declare(strict_types=1);

namespace ManaPHP\Data;

use ArrayIterator;
use IteratorAggregate;
use ManaPHP\Component;
use ManaPHP\Data\Query\NotFoundException;
use ManaPHP\Exception\MisuseException;
use ManaPHP\Exception\NotSupportedException;
use ManaPHP\Helper\Sharding;
use ManaPHP\Helper\Sharding\ShardingTooManyException;

/**
 * @property-read \ManaPHP\Http\RequestInterface          $request
 * @property-read \ManaPHP\Data\Relation\ManagerInterface $relationManager
 */
abstract class AbstractQuery extends Component implements QueryInterface, IteratorAggregate
{
    protected mixed $db;
    protected string $table;
    protected string $alias;
    protected null|string|array $fields = null;
    protected ?int $limit = null;
    protected ?int $offset = null;
    protected bool $distinct;
    protected ?ModelInterface $model = null;
    protected bool $multiple;
    protected array $with = [];
    protected ?array $order = null;
    protected ?array $group = null;
    protected mixed $index;
    protected array $aggregate;
    protected bool $force_master = false;
    protected array $shard_context = [];
    protected mixed $shard_strategy;
    protected mixed $map;

    public function getIterator(): ArrayIterator
    {
{'fraction_non_alphanumeric': 0.08901960784313726, 'fraction_numerical': 0.000784313725490196, 'mean_word_length': 4.370526315789474, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '4414846', 'n_tokens_mistral': 709, 'n_tokens_neox': 708, 'n_words': 200}