<commit_before>package nl.mpi.kinnate.ui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import nl.mpi.arbil.ui.GuiHelper;
import nl.mpi.kinnate.export.EntityUploader;

/**
 *  Document   : UploadWindow
 *  Created on : Jun 29, 2011, 2:08:34 PM
 *  Author     : <NAME>
 */
public class EntityUploadPanel extends JPanel implements ActionListener {

//    private JList uploadList;
    private JTextArea uploadText;
    private JButton searchNewButton;
    private JButton searchModifiedButton;
    private JButton uploadButton;
    private JButton viewUploadButton;
    private JTextField workspaceName;
    private JPasswordField passwordText;
    private JProgressBar uploadProgress;
    private EntityUploader entityUploader;
    private JPanel workspacePanel;
    private JPanel passwordPanel;

    public EntityUploadPanel() {
        entityUploader = new EntityUploader();
//        uploadList = new JList();
        uploadText = new JTextArea();
        searchNewButton = new JButton("Search New Entities");
        searchModifiedButton = new JButton("Search Modified Entities");
        uploadButton = new JButton("Upload Selected");
        viewUploadButton = new JButton("View Uploaded");
        workspaceName = new JTextField();<commit_msg>Added a search for and a rest upload of new and modified entities. Added a UI for upload of local entities to the entity server.<commit_after>package nl.mpi.kinnate.ui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JPasswordField;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import nl.mpi.arbil.ui.GuiHelper;
import nl.mpi.kinnate.export.EntityUploader;

/**
 *  Document   : UploadWindow
 *  Created on : Jun 29, 2011, 2:08:34 PM
 *  Author     : <NAME>
 */
public class EntityUploadPanel extends JPanel implements ActionListener {

//    private JList uploadList;
    private JTextArea uploadText;
    private JButton searchNewButton;
    private JButton searchModifiedButton;
    private JButton uploadButton;
    private JButton viewUploadButton;
    private JTextField workspaceName;
    private JPasswordField passwordText;
    private JProgressBar uploadProgress;
    private EntityUploader entityUploader;
    private JPanel workspacePanel;
    private JPanel passwordPanel;

    public EntityUploadPanel() {
        entityUploader = new EntityUploader();
//        uploadList = new JList();
        uploadText = new JTextArea();
        searchNewButton = new JButton("Search New Entities");
        searchModifiedButton = new JButton("Search Modified Entities");
        uploadButton = new JButton("Upload Selected");
        viewUploadButton = new JButton("View Uploaded");
        workspaceName = new JTextField();
        workspaceName.addKeyListener(new KeyAdapter() {

            @Override
            public void keyTyped(KeyEvent keyEvent) {
                char keyChar = keyEvent.getKeyChar();
                if (!Character.isLetterOrDigit(keyChar)) {
                    // prevent non url chars being entered
                    keyEvent.consume();
                }
            }
        });
{'fraction_non_alphanumeric': 0.08236536430834214, 'fraction_numerical': 0.005807814149947202, 'mean_word_length': 3.5268817204301075, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3314322', 'n_tokens_mistral': 1050, 'n_tokens_neox': 1021, 'n_words': 282}