<commit_before><?php

class FormKitTest extends PHPUnit_Framework_TestCase
{
    function testTextInput()
    {
        $widget = FormKit\FormKit::text('name');
        $widget->label( 'Name' );
        $html = $widget->render();
        is( '<input type="text" name="name" value="" />', $html );
    }

    function testCheckbox()
    {
        $widget = FormKit\FormKit::checkbox('confirmed');
        $widget->label('Confirmed');
        $html = $widget->render();
        // is( '<input type="checkbox" name="name" value="" />', $html );
    }


    function testOutput()
    {
		$html = '';

		// generate forms
		$widget = FormKit\FormKit::text( 'username' );
		$html .= $widget->render();

		$widget = FormKit\FormKit::checkbox( 'confirmed' );
		$html .= $widget->render();

		$widget = FormKit\FormKit::select( 'country' );
        // $widget->choices(array(  ));
		$html .= $widget->render();

		file_put_contents( 'tests/index.html', $html );
    }

}<commit_msg>Fix test<commit_after><?php

class FormKitTest extends PHPUnit_Framework_TestCase
{
    function testTextInput()
    {
        $widget = FormKit\FormKit::text('name');
        $widget->label( 'Name' );
        $html = $widget->render();
        is( '<input class="formkit-widget formkit-text" type="text" name="name"/>', $html );
    }

    function testCheckbox()
    {
        $widget = FormKit\FormKit::checkbox('confirmed');
        $widget->label('Confirmed');
        $html = $widget->render();
        // is( '<input type="checkbox" name="name" value="" />', $html );
    }


    function testOutput()
    {
		$html = '';

		// generate forms
		$widget = FormKit\FormKit::text( 'username' );
		$html .= $widget->render();

		$widget = FormKit\FormKit::checkbox( 'confirmed' );
		$html .= $widget->render();

		$widget = FormKit\FormKit::select( 'country' );
        // $widget->choices(array(  ));
		$html .= $widget->render();

		file_put_contents( 'tests/index.html', $html );
    }

}
{'fraction_non_alphanumeric': 0.19827147941026946, 'fraction_numerical': 0.0, 'mean_word_length': 2.9047619047619047, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 23, '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': '5604123', 'n_tokens_mistral': 650, 'n_tokens_neox': 614, 'n_words': 114}