<commit_before><commit_msg>Added a helper package, and added a helper class to assist with editing tables.<commit_after>/*
 */
package org.apache.log4j.chainsaw.helper;

import javax.swing.DefaultCellEditor;
import javax.swing.JComboBox;
import javax.swing.table.TableCellEditor;

import org.apache.log4j.Level;

/**
 * @author <NAME> <<EMAIL>>
 *
 */
public class TableCellEditorFactory
{

  
  /**
   * Creates a TableCellEditor to be used for editing boolean values
   * @return TableCellEditor
   */ 
  public static final TableCellEditor createBooleanTableCellEditor() {
  
    JComboBox comboBox = new JComboBox(new Boolean[] {Boolean.TRUE, Boolean.FALSE});
    return new DefaultCellEditor(comboBox);
    
  }
  
  /**
   * 
   */
  private TableCellEditorFactory()
  {
  }

  /**
   * @return
   */
  public static Object createLevelTableCellEditor()
  {
    JComboBox comboBox = new JComboBox(new Level[] {Level.DEBUG, Level.INFO, Level.WARN, Level.ERROR, Level.FATAL, Level.OFF, Level.ALL});
    return new DefaultCellEditor(comboBox); 
  }

}
{'fraction_non_alphanumeric': 0.1120607787274454, 'fraction_numerical': 0.001899335232668566, 'mean_word_length': 3.705357142857143, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 6, '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': '4333873', 'n_tokens_mistral': 334, 'n_tokens_neox': 323, 'n_words': 79}