<commit_before>define(["dojo/_base/declare", "./PpwCodeObject", "dojo/Stateful", "ppwcode/contracts/_Mixin"],
    function(declare, PpwCodeObject, Stateful, _ContractMixin) {

      /*
         NOTE!:
         Stateful has an annoying feature, is postscript (executed as the
         last step in construction): all properties of the kwargs of the
         constructor are copied to the prototype. We don't want this.
       */
      var statefulPrototype = Stateful.prototype;
      delete statefulPrototype.postscript;

      return declare("be.ppwcode.vernacular.semantics.SemanticObject", [PpwCodeObject, Stateful, _ContractMixin], {

        _c_invar: [
          // TODO nothing here yet
        ],

        constructor: function(/*Object*/ props) {
          this._c_NOP(props);
        },

        set: function(/*String*/name, /*Object*/value) {
          // summary:
          //   Overwrite Stateful method, so that new values that are `==` do nothing
          var oldValue = this.get(name);
          if (value != oldValue) {
            return this.inherited(arguments);
          }
          return this; // return be.ppwcode.vernacular.semantics.SemanticObject
        },

        _extendJsonObject: function(/*Object*/ json) {
          this._c_NOP(json);
        },

        _stateToString: function(/*Array of String*/ toStrings) {
          this._c_NOP(toStrings);
        }

      });
    }
);<commit_msg>tests found a problem; fixed (also overwrite _changeAttrValue to do NOP if same value)<commit_after>define(["dojo/_base/declare", "./PpwCodeObject", "dojo/Stateful", "ppwcode/contracts/_Mixin"],
    function(declare, PpwCodeObject, Stateful, _ContractMixin) {

      /*
         NOTE!:
         Stateful has an annoying feature, is postscript (executed as the
         last step in construction): all properties of the kwargs of the
         constructor are copied to the prototype. We don't want this.
       */
      var statefulPrototype = Stateful.prototype;
      delete statefulPrototype.postscript;

      return declare("be.ppwcode.vernacular.semantics.SemanticObject", [PpwCodeObject, Stateful, _ContractMixin], {

        _c_invar: [
          // TODO nothing here yet
        ],

        constructor: function(/*Object*/ props) {
          this._c_NOP(props);
        },

        set: function(/*String*/name, /*Object*/value) {
          // summary:
          //   Overwrite Stateful method, so that new values that are `==` do nothing
          var oldValue = this.get(name);
          if (value != oldValue) {
            return this.inherited(arguments);
          }
          return this; // return be.ppwcode.vernacular.semantics.SemanticObject
        },

        _changeAttrValue: function(name, value){
          // summary:
          //   Overwrite Stateful method, so that new values that are `==` do nothing
          var oldValue = this.get(name);
          if (value != oldValue) {
            return this.inherited(arguments);
          }
          return this; // return be.ppwcode.vernacular.semantics.SemanticObject
        },

        _extendJsonObject: function(/*Object*/ json) {
          this._c_NOP(json);
        },

        _stateToString: function(/*Array of String*/ toStrings) {
          this._c_NOP(toStrings);
        }

      });
    }
);
{'fraction_non_alphanumeric': 0.11124546553808948, 'fraction_numerical': 0.0, 'mean_word_length': 2.148430066603235, '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': '679694', 'n_tokens_mistral': 931, 'n_tokens_neox': 912, 'n_words': 232}