<commit_before><?php
/**
 * Created by PhpStorm.
 * Author: <NAME>
 * Date: 4/22/2017 4:08 AM
 */

namespace Qpdb\QueryBuilder;


use Qpdb\QueryBuilder\Statements\QueryCustom;
use Qpdb\QueryBuilder\Statements\QueryDelete;
use Qpdb\QueryBuilder\Statements\QueryInsert;
use Qpdb\QueryBuilder\Statements\QuerySelect;
use Qpdb\QueryBuilder\Statements\QueryUpdate;

class QueryBuild
{

    /**
     * @var integer
     */
	private $queryType;

	/**
	 * QueryBuild constructor.
	 * @param $queryType
	 */
	protected function __construct( $queryType )
	{
		$this->queryType = $queryType;
	}

	/**
	 * @param $table
	 * @return QuerySelect
	 */
	public static function select( $table )
	{
		return new QuerySelect( new QueryBuild(0), $table );
	}

	/**
	 * @param $table
	 * @return QueryUpdate
	 */
	public static function update( $table )
	{
		return new QueryUpdate( new QueryBuild(0), $table );
	}

    /**
     * @param $table
     * @return QueryInsert
     */
    public static function insert( $table )
    {
        return new QueryInsert( new QueryBuild(0), $table );
    }

    /**
     * @param $table
     * @return QueryDelete
     */
    public static function delete( $table )
    {
        return new QueryDelete( new QueryBuild(0), $table);
    }

    /**
     * @return QueryCustom
     */
    public static function custom()
    {
        return new QueryCustom( new QueryBuild(1));
    }

	/**
	 * @return integer
	 */
	public function getType()
	{
		return $this->queryType;
	}

}<commit_msg>Reformat code<commit_after><?php
/**
 * Created by PhpStorm.
 * Author: <NAME>
 * Date: 4/22/2017 4:08 AM
 */

namespace Qpdb\QueryBuilder;


use Qpdb\QueryBuilder\Statements\QueryCustom;
use Qpdb\QueryBuilder\Statements\QueryDelete;
use Qpdb\QueryBuilder\Statements\QueryInsert;
use Qpdb\QueryBuilder\Statements\QuerySelect;
use Qpdb\QueryBuilder\Statements\QueryUpdate;

class QueryBuild
{

    /**
     * @var integer
     */
    private $queryType;

    /**
     * QueryBuild constructor.
     * @param $queryType
     */
    protected function __construct($queryType)
    {
        $this->queryType = $queryType;
    }

    /**
     * @param $table
     * @return QuerySelect
     */
    public static function select($table)
    {
        return new QuerySelect(new QueryBuild(0), $table);
    }

    /**
     * @param $table
     * @return QueryUpdate
     */
    public static function update($table)
    {
        return new QueryUpdate(new QueryBuild(0), $table);
    }

    /**
     * @param $table
     * @return QueryInsert
     */
    public static function insert($table)
    {
        return new QueryInsert(new QueryBuild(0), $table);
    }

    /**
     * @param $table
     * @return QueryDelete
     */
    public static function delete($table)
    {
        return new QueryDelete(new QueryBuild(0), $table);
    }

    /**
     * @return QueryCustom
     */
    public static function custom()
    {
        return new QueryCustom(new QueryBuild(1));
    }

    /**
     * @return integer
     */
    public function getType()
    {
        return $this->queryType;
    }

}
{'fraction_non_alphanumeric': 0.12508059316569956, 'fraction_numerical': 0.009671179883945842, 'mean_word_length': 2.4477777777777776, 'pattern_counts': {'":': 0, '<': 7, '<?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': '3992968', 'n_tokens_mistral': 1010, 'n_tokens_neox': 963, 'n_words': 223}