<commit_before>/**
 * @class GelatoView
 * @extends {Backbone.View}
 */
var GelatoView = Backbone.View.extend({
    /**
     * @property $view
     * @type {jQuery}
     */
    $view: null,
    /**
     * @property template
     * @type {Function}
     */
    template: null,
    /**
     * @method getHeight
     * @returns {Number}
     */
    getHeight: function() {
        return this.$view.height();
    },
    /**
     * @method getWidth
     * @returns {Number}
     */
    getWidth: function() {
        return this.$view.width();
    },<commit_msg>Add builtin disable and enable form functions to the view.<commit_after>/**
 * @class GelatoView
 * @extends {Backbone.View}
 */
var GelatoView = Backbone.View.extend({
    /**
     * @property $view
     * @type {jQuery}
     */
    $view: null,
    /**
     * @property template
     * @type {Function}
     */
    template: null,
    /**
     * @param {String} [selector]
     * @returns {GelatoView}
     */
    disableForm: function(selector) {
        this.$((selector ? selector + ' ' : '') + ':input').prop('disabled', true);
        return this;
    },
    /**
     * @param {String} [selector]
     * @returns {GelatoView}
     */
    enableForm: function(selector) {
        this.$((selector ? selector + ' ' : '') + ':input').prop('disabled', false);
        return this;
    },
    /**
     * @method getHeight
     * @returns {Number}
     */
    getHeight: function() {
        return this.$view.height();
    },
    /**
     * @method getWidth
     * @returns {Number}
     */
    getWidth: function() {
        return this.$view.width();
    },
{'fraction_non_alphanumeric': 0.17356392835083384, 'fraction_numerical': 0.0, 'mean_word_length': 1.9616087751371116, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1014051', 'n_tokens_mistral': 507, 'n_tokens_neox': 504, 'n_words': 107}