<commit_before><?php
/**
 * TbHtml class file.
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright &copy; <NAME> 2013-
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
 */

/**
 * Bootstrap HTML helper.
 */
class TbHtml extends CHtml
{
	// Element styles.
	const STYLE_PRIMARY         = 'primary';
	const STYLE_INFO            = 'info';
	const STYLE_SUCCESS         = 'success';
	const STYLE_WARNING         = 'warning';
	const STYLE_ERROR           = 'error';
	const STYLE_DANGER          = 'danger';
	const STYLE_IMPORTANT       = 'important';
	const STYLE_INVERSE         = 'inverse';
	const STYLE_LINK            = 'link';

	// Element sizes.
	const SIZE_MINI             = 'mini';
	const SIZE_SMALL            = 'small';
	const SIZE_LARGE            = 'large';

	// Navigation menu types.
	const NAV_TABS              = 'tabs';
	const NAV_PILLS             = 'pills';
	const NAV_LIST              = 'list';

	// Fixed types.
	const FIXED_TOP             = 'top';
	const FIXED_BOTTOM          = 'bottom';

	// Addon types.
	const ADDON_PREPEND         = 'prepend';
	const ADDON_APPEND          = 'append';

	const PROGRESS_STRIPED      = 'striped';
	const PROGRESS_ACTIVE       = 'active';

	// Default close text.
	const CLOSE_TEXT            = '&times;';

	// Scope constants.
	static $buttonStyles        = array(
									self::STYLE_PRIMARY, self::STYLE_INFO, self::STYLE_SUCCESS, self::STYLE_WARNING,
									self::STYLE_DANGER, self::STYLE_INVERSE, self::STYLE_LINK,
								);
	static $buttonSizes         = array(self::SIZE_LARGE, self::SIZE_SMALL, self::SIZE_MINI);
	static $labelBadgeStyles    = array(self::STYLE_SUCCESS, self::STYLE_WARNING, self::STYLE_IMPORTANT,
									self::STYLE_INFO, self::STYLE_INVERSE,
								);
	static $alertStyles         = array(self::STYLE_SUCCESS, self::STYLE_INFO, self::STYLE_WARNING, self::STYLE_ERROR);
	static $navbarStyles        = array(self::STYLE_INVERSE);
	static $navbarFixes         = array(self::FIXED_TOP, self::FIXED_BOTTOM);
	static $progressStyles   = array(self::STYLE_INFO, self::STYLE_SUCCESS, self::STYLE_WARNING, self::STYLE_DANGER);
	static $inputAddons         = array(self::ADDON_PREPEND, self::ADDON_APPEND);
	static $navStyles           = array(self::NAV_TABS, self::NAV_PILLS, self::NAV_LIST);
	static $wellSizes           = array(self::SIZE_LARGE, self::SIZE_SMALL, self::SIZE_MINI);

	/**
	 * Generates a button.
	 * @param string $label the button label text.
	 * @param array $htmlOptions additional HTML attributes.
	 * @return string the generated button.
	 * @see http://twitter.github.com/bootstrap/base-css.html#buttons
	 */
	public static function button($label, $htmlOptions = array())
	{
		return self::btn('button', $label, $htmlOptions);
	}

	/**
	 * Generates a link button.
	 * @param string $label the button label text.
	 * @param array $htmlOptions the HTML attributes for the button.
	 * @return string the generated button.<commit_msg>Fix indentation issue in the HTML helper<commit_after><?php
/**
 * TbHtml class file.
 * @author <NAME> <<EMAIL>>
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright &copy; <NAME> 2013-
 * @license http://www.opensource.org/licenses/bsd-license.php New BSD License
 */

/**
 * Bootstrap HTML helper.
 */
class TbHtml extends CHtml
{
	// Element styles.
	const STYLE_PRIMARY			= 'primary';
	const STYLE_INFO			= 'info';
	const STYLE_SUCCESS			= 'success';
	const STYLE_WARNING			= 'warning';
	const STYLE_ERROR			= 'error';
	const STYLE_DANGER			= 'danger';
	const STYLE_IMPORTANT		= 'important';
	const STYLE_INVERSE			= 'inverse';
	const STYLE_LINK			= 'link';
  
	// Element sizes.  
	const SIZE_MINI				= 'mini';
	const SIZE_SMALL			= 'small';
	const SIZE_LARGE			= 'large';
  
	// Navigation menu types.  
	const NAV_TABS				= 'tabs';
	const NAV_PILLS				= 'pills';
	const NAV_LIST				= 'list';
  
	// Fixed types.  
	const FIXED_TOP				= 'top';
	const FIXED_BOTTOM			= 'bottom';
  
	// Addon types.  
	const ADDON_PREPEND			= 'prepend';
	const ADDON_APPEND			= 'append';
  
	const PROGRESS_STRIPED		= 'striped';
	const PROGRESS_ACTIVE		= 'active';
  
	// Default close text.  
	const CLOSE_TEXT			= '&times;';
  
	// Scope constants.  
	static $buttonStyles		= array(
									self::STYLE_PRIMARY, self::STYLE_INFO, self::STYLE_SUCCESS, self::STYLE_WARNING,
									self::STYLE_DANGER, self::STYLE_INVERSE, self::STYLE_LINK,
								);
	static $buttonSizes			= array(self::SIZE_LARGE, self::SIZE_SMALL, self::SIZE_MINI);
	static $labelBadgeStyles	= array(self::STYLE_SUCCESS, self::STYLE_WARNING, self::STYLE_IMPORTANT,
									self::STYLE_INFO, self::STYLE_INVERSE,
								);
	static $alertStyles			= array(self::STYLE_SUCCESS, self::STYLE_INFO, self::STYLE_WARNING, self::STYLE_ERROR);
	static $navbarStyles		= array(self::STYLE_INVERSE);
	static $navbarFixes			= array(self::FIXED_TOP, self::FIXED_BOTTOM);
	static $progressStyles		= array(self::STYLE_INFO, self::STYLE_SUCCESS, self::STYLE_WARNING, self::STYLE_DANGER);
	static $inputAddons			= array(self::ADDON_PREPEND, self::ADDON_APPEND);
	static $navStyles			= array(self::NAV_TABS, self::NAV_PILLS, self::NAV_LIST);
	static $wellSizes			= array(self::SIZE_LARGE, self::SIZE_SMALL, self::SIZE_MINI);

	/**
	 * Generates a button.
	 * @param string $label the button label text.
	 * @param array $htmlOptions additional HTML attributes.
	 * @return string the generated button.
	 * @see http://twitter.github.com/bootstrap/base-css.html#buttons
	 */
	public static function button($label, $htmlOptions = array())
	{
		return self::btn('button', $label, $htmlOptions);
	}

	/**
	 * Generates a link button.
	 * @param string $label the button label text.
	 * @param array $htmlOptions the HTML attributes for the button.
	 * @return string the generated button.
{'fraction_non_alphanumeric': 0.12920962199312716, 'fraction_numerical': 0.0013745704467353953, 'mean_word_length': 3.4232522796352582, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '3260857', 'n_tokens_mistral': 2217, 'n_tokens_neox': 1993, 'n_words': 449}