<commit_before>var Lang = A.Lang,

    _DOCUMENT = A.one(A.config.doc),
    _NAME = 'btn-search-cancel',

    BODY = 'body',
    CLICK = 'click',
    CONTAINER = 'container',
    FOCUS = 'focus',
    GUTTER = 'gutter',
    ICON_CLASS = 'iconClass',
    INPUT = 'input',
    REGION = 'region',
    REMOVE = 'remove',
    TRIGGER = 'trigger',
    Z_INDEX = 'zIndex';

/**
 *
 * A base class for ButtonSearchCancel, providing:
 * <ul>
 *    <li>Adds a button search cancel icon in order to clear the text on inputs
 *    and textareas. Similar behavior of the HTML5 search input that contains a
 *    cancel button to clear the current element value.</li>
 * </ul>
 *
 * @class A.ButtonSearchCancel
 * @extends A.Base
 * @param config {Object} Object literal specifying widget configuration properties.
 * @constructor
 */
var ButtonSearchCancel = A.Base.create(_NAME, A.Base, [],
    {
        /**
         * HTML template used on the button search cancel.
         *
         * @property TEMPLATE
         * @type String
         * @default '<i class="btn-search-cancel icon-remove" />'
         * @protected
         */
        TEMPLATE: '<i class="' + A.getClassName(_NAME) + ' {iconClass}" style="position: absolute; margin: 5px; z-index: {zIndex};"></i>',

        /**
         * Array that holds the created buttons for each element match from
         * the trigger selector.
         *
         * @property _buttons
         * @type Array
         * @protected
         */
        _buttons: null,

        /**
         * Array that holds the event handles for any bind event from the
         * internal implementation.
         *
         * @property _eventHandles
         * @type Array
         * @protected
         */
        _eventHandles: null,

        /**
         * Construction logic executed during CharCounter instantiation.
         * Lifecycle.
         *
         * @method initializer
         */
        initializer: function() {
            var instance = this;
<commit_msg>Use padding since margin is not a clickable area<commit_after>var Lang = A.Lang,

    _DOCUMENT = A.one(A.config.doc),
    _NAME = 'btn-search-cancel',

    BODY = 'body',
    CLICK = 'click',
    CONTAINER = 'container',
    FOCUS = 'focus',
    GUTTER = 'gutter',
    ICON_CLASS = 'iconClass',
    INPUT = 'input',
    REGION = 'region',
    REMOVE = 'remove',
    TRIGGER = 'trigger',
    Z_INDEX = 'zIndex';

/**
 *
 * A base class for ButtonSearchCancel, providing:
 * <ul>
 *    <li>Adds a button search cancel icon in order to clear the text on inputs
 *    and textareas. Similar behavior of the HTML5 search input that contains a
 *    cancel button to clear the current element value.</li>
 * </ul>
 *
 * @class A.ButtonSearchCancel
 * @extends A.Base
 * @param config {Object} Object literal specifying widget configuration properties.
 * @constructor
 */
var ButtonSearchCancel = A.Base.create(_NAME, A.Base, [],
    {
        /**
         * HTML template used on the button search cancel.
         *
         * @property TEMPLATE
         * @type String
         * @default '<i class="btn-search-cancel icon-remove" />'
         * @protected
         */
        TEMPLATE: '<div class="' + A.getClassName(_NAME) + '" style="padding: 5px; position: absolute; z-index: {zIndex};">' +
                    '<i class="{iconClass}"></i>' +
                  '</div>',

        /**
         * Array that holds the created buttons for each element match from
         * the trigger selector.
         *
         * @property _buttons
         * @type Array
         * @protected
         */
        _buttons: null,

        /**
         * Array that holds the event handles for any bind event from the
         * internal implementation.
         *
         * @property _eventHandles
         * @type Array
         * @protected
         */
        _eventHandles: null,

        /**
         * Construction logic executed during CharCounter instantiation.
         * Lifecycle.
         *
         * @method initializer
         */
        initializer: function() {
            var instance = this;

{'fraction_non_alphanumeric': 0.11363082175079249, 'fraction_numerical': 0.000975371860521824, 'mean_word_length': 1.9383954154727794, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '3861573', 'n_tokens_mistral': 1163, 'n_tokens_neox': 1133, 'n_words': 356}