<commit_before><?php

namespace Quibble\Query;

use DomainException;
use PDOStatement;

class Group extends Builder
{
    use Where;
    use Bindable;

    public function __toString() : string
    {
        return implode(' ', $this->wheres);
    }

    public function getStatement(array $driver_options = []) :? PDOStatement
    {
        throw new DomainException("Cannot get a statement for a group.");
    }

    public function getExecutedStatement(array $driver_options = []) :? PDOStatement
    {
        throw new DomainException("Cannot get a statement for a group.");
    }
}
<commit_msg>place the in/notIn methods on the _group_, that makes way more sense + nicer code<commit_after><?php

namespace Quibble\Query;

use DomainException;
use PDOStatement;

class Group extends Builder
{
    use Where;
    use Bindable;

    public function __toString() : string
    {
        return array_reduce($this->wheres, [$this, 'recursiveImplode'], '');
    }

    public function getStatement(array $driver_options = []) :? PDOStatement
    {
        throw new DomainException("Cannot get a statement for a group.");
    }

    public function getExecutedStatement(array $driver_options = []) :? PDOStatement
    {
        throw new DomainException("Cannot get a statement for a group.");
    }

    public function in($field, array $values) : self
    {
        $sql = "$field IN (";
        $sql .= implode(', ', array_fill(0, count($values), '?'));
        $sql .= ')';
        return $this->where($sql, ...array_values($values));
    }

    public function notIn($field, array $values) : self
    {
        return $this->in("$field NOT", $values);
    }
}

{'fraction_non_alphanumeric': 0.1219951923076923, 'fraction_numerical': 0.0006009615384615385, 'mean_word_length': 2.9832535885167464, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, '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': '2793571', 'n_tokens_mistral': 492, 'n_tokens_neox': 474, 'n_words': 141}