<commit_before>
/**
 * view for dropdown show when user click on row options
 */
cdb.admin.RowHeaderDropdown = cdb.admin.DropdownMenu.extend({

  className: 'dropdown border',

  events: {
    'click .delete_row': 'deleteRow',
    'click .add_row': 'addRow'
  },

  setRow: function(row) {
    this.row = row;
  },

  deleteRow: function(e) {
    e.preventDefault();
    this.row.destroy();
    this.hide();
    return false;
  },

  addRow: function(e) {
    e.preventDefault();
    var rowIndex = this.row.collection.indexOf(this.row);
    this.options.tableData.addRow({ at: rowIndex + 1 });
    this.hide();
    return false;
  }

});<commit_msg>code format<commit_after>
/**
 * view for dropdown show when user click on row options
 */
cdb.admin.RowHeaderDropdown = cdb.admin.DropdownMenu.extend({

  className: 'dropdown border',

  events: {
    'click .delete_row': 'deleteRow',
    'click .add_row': 'addRow'
  },

  initialize: function(options) {
    this.tableData = options.tableData;
    this.elder('initialize');
  }

  setRow: function(row) {
    this.row = row;
  },

  deleteRow: function(e) {
    e.preventDefault();
    this.row.destroy();
    this.hide();
    return false;
  },

  addRow: function(e) {
    e.preventDefault();
    var rowIndex = this.row.collection.indexOf(this.row);

    this.tableData.addRow({ at: rowIndex + 1 });
    this.hide();
    return false;
  }

});
{'fraction_non_alphanumeric': 0.15571428571428572, 'fraction_numerical': 0.0014285714285714286, 'mean_word_length': 3.0491329479768785, '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': '4330774', 'n_tokens_mistral': 483, 'n_tokens_neox': 470, 'n_words': 100}