<commit_before>geo.gui.divWidget = function (arg) {
  'use strict';
  if (!(this instanceof geo.gui.divWidget)) {
    return new geo.gui.divWidget(arg);
  }

  geo.gui.widget.call(this, arg);

  var m_this = this;

  this.$el = $('<div></div>');

  this._init = function (arg) {
    m_this.args = arg;

    if (arg.hasOwnProperty('parent') && arg.parent instanceof geo.gui.widget) {
      arg.parent.addChild(m_this);
    }

    m_this.$el.appendTo(m_this.parentCanvas());
    if (arg.hasOwnProperty('attrs')) {
      m_this.$el.attr(arg.attrs);
    }

    this.positionMaybe();
  };

  return this;
};

inherit(geo.gui.divWidget, geo.gui.widget);
<commit_msg>Stop divWidget from propagating events on mousedown<commit_after>geo.gui.divWidget = function (arg) {
  'use strict';
  if (!(this instanceof geo.gui.divWidget)) {
    return new geo.gui.divWidget(arg);
  }

  geo.gui.widget.call(this, arg);

  var m_this = this;

  this.$el = $('<div></div>');

  this._init = function (arg) {
    m_this.args = arg;

    if (arg.hasOwnProperty('parent') && arg.parent instanceof geo.gui.widget) {
      arg.parent.addChild(m_this);
    }

    m_this.$el.appendTo(m_this.parentCanvas());
    if (arg.hasOwnProperty('attrs')) {
      m_this.$el.attr(arg.attrs);
    }

    this.positionMaybe();

    m_this.$el.on('mousedown', function (e) {
      e.stopPropagation();
    });
  };

  return this;
};

inherit(geo.gui.divWidget, geo.gui.widget);

{'fraction_non_alphanumeric': 0.17569444444444443, 'fraction_numerical': 0.0, 'mean_word_length': 3.1768115942028987, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6772644', 'n_tokens_mistral': 538, 'n_tokens_neox': 512, 'n_words': 88}