<commit_before><?php
/**
 *  This file belongs to AnonymPHP Framework
 *
 * @author vahitserifsaglam1 <<EMAIL>>
 * @website http://anonymphp.com/framework
 */

namespace Anonym\Database;

/**
 * Class QueryBuilder
 * @package Anonym\Database
 */
class QueryBuilder
{

    /**
     * As değerini tutar
     *
     * @var mixed
     */
    private $as;

    /**
     * a type of array for create query
     *
     * @var array
     */
    private $tongueBuilders = [
        Base::TYPE_MYSQL => MysqlTongue::class,
        Base::TYPE_MSSQL => MssqlTongue::class,
        Base::TYPE_PGSQL => PgsqlTongue::class
    ];

    /**
     * @var Base
     */
    private $base;

    /**
     * Sayfa numarasını tutar
     *
     * @var int
     */
    protected $page;

    /**
     * the constructor of ModeManager .
     *
     * @param Base $base
     */
    public function __construct(Base $base = null)
    {
        $this->setBase($base);
        $this->datas['from'] = $base->getConnectedTable();
        $this->datas['select'] = '*';
    }

    /**
     * create a new BuildManager instance with created query
     *
     * @return \Anonym\Database\Managers\BuildManager
     */
    public function build()
    {
        list($query, $parameters) =  array_values($this->buildQuery());
        $manager = new BuildManager($this->getBase()->getConnection());
        $manager->setQuery($query);
        $manager->setParams($parameters);

        return $manager;
    }

    /**
     * building your query string
     *
     * @return string
     */
    protected function buildQuery(){
        return $this->getBase()->bridge->tongue->build($this->datas);
    }


    /**
     * Query oluşturur
     *
     * @return \PDOStatement
     */
    public function run()
    {

        return $this->build()->run();
    }

    /**
     * store the content
     *
     * @var string
     */
    protected $datas;

    /**
     * @param $base
     * @return $this
     */
    public function setBase($base)
    {

        $this->base = $base;

        return $this;<commit_msg>made some updates<commit_after><?php
/**
 *  This file belongs to AnonymPHP Framework
 *
 * @author vahitserifsaglam1 <<EMAIL>>
 * @website http://anonymphp.com/framework
 */

namespace Anonym\Database;

/**
 * Class QueryBuilder
 * @package Anonym\Database
 */
class QueryBuilder
{

    /**
     * As değerini tutar
     *
     * @var mixed
     */
    private $as;

    /**
     * a type of array for create query
     *
     * @var array
     */
    private $tongueBuilders = [
        Base::TYPE_MYSQL => MysqlTongue::class,
        Base::TYPE_MSSQL => MssqlTongue::class,
        Base::TYPE_PGSQL => PgsqlTongue::class
    ];

    /**
     * @var Base
     */
    private $base;

    /**
     * Sayfa numarasını tutar
     *
     * @var int
     */
    protected $page;

    /**
     * the constructor of ModeManager .
     *
     * @param Base $base
     */
    public function __construct(Base $base = null)
    {
        $this->setBase($base);
        $this->datas['from'] = $base->getConnectedTable();
        $this->datas['select'] = '*';
    }

    /**
     * create a new BuildManager instance with created query
     *
     * @return \Anonym\Database\Managers\BuildManager
     */
    public function build()
    {
        list($query, $parameters) =  array_values($this->buildQuery());
        $manager = new BuildManager($this->getBase()->getConnection());
        $manager->setQuery($query);
        $manager->setParams($parameters);

        return $manager;
    }

    /**
     * building your query string
     *
     * @return string
     */
    protected function buildQuery(){
        return $this->getBase()->bridge->tongue->build($this->datas);
    }


    /**
     * Query oluşturur
     *
     * @return \PDOStatement
     */
    public function run()
    {
        return $this->build()->run();
    }

    /**
     * store the content
     *
     * @var string
     */
    protected $datas;

    /**
     * @param $base
     * @return $this
     */
    public function setBase($base)
    {

        $this->base = $base;

        return $this;
{'fraction_non_alphanumeric': 0.14558645707376058, 'fraction_numerical': 0.0004836759371221282, 'mean_word_length': 1.9004207573632539, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 47, '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': '1440371', 'n_tokens_mistral': 1322, 'n_tokens_neox': 1273, 'n_words': 265}