<commit_before><?php

namespace Mbrevda\Queryproxy;

use \Aura\Sql\ExtendedPdo;
use \Aura\SqlQuery\QueryFactory;

class Db extends ExtendedPdo
{

    /**
     * Returns a Select object
     *
     * @return object a select object
     */
    public function select()
    {
        return new QueryProxy('select', $this);
    }

    /**
     * Returns a Insert object
     *
     * @return object an insert object
     */
    public function insert()
    {
        return new QueryProxy('insert', $this);
    }

    /**
     * Returns a Update object
     *
     * @return object a update object
     */
    public function update()
    {
        return new QueryProxy('update', $this);
    }


    /**
     * Returns a Delete object
     *
     * @return object a delete object
     */
    public function delete()
    {
        return new QueryProxy('delete', $this);
    }

    /**
     * Start a transaction
     */
    public function transactionStart()
    {
        return $this->fetchAffected('BEGIN TRANSACTION');
    }

    /**
     * Commit a transaction
     */
    public function transactionSave()
    {
        return $this->fetchAffected('COMMIT');
    }

    /**
     * Cancel a transaction
     */
    public function transactionCancel()
    {
        return $this->fetchAffected('ROOLBACK');
    }
}<commit_msg>correct spelling for rollback<commit_after><?php

namespace Mbrevda\Queryproxy;

use \Aura\Sql\ExtendedPdo;
use \Aura\SqlQuery\QueryFactory;

class Db extends ExtendedPdo
{

    /**
     * Returns a Select object
     *
     * @return object a select object
     */
    public function select()
    {
        return new QueryProxy('select', $this);
    }

    /**
     * Returns a Insert object
     *
     * @return object an insert object
     */
    public function insert()
    {
        return new QueryProxy('insert', $this);
    }

    /**
     * Returns a Update object
     *
     * @return object a update object
     */
    public function update()
    {
        return new QueryProxy('update', $this);
    }


    /**
     * Returns a Delete object
     *
     * @return object a delete object
     */
    public function delete()
    {
        return new QueryProxy('delete', $this);
    }

    /**
     * Start a transaction
     */
    public function transactionStart()
    {
        return $this->fetchAffected('BEGIN TRANSACTION');
    }

    /**
     * Commit a transaction
     */
    public function transactionSave()
    {
        return $this->fetchAffected('COMMIT');
    }

    /**
     * Cancel a transaction
     */
    public function transactionCancel()
    {
        return $this->fetchAffected('ROLLBACK');
    }
}
{'fraction_non_alphanumeric': 0.11293941660433807, 'fraction_numerical': 0.0, 'mean_word_length': 1.9139433551198257, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 9, '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': '555904', 'n_tokens_mistral': 780, 'n_tokens_neox': 745, 'n_words': 203}