<commit_before>//
// Created       : 2006 Jun 14 (Wed) 18:29:38 by <NAME>.
// Last Modified : 2008 May 28 (Wed) 14:07:02 by <NAME>.
//

package org.openhc.trowser.swing.client;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BoxLayout;
import javax.swing.DefaultListModel;
import javax.swing.DefaultListSelectionModel;
import javax.swing.ListSelectionModel;
import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import org.openhc.trowser.gwt.common.SPVItem;
import org.openhc.trowser.gwt.common.Util;
import org.openhc.trowser.swing.client.Main;

public class SPVPanel
{
    private final Main    main;
    private final SPVList subjectPanel;
    private final SPVList propertyPanel;
    private final SPVList valuePanel;
    private final JPanel  spvHorizontalPanel;

    public SPVPanel(Main main)
    {
	this.main = main;

	//
	// Subject, Property, Value panels.
	// Create now to get contents from server.
	//

	subjectPanel  = new SPVList(main.subject, main);
	propertyPanel = new SPVList(main.property, main);
	valuePanel    = new SPVList(main.value, main);
	spvHorizontalPanel = new JPanel();
	main.getTrowserLayout().spvPanelLayout(spvHorizontalPanel,
					       subjectPanel.getButton(),
					       subjectPanel.getScrollPane(),
					       propertyPanel.getButton(),
					       propertyPanel.getScrollPane(),
					       valuePanel.getButton(),
					       valuePanel.getScrollPane());
    }

    public JPanel  getPanel()         { return spvHorizontalPanel; }
    public SPVList getSubjectPanel()  { return subjectPanel; }
    public SPVList getPropertyPanel() { return propertyPanel; }<commit_msg>["removed unnecessary comment.\n", ""]<commit_after>//
// Created       : 2006 Jun 14 (Wed) 18:29:38 by <NAME>.
// Last Modified : 2008 May 29 (Thu) 10:35:33 by <NAME>.
//

package org.openhc.trowser.swing.client;

import java.util.ArrayList;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.List;

import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.BoxLayout;
import javax.swing.DefaultListModel;
import javax.swing.DefaultListSelectionModel;
import javax.swing.ListSelectionModel;
import javax.swing.JButton;
import javax.swing.JList;
import javax.swing.JPanel;
import javax.swing.JScrollPane;

import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;

import org.openhc.trowser.gwt.common.SPVItem;
import org.openhc.trowser.gwt.common.Util;
import org.openhc.trowser.swing.client.Main;

public class SPVPanel
{
    private final Main    main;
    private final SPVList subjectPanel;
    private final SPVList propertyPanel;
    private final SPVList valuePanel;
    private final JPanel  spvHorizontalPanel;

    public SPVPanel(Main main)
    {
	this.main = main;

	subjectPanel  = new SPVList(main.subject, main);
	propertyPanel = new SPVList(main.property, main);
	valuePanel    = new SPVList(main.value, main);
	spvHorizontalPanel = new JPanel();
	main.getTrowserLayout().spvPanelLayout(spvHorizontalPanel,
					       subjectPanel.getButton(),
					       subjectPanel.getScrollPane(),
					       propertyPanel.getButton(),
					       propertyPanel.getScrollPane(),
					       valuePanel.getButton(),
					       valuePanel.getScrollPane());
    }

    public JPanel  getPanel()         { return spvHorizontalPanel; }
    public SPVList getSubjectPanel()  { return subjectPanel; }
    public SPVList getPropertyPanel() { return propertyPanel; }
{'fraction_non_alphanumeric': 0.10262405819693426, 'fraction_numerical': 0.012470771628994544, 'mean_word_length': 3.8488664987405543, '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': '6989012', 'n_tokens_mistral': 1259, 'n_tokens_neox': 1145, 'n_words': 264}