<commit_before><?php
/**
 *  Generic abstract class for displaying input fields
 *
 *  Note:  The sanitize callback may be called twice, as per https://core.trac.wordpress.org/ticket/21989
 *
 * @package Plugin
 * @subpackage Forms
 * @since 20170211
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2017, <NAME>
 * @link https://github.com/RichardCoffee/custom-post-type/blob/master/classes/Form/Field/Field.php
 */
abstract class TCC_Form_Field_Field {

	/**
	 *  Variables used as html attributes.
	 */
	/**
	 *  Element class attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $class = '';
	/**
	 *  Element id attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $id = '';
	/**
	 *  Element name attribute, will be used for the element ID if the ID property is empty.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $name = '';
	/**
	 *  Element onchange attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $onchange = null;
	/**
	 *  Element placeholder attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $placeholder = '';
	/**
	 *  Indicates the tabindex attribute.
	 *
	 * @since 20190726
	 * @var integer
	 */
	protected $tabindex = 0;
	/**
	 *  Element tag.
	 *
	 * @since 20190726
	 * @var string
	 */
	protected $tag = 'input';
	/**
	 *  Element title attribute.
	 *
	 * @since 20170308
	 * @var string
	 */
	protected $title = '';
	/**
	 *  Element type attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $type = 'text';
	/**
	 *  Element value attribute.
	 *
	 * @since 20170211
	 * @var string|mixed
	 */
	protected $value = '';
	/**
	 *  Internal class properties not associated with html attributes.
	 */
	/**
	 *  Flag to indicate that bootstrap css classes are to be used.
	 *
	 * @since 20180413
	 * @var bool
	 */
	protected $bootstrap = true;
	/**
	 *  Value to be used as the default for the element.
	 *
	 * @since 20170211
	 * @var string|mixed
	 */
	protected $default = '';
	/**
	 *  Text used for the element label.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $description = '';
	/**
	 *  CSS classes for the element label.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $label_css = '';
	/**
	 *  Indicates this is a required field on the form.
	 *
	 * @since 20190726
	 * @var bool
	 */
	protected $required = false;
	/**
	 *  Default sanitization method.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $sanitize = 'esc_html';
	/**
	 *  Whether or not to show the element label.
	 *
	 * @since 20180413
	 * @var boolean
	 */
	protected $see_label = true;
	/**
	 *  Default date format to be used for date fields.  This doe not belong here!
	 *
	 * @since 20180413
	 * @var string
	 */
	protected static $date_format = 'm/d/y';

	/**
	 *  Trait that provides functions to build the html for the element.
	 *
	 * @since 20180314
	 */
	use TCC_Trait_Attributes;
	/**
	 *  Trait that provides public read access to protected/private properties.
	 *
	 * @since 20170317
	 */
	use TCC_Trait_Magic;<commit_msg>change sanitize default value<commit_after><?php
/**
 *  Generic abstract class for displaying input fields
 *
 *  Note:  The sanitize callback may be called twice, as per https://core.trac.wordpress.org/ticket/21989
 *
 * @package Plugin
 * @subpackage Forms
 * @since 20170211
 * @author <NAME> <<EMAIL>>
 * @copyright Copyright (c) 2017, <NAME>
 * @link https://github.com/RichardCoffee/custom-post-type/blob/master/classes/Form/Field/Field.php
 */
abstract class TCC_Form_Field_Field {

	/**
	 *  Variables used as html attributes.
	 */
	/**
	 *  Element class attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $class = '';
	/**
	 *  Element id attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $id = '';
	/**
	 *  Element name attribute, will be used for the element ID if the ID property is empty.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $name = '';
	/**
	 *  Element onchange attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $onchange = null;
	/**
	 *  Element placeholder attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $placeholder = '';
	/**
	 *  Indicates the tabindex attribute.
	 *
	 * @since 20190726
	 * @var integer
	 */
	protected $tabindex = 0;
	/**
	 *  Element tag.
	 *
	 * @since 20190726
	 * @var string
	 */
	protected $tag = 'input';
	/**
	 *  Element title attribute.
	 *
	 * @since 20170308
	 * @var string
	 */
	protected $title = '';
	/**
	 *  Element type attribute.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $type = 'text';
	/**
	 *  Element value attribute.
	 *
	 * @since 20170211
	 * @var string|mixed
	 */
	protected $value = '';
	/**
	 *  Internal class properties not associated with html attributes.
	 */
	/**
	 *  Flag to indicate that bootstrap css classes are to be used.
	 *
	 * @since 20180413
	 * @var bool
	 */
	protected $bootstrap = true;
	/**
	 *  Value to be used as the default for the element.
	 *
	 * @since 20170211
	 * @var string|mixed
	 */
	protected $default = '';
	/**
	 *  Text used for the element label.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $description = '';
	/**
	 *  CSS classes for the element label.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $label_css = '';
	/**
	 *  Indicates this is a required field on the form.
	 *
	 * @since 20190726
	 * @var bool
	 */
	protected $required = false;
	/**
	 *  Default sanitization method.
	 *
	 * @since 20170211
	 * @var string
	 */
	protected $sanitize = 'sanitize_text_field';
	/**
	 *  Whether or not to show the element label.
	 *
	 * @since 20180413
	 * @var boolean
	 */
	protected $see_label = true;
	/**
	 *  Default date format to be used for date fields.  This doe not belong here!
	 *
	 * @since 20180413
	 * @var string
	 */
	protected static $date_format = 'm/d/y';

	/**
	 *  Trait that provides functions to build the html for the element.
	 *
	 * @since 20180314
	 */
	use TCC_Trait_Attributes;
	/**
	 *  Trait that provides public read access to protected/private properties.
	 *
	 * @since 20170317
	 */
	use TCC_Trait_Magic;
{'fraction_non_alphanumeric': 0.13096595536732367, 'fraction_numerical': 0.05798990063528262, 'mean_word_length': 2.6160188457008244, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '4795307', 'n_tokens_mistral': 2412, 'n_tokens_neox': 1913, 'n_words': 616}