<commit_before>// ==========================================================================
// Project:   SproutCore Handlebar Views
// Copyright: ©2011 Strobe Inc. and contributors.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

var get = SC.get, set = SC.set;

SC.Button = SC.View.extend({
  classNames: ['sc-button'],
  classNameBindings: ['isActive'],

  tagName: 'button',
  type: 'button',
  
  renderBuffer: function(tagName) {
    return SC.RenderBuffer(tagName).attr('type', get(this, 'type'));
  },
  
  targetObject: function() {
    var target = get(this, 'target');

    if (SC.typeOf(target) === "string") {
      return SC.getPath(target);<commit_msg>Use attributeBindings instead of renderBuffer.<commit_after>// ==========================================================================
// Project:   SproutCore Handlebar Views
// Copyright: ©2011 Strobe Inc. and contributors.
// License:   Licensed under MIT license (see license.js)
// ==========================================================================

var get = SC.get, set = SC.set;

SC.Button = SC.View.extend({
  classNames: ['sc-button'],
  classNameBindings: ['isActive'],

  tagName: 'button',
  attributeBindings: ['type'],
  type: 'button',
  
  targetObject: function() {
    var target = get(this, 'target');

    if (SC.typeOf(target) === "string") {
      return SC.getPath(target);
{'fraction_non_alphanumeric': 0.331740614334471, 'fraction_numerical': 0.005460750853242321, 'mean_word_length': 4.749019607843137, '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': '6197948', 'n_tokens_mistral': 415, 'n_tokens_neox': 384, 'n_words': 99}