<commit_before>// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@

package example;

import java.awt.*;
import javax.swing.*;

public final class MainPanel extends JPanel {
  private MainPanel() {
    super(new BorderLayout());

    // JPanel p1 = new JPanel();
    // Box p1 = Box.createHorizontalBox();
    JPanel p1 = new JPanel(new GridLayout(1, 0, 2, 2));
    p1.setBorder(BorderFactory.createTitledBorder("GridLayout"));
    p1.add(new JScrollPane(new JTable(6, 3)));
    p1.add(new JScrollPane(new JTree()));
    p1.add(new JScrollPane(new JTextArea("JTextArea")));

    JPanel p2 = new JPanel(new GridBagLayout());
    p2.setBorder(BorderFactory.createTitledBorder("GridBagLayout"));
    GridBagConstraints c = new GridBagConstraints();
    c.insets = new Insets(5, 5, 5, 0);
    c.fill = GridBagConstraints.BOTH;
    c.weightx = 1d;
    c.weighty = 1d;
    // c.gridx = RELATIVE;
    // c.gridx = 0;
    p2.add(new JScrollPane(new JTable(6, 3)), c);
    // c.gridx = 1;
    p2.add(new JScrollPane(new JTree()), c);
    // c.gridx = 2;
    p2.add(new JScrollPane(new JTextArea("JTextArea")), c);

    JButton button = new JButton("rotate");
    button.setFocusable(false);
    button.addActionListener(e -> {
      p1.setComponentZOrder(p1.getComponent(p1.getComponentCount() - 1), 0);
      p2.setComponentZOrder(p2.getComponent(p2.getComponentCount() - 1), 0);<commit_msg>add: ComponentZOrder<commit_after>// -*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
// @homepage@

package example;

import java.awt.*;
import javax.swing.*;

public final class MainPanel extends JPanel {
  private MainPanel() {
    super(new BorderLayout());

    // JPanel p1 = new JPanel();
    // Box p1 = Box.createHorizontalBox();
    JPanel p1 = new JPanel(new GridLayout(1, 0, 2, 2));
    p1.setBorder(BorderFactory.createTitledBorder("GridLayout"));
    p1.add(new JScrollPane(new JTable(6, 3)));
    p1.add(new JScrollPane(new JTree()));
    p1.add(new JScrollPane(new JTextArea("JTextArea")));

    JPanel p2 = new JPanel(new GridBagLayout());
    p2.setBorder(BorderFactory.createTitledBorder("GridBagLayout"));
    GridBagConstraints c = new GridBagConstraints();
    c.insets = new Insets(5, 5, 5, 0);
    c.fill = GridBagConstraints.BOTH;
    c.weightx = 1d;
    c.weighty = 1d;
    // c.gridx = GridBagConstraints.RELATIVE;
    // c.gridx = 0;
    p2.add(new JScrollPane(new JTable(6, 3)), c);
    // c.gridx = 1;
    p2.add(new JScrollPane(new JTree()), c);
    // c.gridx = 2;
    p2.add(new JScrollPane(new JTextArea("JTextArea")), c);

    JButton button = new JButton("rotate");
    button.setFocusable(false);
    button.addActionListener(e -> {
      p1.setComponentZOrder(p1.getComponent(p1.getComponentCount() - 1), 0);
      p2.setComponentZOrder(p2.getComponent(p2.getComponentCount() - 1), 0);
{'fraction_non_alphanumeric': 0.15988779803646563, 'fraction_numerical': 0.028751753155680224, 'mean_word_length': 3.5648, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '4034694', 'n_tokens_mistral': 1058, 'n_tokens_neox': 1014, 'n_words': 206}