<commit_before>package com.github.SimonXianyu.codefather.ui;

import com.github.SimonXianyu.codefather.model.EntityCollector;

import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import java.awt.*;
import java.io.File;
import java.util.ResourceBundle;

/**
 * Main panel
 * Created by simon on 2014/12/29.
 */
public class MainPanel extends JPanel {

    private DefaultTreeModel entityTreeModel;
    private DefaultMutableTreeNode rootNode;
    private JTree entityTree;

    private EntityPane entityPane;

    private ResourceBundle resourceBundle;

    public void initGui() {
        rootNode = new DefaultMutableTreeNode();
        rootNode.setAllowsChildren(true);
        entityTreeModel = new DefaultTreeModel(rootNode);
        entityTree = new JTree(entityTreeModel);
        entityTree.setRootVisible(false);
        entityTree.setCellRenderer(new EntityTreeRender());
        JScrollPane treePane = new JScrollPane(entityTree);


        entityPane = new EntityPane();

        JTabbedPane entityTabPane = new JTabbedPane();

        entityTabPane.add(resourceBundle.getString("panel.entity.title"), entityPane);

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treePane, entityTabPane);
        splitPane.setDividerLocation(140);
        this.setLayout(new BorderLayout());
        this.add(splitPane);
        this.setPreferredSize(new Dimension(500,400));<commit_msg>adjust tree style<commit_after>package com.github.SimonXianyu.codefather.ui;

import com.github.SimonXianyu.codefather.model.EntityCollector;

import javax.swing.*;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import java.awt.*;
import java.io.File;
import java.util.ResourceBundle;

/**
 * Main panel
 * Created by simon on 2014/12/29.
 */
public class MainPanel extends JPanel {

    private DefaultTreeModel entityTreeModel;
    private DefaultMutableTreeNode rootNode;
    private JTree entityTree;

    private EntityPane entityPane;

    private ResourceBundle resourceBundle;

    public void initGui() {
        rootNode = new DefaultMutableTreeNode();
        rootNode.setAllowsChildren(true);
        entityTreeModel = new DefaultTreeModel(rootNode);
        entityTree = new JTree(entityTreeModel);
        entityTree.setRootVisible(false);
        entityTree.setCellRenderer(new EntityTreeRender());
        entityTree.setShowsRootHandles(true);
        JScrollPane treePane = new JScrollPane(entityTree);


        entityPane = new EntityPane();

        JTabbedPane entityTabPane = new JTabbedPane();

        entityTabPane.add(resourceBundle.getString("panel.entity.title"), entityPane);

        JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, treePane, entityTabPane);
        splitPane.setDividerLocation(140);
        this.setLayout(new BorderLayout());
        this.add(splitPane);
        this.setPreferredSize(new Dimension(500,400));
{'fraction_non_alphanumeric': 0.0903010033444816, 'fraction_numerical': 0.01137123745819398, 'mean_word_length': 3.9601990049751246, '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': '6439906', 'n_tokens_mistral': 881, 'n_tokens_neox': 826, 'n_words': 170}