<commit_before>package example;
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
import java.awt.*;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;

public final class MainPanel extends JPanel {
    private final BindingMapModel model = new BindingMapModel();
    private final JTable table = new JTable(model) {
        private final Color evenColor = new Color(250, 250, 250);
        @Override public Component prepareRenderer(TableCellRenderer tcr, int row, int column) {
            Component c = super.prepareRenderer(tcr, row, column);
            if (isRowSelected(row)) {
                c.setForeground(getSelectionForeground());
                c.setBackground(getSelectionBackground());
            } else {
                c.setForeground(getForeground());
                c.setBackground(row % 2 == 0 ? evenColor : getBackground());
            }
            return c;
        }
    };
    private final JComponent[] clist = {
        new JComboBox<Object>(),
        new JFormattedTextField(),
        // new JFileChooser(),
        new JInternalFrame(),
        new JLabel(),
        new JLayeredPane(),
        new JList<Object>(),
        new JMenuBar(),
        new JOptionPane(),
        new JPanel(),
        new JPopupMenu(),
        new JProgressBar(),
        new JRootPane(),
        new JScrollBar(),
        new JScrollPane(),
        new JSeparator(),
        new JSlider(),
        new JSpinner(),
        new JSplitPane(),
        new JTabbedPane(),
        new JTable(),
        new JTableHeader(),
        new JToolBar(),
        new JToolTip(),
        new JTree(),
        new JEditorPane(),
        new JTextArea(),
        new JTextField()<commit_msg>refactor: add JDesktopPane key binding test<commit_after>package example;
// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@
import java.awt.*;
import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import javax.swing.*;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.JTableHeader;
import javax.swing.table.TableCellRenderer;

public final class MainPanel extends JPanel {
    private final BindingMapModel model = new BindingMapModel();
    private final JTable table = new JTable(model) {
        private final Color evenColor = new Color(250, 250, 250);
        @Override public Component prepareRenderer(TableCellRenderer tcr, int row, int column) {
            Component c = super.prepareRenderer(tcr, row, column);
            if (isRowSelected(row)) {
                c.setForeground(getSelectionForeground());
                c.setBackground(getSelectionBackground());
            } else {
                c.setForeground(getForeground());
                c.setBackground(row % 2 == 0 ? evenColor : getBackground());
            }
            return c;
        }
    };
    private final JComponent[] clist = {
        new JComboBox<Object>(),
        new JDesktopPane(),
        new JFormattedTextField(),
        // new JFileChooser(),
        new JInternalFrame(),
        new JLabel(),
        new JLayeredPane(),
        new JList<Object>(),
        new JMenuBar(),
        new JOptionPane(),
        new JPanel(),
        new JPopupMenu(),
        new JProgressBar(),
        new JRootPane(),
        new JScrollBar(),
        new JScrollPane(),
        new JSeparator(),
        new JSlider(),
        new JSpinner(),
        new JSplitPane(),
        new JTabbedPane(),
        new JTable(),
        new JTableHeader(),
        new JToolBar(),
        new JToolTip(),
        new JTree(),
        new JEditorPane(),
        new JTextArea(),
        new JTextField()
{'fraction_non_alphanumeric': 0.11382536382536383, 'fraction_numerical': 0.006756756756756757, 'mean_word_length': 2.234453781512605, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '4811884', 'n_tokens_mistral': 1069, 'n_tokens_neox': 1040, 'n_words': 278}