<commit_before>W.TableSections = function () {
  var win = UI.Win({title:'Table Sections'});
  
  // Create the first TableViewSections.
  var section1 = Ti.UI.createTableViewSection({headerTitle:'Header 1'});
  // Add some rows to this table.
  for (var i = 0; i < 4; i++) {
    section1.add(Ti.UI.createTableViewRow({
      title:'Row ' + i
    }));
  }
  
  // Create the second TableViewSections.
  var section2 = Ti.UI.createTableViewSection({headerTitle:'Header 2'});
  // Add some rows to this table.
  for (var i = 4; i < 20; i++) {
    section2.add(Ti.UI.createTableViewRow({
      title:'Row ' + i
    }));
  }
  
  // Create a normal table view and add the sections as data.
  var table = Ti.UI.createTableView({
    data:[section1,section2]
  });
  
  win.add(table);<commit_msg>Add zebra background color for table section.<commit_after>W.TableSections = function () {
  var win = UI.Win({title:'Table Sections'});
  
  // Create the first TableViewSections.
  var section1 = Ti.UI.createTableViewSection({headerTitle:'Header 1'});
  // Add some rows to this table.
  for (var i = 0; i < 4; i++) {
    section1.add(Ti.UI.createTableViewRow({
      title:'Row ' + i
    }));
  }
  
  // Create the second TableViewSections.
  var section2 = Ti.UI.createTableViewSection({headerTitle:'Header 2'});
  // Add some rows to this table.
  for (var i = 4; i < 20; i++) {
    var backgroundColor = (i % 2 == 0) ? '#FFFFFF' : '#EEEEEE';
    section2.add(Ti.UI.createTableViewRow({
      title:'Row ' + i,
      backgroundColor:backgroundColor
    }));
  }
  
  // Create a normal table view and add the sections as data.
  var table = Ti.UI.createTableView({
    data:[section1,section2]
  });
  
  win.add(table);
{'fraction_non_alphanumeric': 0.14909726266744322, 'fraction_numerical': 0.016307513104251603, 'mean_word_length': 2.9860788863109047, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7131195', 'n_tokens_mistral': 599, 'n_tokens_neox': 575, 'n_words': 153}