<commit_before>package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

public final class MainPanel extends JPanel {
    private MainPanel() {
        super(new BorderLayout());
        JButton button0 = new JButton("ToolTip") {
            public JToolTip createToolTip() {
                JToolTip tip = new JToolTip();
                Border b1 = tip.getBorder();
                Border b2 = BorderFactory.createTitledBorder("ToolTip");
                tip.setBorder(BorderFactory.createCompoundBorder(b1, b2));
                tip.setComponent(this);
                return tip;
            }
        };
        button0.setToolTipText("Test - ToolTipText0");

        JButton button1 = new JButton("ToolTip") {
            public JToolTip createToolTip() {
                JToolTip tip = new JToolTip();
                Border b1 = tip.getBorder();
                Border b2 = BorderFactory.createMatteBorder(0, 10, 0, 0, Color.GREEN);
                tip.setBorder(BorderFactory.createCompoundBorder(b1, b2));
                tip.setComponent(this);
                return tip;
            }
        };
        button1.setToolTipText("Test - ToolTipText1");

        JPanel p = new JPanel(new BorderLayout(5, 5));
        p.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        p.add(makePanel("TitleBorder", button0), BorderLayout.NORTH);
        p.add(makePanel("MatteBorder", button1), BorderLayout.SOUTH);
        add(p, BorderLayout.NORTH);
        setPreferredSize(new Dimension(320, 180));
    }
    private static JPanel makePanel(String title, JComponent c) {<commit_msg>chore: @Override<commit_after>package example;
//-*- mode:java; encoding:utf-8 -*-
// vim:set fileencoding=utf-8:
//@homepage@
import java.awt.*;
import javax.swing.*;
import javax.swing.border.*;

public final class MainPanel extends JPanel {
    private MainPanel() {
        super(new BorderLayout());
        JButton button0 = new JButton("ToolTip") {
            @Override public JToolTip createToolTip() {
                JToolTip tip = new JToolTip();
                Border b1 = tip.getBorder();
                Border b2 = BorderFactory.createTitledBorder("ToolTip");
                tip.setBorder(BorderFactory.createCompoundBorder(b1, b2));
                tip.setComponent(this);
                return tip;
            }
        };
        button0.setToolTipText("Test - ToolTipText0");

        JButton button1 = new JButton("ToolTip") {
            @Override public JToolTip createToolTip() {
                JToolTip tip = new JToolTip();
                Border b1 = tip.getBorder();
                Border b2 = BorderFactory.createMatteBorder(0, 10, 0, 0, Color.GREEN);
                tip.setBorder(BorderFactory.createCompoundBorder(b1, b2));
                tip.setComponent(this);
                return tip;
            }
        };
        button1.setToolTipText("Test - ToolTipText1");

        JPanel p = new JPanel(new BorderLayout(5, 5));
        p.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));
        p.add(makePanel("TitleBorder", button0), BorderLayout.NORTH);
        p.add(makePanel("MatteBorder", button1), BorderLayout.SOUTH);
        add(p, BorderLayout.NORTH);
        setPreferredSize(new Dimension(320, 180));
    }
    private static JPanel makePanel(String title, JComponent c) {
{'fraction_non_alphanumeric': 0.11870817573465231, 'fraction_numerical': 0.020366598778004074, 'mean_word_length': 2.2433962264150944, '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': '3944998', 'n_tokens_mistral': 1047, 'n_tokens_neox': 966, 'n_words': 209}