<commit_before>define(function (require) {
  'use strict';

  // foreign modules

  var $ = require('jquery');

  // local modules

  var ElementView = require('forms/jqm/element');

  // this module

  return ElementView.extend({
    tagName: 'header',

    // explicitly override super's modelEvents
    modelEvents: {
      'change:text': 'renderHeading',
      'change:smallText': 'renderSmallText',
      'change:class': 'onChangeClass',
      'change:hidden': 'onChangeHidden',
      'change:label': 'renderLabel'
    },

    initialize: function () {
      var element = this.model;

      this.$el.attr('data-name', element.attributes.name);
      this.$el.attr('data-element-type', element.attributes.type);
      this.$el.data('model', element);

      ElementView.prototype.initialize.call(this);
    },<commit_msg>FORMS-247 # Stop Heading Element views from listening to `change:label` events as it makes no sense<commit_after>define(function (require) {
  'use strict';

  // foreign modules

  var $ = require('jquery');

  // local modules

  var ElementView = require('forms/jqm/element');

  // this module

  return ElementView.extend({
    tagName: 'header',

    // explicitly override super's modelEvents
    modelEvents: {
      'change:text': 'renderHeading',
      'change:smallText': 'renderSmallText',
      'change:class': 'onChangeClass',
      'change:hidden': 'onChangeHidden'
    },

    initialize: function () {
      var element = this.model;

      this.$el.attr('data-name', element.attributes.name);
      this.$el.attr('data-element-type', element.attributes.type);
      this.$el.data('model', element);

      ElementView.prototype.initialize.call(this);
    },
{'fraction_non_alphanumeric': 0.1493239271017049, 'fraction_numerical': 0.001763668430335097, 'mean_word_length': 3.2656641604010024, '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': '7460639', 'n_tokens_mistral': 511, 'n_tokens_neox': 484, 'n_words': 104}