<commit_before><?php
namespace FormKit\Widget;
use FormKit\Widget\SelectInput;
use FormKit\ResponseUtils;

class DateSelectInput extends TextInput
{
    public $type = 'hidden';
    public $class = array('formkit-widget','formkit-widget-date');

    public function render( $attributes = array() )
    {
        $yearS = new SelectInput(array(
            'options' => range(2000,2012)
        ));
        $yearS->addId( $yearId = $this->getSerialId() );

        $monthS = new SelectInput(array(
            'options' => range(1,12)
        ));
        $monthS->addId( $monthId = $this->getSerialId() );

        $dayS = new SelectInput(array(
            'options' => range(1,31)
        ));<commit_msg>Add Note<commit_after><?php
namespace FormKit\Widget;
use FormKit\Widget\SelectInput;
use FormKit\ResponseUtils;


/**
 * TODO: not implemented
 *
 * DateSelectInput widget with pure Select widget
 *
 *     $selector = new DateSelectInput([
 *         'name' => 'date',
 *         'year_range' => range(2010,2012),
 *         'value' => '2012-12-12',
 *         'format' => 'yy-mm-dd',   // which means yy format in year selector, mm in month selector, dd in day selector.
 *     ]);
 *
 */
class DateSelectInput extends HiddenInput
{

    public function render( $attributes = array() )
    {
        $yearS = new SelectInput(array(
            'options' => range(2000,2012)
        ));
        $yearS->addId( $yearId = $this->getSerialId() );

        $monthS = new SelectInput(array(
            'options' => range(1,12)
        ));
        $monthS->addId( $monthId = $this->getSerialId() );

        $dayS = new SelectInput(array(
            'options' => range(1,31)
        ));
{'fraction_non_alphanumeric': 0.15165876777251186, 'fraction_numerical': 0.026066350710900472, 'mean_word_length': 2.4753086419753085, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '5986611', 'n_tokens_mistral': 547, 'n_tokens_neox': 513, 'n_words': 116}