<commit_before><?php
namespace Squid\MySql\Impl\Traits\CmdTraits;


trait TWithColumn
{
	/**
	 * @param array $columns
	 * @return static
	 */
	public function column(...$columns)
	{
		return $this->addColumn($columns, false);
	}
	
	/**
	 * @param string|array $columns
	 * @param string|bool $table
	 * @return static
	 */
	public function columns($columns, $table = false)
	{
		if (!is_array($columns)) $columns = [$columns];
		
		foreach ($columns as &$column) 
		{
			$column = "`$table`.`$column`";
		}
		
		return $this->addColumn($columns, false);
	}
	
	/**
	 * @param string|array $columns
	 * @param bool|array $bind
	 * @return static
	 */
	public function columnsExp($columns, $bind = false) 
	{
		if (!is_array($columns)) $columns = [$columns];
		
		return $this->addColumn($columns, $bind);
	}
	
	/**
	 * @param string $column
	 * @param string $alias
	 * @return static
	 */
	public function columnAs($column, $alias) 
	{
		return $this->addColumn(["$column as $alias"], false);
	}
	
	/**
	 * @param string $column
	 * @param string $alias
	 * @param array|bool $bind
	 * @return static
	 */
	public function columnAsExp($column, $alias, $bind = false) 
	{
		return $this->addColumn(["$column as $alias"], []);
	}
}<commit_msg>Fix -  variable not passed<commit_after><?php
namespace Squid\MySql\Impl\Traits\CmdTraits;


/**
 * @mixin \Squid\MySql\Command\IWithColumns
 */
trait TWithColumn
{
	/**
	 * @param array $columns
	 * @return static
	 */
	public function column(...$columns)
	{
		return $this->addColumn($columns, false);
	}
	
	/**
	 * @param string|array $columns
	 * @param string|bool $table
	 * @return static
	 */
	public function columns($columns, $table = false)
	{
		if (!is_array($columns)) $columns = [$columns];
		
		if ($table)
		{
			foreach ($columns as &$column) 
			{
				$column = "`$table`.`$column`";
			}
		}
		
		return $this->addColumn($columns, false);
	}
	
	/**
	 * @param string|array $columns
	 * @param bool|array $bind
	 * @return static
	 */
	public function columnsExp($columns, $bind = false) 
	{
		if (!is_array($columns)) $columns = [$columns];
		
		return $this->addColumn($columns, $bind);
	}
	
	/**
	 * @param string $column
	 * @param string $alias
	 * @return static
	 */
	public function columnAs($column, $alias) 
	{
		return $this->addColumn(["$column as $alias"], false);
	}
	
	/**
	 * @param string $column
	 * @param string $alias
	 * @param array|bool $bind
	 * @return static
	 */
	public function columnAsExp($column, $alias, $bind = false) 
	{
		return $this->addColumn(["$column as $alias"], $bind);
	}
}
{'fraction_non_alphanumeric': 0.17624223602484473, 'fraction_numerical': 0.0, 'mean_word_length': 3.4278350515463916, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6341231', 'n_tokens_mistral': 966, 'n_tokens_neox': 843, 'n_words': 208}