<commit_before>/**
 * UI Namespace
 * @name elation.ui
 * @namespace
 */

/** 
 * Base UI element
 *
 * @class base
 * @augments elation.component.base
 * @memberof elation.ui
 *
 * @param {object} args
 * @param {string} args.classname
 * @param {boolean} args.hidden
 */
elation.component.add("ui.base", function() {
  this.renderloopActive = false;
  this.dirty = false;
  this.deferred = true;

  this.init = function() {
    if (this.args.classname) {
      this.addclass(this.args.classname);
    }
  }

  /**
   * Add an HTML class to this component
   * @function addclass
   * @memberof elation.ui.base#
   */
  this.addclass = function(classname) {
    if (!elation.html.hasclass(this.container, classname)) {
      elation.html.addclass(this.container, classname);
    }
  }
  /**
   * Remove an HTML class from this component
   * @function removeclass
   * @memberof elation.ui.base#
   */
  this.removeclass = function(classname) {<commit_msg>Add default div container for ui.base<commit_after>/**
 * UI Namespace
 * @name elation.ui
 * @namespace
 */

/** 
 * Base UI element
 *
 * @class base
 * @augments elation.component.base
 * @memberof elation.ui
 *
 * @param {object} args
 * @param {string} args.classname
 * @param {boolean} args.hidden
 */
elation.component.add("ui.base", function() {
  this.renderloopActive = false;
  this.dirty = false;
  this.deferred = true;
  this.defaultcontainer = { tag: 'div' };

  this.init = function() {
    if (this.args.classname) {
      this.addclass(this.args.classname);
    }
  }

  /**
   * Add an HTML class to this component
   * @function addclass
   * @memberof elation.ui.base#
   */
  this.addclass = function(classname) {
    if (!elation.html.hasclass(this.container, classname)) {
      elation.html.addclass(this.container, classname);
    }
  }
  /**
   * Remove an HTML class from this component
   * @function removeclass
   * @memberof elation.ui.base#
   */
  this.removeclass = function(classname) {
{'fraction_non_alphanumeric': 0.14292929292929293, 'fraction_numerical': 0.0, 'mean_word_length': 3.0594262295081966, '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': '3686234', 'n_tokens_mistral': 668, 'n_tokens_neox': 661, 'n_words': 144}