<commit_before><?php
/**
 * CJuiButton class file.
 *
 * @author <NAME> <<EMAIL>>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

Yii::import('zii.widgets.jui.CJuiInputWidget');

/**
 * CJuiButton displays a button widget.
 *
 * CJuiButton encapsulates the {@link http://jqueryui.com/button/ JUI Button}
 * plugin.
 *
 * To use this widget as a submit button, you may insert the following code in a view:
 * <pre>
 * $this->widget('zii.widgets.jui.CJuiButton',array(
 *     'name'=>'submit',
 *     'caption'=>'Save',
 *     'options'=>array(
 *         'onclick'=>new CJavaScriptExpression('function(){alert("Yes");}'),
 *     ),
 * ));
 * </pre>
 *
 * To use this widget as a button, you may insert the following code in a view:
 * <pre>
 * $this->widget('zii.widgets.jui.CJuiButton',array(
 *     'name'=>'button',
 *     'caption'=>'Save',
 *     'value'=>'asd',
 *     'onclick'=>new CJavaScriptExpression('function(){alert("Save button clicked"); this.blur(); return false;}'),
 * ));
 * </pre>
 *
 * By configuring the {@link options} property, you may specify the options
 * that need to be passed to the JUI button plugin. Please refer to
 * the {@link http://api.jqueryui.com/button/ JUI Button API} documentation
 * for possible options (name-value pairs) and
 * {@link http://jqueryui.com/button/ JUI Button page} for general description
 * and demo.
 *
 * @author <NAME> <<EMAIL>>
 * @package zii.widgets.jui
 * @since 1.1.3
 */
class CJuiButton extends CJuiInputWidget
{
	/**
	 * @var string The button type (possible types: submit, button, link, radio, checkbox, buttonset).
	 * "submit" is used as default.
	 */
	public $buttonType='submit';
	/**
	 * @var string The default html tag for the buttonset
	 */<commit_msg>Updated CJuiButton sample, to reflect correct parameters [ci skip]<commit_after><?php
/**
 * CJuiButton class file.
 *
 * @author <NAME> <<EMAIL>>
 * @link http://www.yiiframework.com/
 * @copyright 2008-2013 Yii Software LLC
 * @license http://www.yiiframework.com/license/
 */

Yii::import('zii.widgets.jui.CJuiInputWidget');

/**
 * CJuiButton displays a button widget.
 *
 * CJuiButton encapsulates the {@link http://jqueryui.com/button/ JUI Button}
 * plugin.
 *
 * To use this widget as a submit button, you may insert the following code in a view:
 * <pre>
 * $this->widget('zii.widgets.jui.CJuiButton',array(
 *     'buttonType'=>'submit',
 *     'name'=>'btnSubmit',
 *     'value'=>'1',
 *     'caption'=>'Submit form',
 *     'htmlOptions'=>array('class'=>'ui-button-primary')
 *     ),
 * ));
 * </pre>
 *
 * To use this widget as a button, you may insert the following code in a view:
 * <pre>
 * $this->widget('zii.widgets.jui.CJuiButton',array(
 *     'buttonType'=>'button',
 *     'name'=>'btnSave',
 *     'caption'=>'Save',
 *     'onclick'=>new CJavaScriptExpression('function(){alert("Save button clicked"); this.blur(); return false;}'),
 * ));
 * </pre>
 *
 * By configuring the {@link options} property, you may specify the options
 * that need to be passed to the JUI button plugin. Please refer to
 * the {@link http://api.jqueryui.com/button/ JUI Button API} documentation
 * for possible options (name-value pairs) and
 * {@link http://jqueryui.com/button/ JUI Button page} for general description
 * and demo.
 *
 * @author <NAME> <<EMAIL>>
 * @package zii.widgets.jui
 * @since 1.1.3
 */
class CJuiButton extends CJuiInputWidget
{
	/**
	 * @var string The button type (possible types: submit, button, link, radio, checkbox, buttonset).
	 * "submit" is used as default.
	 */
	public $buttonType='submit';
	/**
	 * @var string The default html tag for the buttonset
	 */
{'fraction_non_alphanumeric': 0.16491794457896153, 'fraction_numerical': 0.006187785848802798, 'mean_word_length': 3.706329113924051, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 45, 'https://': 0, 'lorem ipsum': 0, 'www.': 4, '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': '2259257', 'n_tokens_mistral': 1216, 'n_tokens_neox': 1179, 'n_words': 351}