<commit_before>export default Ember.Mixin.create({

  _watchProps: function() {
    var args = this.get('rerenderTriggers');
    if (!Ember.isNone(args)) {
      var self = this;
      args.forEach(function(k) {
        self.addObserver(k, self.rerenderString);
      });
    }
  }.on('init'),

  render: function(buffer) {
    this.renderString(buffer);
  },

  _rerenderString: function() {
    var buffer = [];
    this.renderString(buffer);
    this.$().html(buffer.join(''));
  },

  rerenderString: function() {
    Ember.run.once(this, '_rerenderString');
  }

});
<commit_msg>FEATURE: default string buffer will use a raw template<commit_after>export default Ember.Mixin.create({

  _watchProps: function() {
    var args = this.get('rerenderTriggers');
    if (!Ember.isNone(args)) {
      var self = this;
      args.forEach(function(k) {
        self.addObserver(k, self.rerenderString);
      });
    }
  }.on('init'),

  render: function(buffer) {
    this.renderString(buffer);
  },

  renderString: function(buffer){
    var template = Discourse.__container__.lookup('template:' + this.rawTemplate);
    if (template) {
      buffer.push(template(this));
    }
  },

  _rerenderString: function() {
    var buffer = [];
    this.renderString(buffer);
    this.$().html(buffer.join(''));
  },

  rerenderString: function() {
    Ember.run.once(this, '_rerenderString');
  }

});

{'fraction_non_alphanumeric': 0.1665470208183776, 'fraction_numerical': 0.0, 'mean_word_length': 3.224242424242424, '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': '6034523', 'n_tokens_mistral': 461, 'n_tokens_neox': 450, 'n_words': 77}