<commit_before><?php

namespace Snap\Node\Form\Input;

class Textarea extends \Snap\Node\Form\Input {

	protected 
		$rows, 
		$cols;
	
	public function __construct( $settings = array() ){
		$settings['tag'] = 'textarea';
		
		parent::__construct( $settings );

		$this->rows = isset($settings['rows']) ? $settings['rows'] : null;
		$this->cols = isset($settings['cols']) ? $settings['cols'] : null;
	}
	
	public static function getSettings(){
		return parent::getSettings() + array(
			'cols' => 'number of columns for the textarea',
			'rows' => 'number of rows for the textarea'<commit_msg>Making it be able to accept base Models<commit_after><?php

namespace Snap\Node\Form\Input;

class Textarea extends \Snap\Node\Form\Input {

	protected 
		$rows, 
		$cols;
	
	protected function parseSettings( $settings = array() ){
		$settings['tag'] = 'textarea';
		
		parent::parseSettings( $settings );

		$this->rows = isset($settings['rows']) ? $settings['rows'] : null;
		$this->cols = isset($settings['cols']) ? $settings['cols'] : null;
	}
	
	public static function getSettings(){
		return parent::getSettings() + array(
			'cols' => 'number of columns for the textarea',
			'rows' => 'number of rows for the textarea'
{'fraction_non_alphanumeric': 0.1657095980311731, 'fraction_numerical': 0.0, 'mean_word_length': 4.446428571428571, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '915270', 'n_tokens_mistral': 416, 'n_tokens_neox': 371, 'n_words': 102}