<commit_before><?php

namespace Gdbots\QueryParser\Node;

use Gdbots\QueryParser\QueryLexer;
use Gdbots\QueryParser\Visitor\QueryItemVisitorInterface;

abstract class AbstractQueryItem
{
    /**
     * @var bool
     */
    protected $excluded = false;

    /**
     * @var bool
     */
    protected $included = false;

    /**
     * @var float
     */
    protected $boostBy = null;

    /**
     * @param bool $bool
     *
     * @return self
     */
    public function setExcluded($bool = false)
    {
        $this->excluded = $bool;

        return $this;
    }

    /**
     * @return bool
     */
    public function isExcluded()
    {
        return $this->excluded;
    }

    /**
     * @param bool $bool
     *
     * @return self
     */
    public function setIncluded($bool = false)
    {
        $this->included = $bool;

        return $this;
    }

    /**
     * @return bool
     */
    public function isIncluded()
    {
        return $this->included;
    }

    /**
     * @param float $boostBy
     *
     * @return self
     */
    public function setBoostBy($boostBy)
    {
        $this->boostBy = $boostBy;

        return $this;
    }

    /**
     * @return float
     */
    public function getBoostBy()
    {
        return $this->boostBy;
    }

    /**
     * @return bool
     */
    public function isBoosted()
    {
        return (bool)$this->boostBy;
    }

    /**
     * @return array
     */
    public function toArray()
    {
        return [];
    }

    /**
     * @param int $tokenType
     *
     * @return array
     */
    public function getQueryItemsByTokenType($tokenType = null)
    {
        return [];
    }

    /**
     * @param QueryItemVisitorInterface $visitor
     *
     * @return mixed
     */
    abstract public function accept(QueryItemVisitorInterface $visitor);
}<commit_msg>Convert some function to abstract<commit_after><?php

namespace Gdbots\QueryParser\Node;

use Gdbots\QueryParser\QueryLexer;
use Gdbots\QueryParser\Visitor\QueryItemVisitorInterface;

abstract class AbstractQueryItem
{
    /**
     * @var bool
     */
    protected $excluded = false;

    /**
     * @var bool
     */
    protected $included = false;

    /**
     * @var float
     */
    protected $boostBy = null;

    /**
     * @param bool $bool
     *
     * @return self
     */
    public function setExcluded($bool = false)
    {
        $this->excluded = $bool;

        return $this;
    }

    /**
     * @return bool
     */
    public function isExcluded()
    {
        return $this->excluded;
    }

    /**
     * @param bool $bool
     *
     * @return self
     */
    public function setIncluded($bool = false)
    {
        $this->included = $bool;

        return $this;
    }

    /**
     * @return bool
     */
    public function isIncluded()
    {
        return $this->included;
    }

    /**
     * @param float $boostBy
     *
     * @return self
     */
    public function setBoostBy($boostBy)
    {
        $this->boostBy = $boostBy;

        return $this;
    }

    /**
     * @return float
     */
    public function getBoostBy()
    {
        return $this->boostBy;
    }

    /**
     * @return bool
     */
    public function isBoosted()
    {
        return (bool)$this->boostBy;
    }

    /**
     * @return array
     */
    abstract public function toArray();

    /**
     * @param int $tokenType
     *
     * @return array
     */
    abstract public function getQueryItemsByTokenType($tokenType = null);

    /**
     * @param QueryItemVisitorInterface $visitor
     *
     * @return mixed
     */
    abstract public function accept(QueryItemVisitorInterface $visitor);
}
{'fraction_non_alphanumeric': 0.12425068119891008, 'fraction_numerical': 0.0, 'mean_word_length': 1.6620739666424946, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7635113', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1113, 'n_words': 238}