<commit_before>package fi.csc.microarray.client;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import org.jdesktop.swingx.JXHyperlink;

import fi.csc.microarray.client.operation.Operation;
import fi.csc.microarray.constants.VisualConstants;
import fi.csc.microarray.databeans.DataBean;
import fi.csc.microarray.module.chipster.MicroarrayModule;

public class QuickLinkPanel extends JPanel implements ActionListener {

	private SwingClientApplication application;

	private JXHyperlink sessionLink;
	private JXHyperlink importLink;
	private JXHyperlink emptyLink;
	private JXHyperlink exampleLink;
	private JXHyperlink importFolderLink;
	private JXHyperlink importURLLink;
	private JXHyperlink importArrayExpressLink;
	private JXHyperlink importGEOLink;

	
	private static final String LINK_WORD = "***";

	public QuickLinkPanel() {
		super(new GridBagLayout());

		application = (SwingClientApplication) Session.getSession().getApplication();

		this.setBackground(Color.white);
		
		exampleLink = createLink("Open example session ");
		importLink = createLink("Import files ");
		importFolderLink = createLink("Import folder ");
		importURLLink = createLink("Import from URL ");
		importArrayExpressLink = createLink("Import from ArrayExpress ");
		importGEOLink = createLink("Import from GEO ");
		sessionLink = createLink("Open session ");			

		GridBagConstraints c = new GridBagConstraints();
		c.gridx = 0;
		c.gridy = 0;
		c.anchor = GridBagConstraints.NORTHWEST;

		c.insets.set(5, 10, 5, 10);
		c.gridwidth = 2;	
		this.add(new JLabel("To start working with Chipster, you need to load in data first:"), c);		
		c.gridwidth = 1;
		c.gridy++;

		c.insets.set(0, 10, 0, 0);

		//addLink("To start working with Chipster, you need to load in data first:", (JXHyperlink)null, null, c);
		<commit_msg>Import from UniProt and EMBL..<commit_after>package fi.csc.microarray.client;

import java.awt.Color;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.net.URL;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;

import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JPanel;

import org.jdesktop.swingx.JXHyperlink;

import fi.csc.microarray.client.operation.Operation;
import fi.csc.microarray.constants.VisualConstants;
import fi.csc.microarray.databeans.DataBean;
import fi.csc.microarray.module.chipster.MicroarrayModule;

public class QuickLinkPanel extends JPanel implements ActionListener {

	private SwingClientApplication application;

	private JXHyperlink sessionLink;
	private JXHyperlink importLink;
	private JXHyperlink emptyLink;
	private JXHyperlink exampleLink;
	private JXHyperlink importFolderLink;
	private JXHyperlink importURLLink;
	private JXHyperlink importArrayExpressLink;
	private JXHyperlink importGEOLink;

	
	private static final String LINK_WORD = "***";

	public QuickLinkPanel() {
		super(new GridBagLayout());

		application = (SwingClientApplication) Session.getSession().getApplication();

		this.setBackground(Color.white);
		
		exampleLink = createLink("Open example session ");
		importLink = createLink("Import files ");
		importFolderLink = createLink("Import folder ");
		importURLLink = createLink("Import from URL ");
//		importArrayExpressLink = createLink("Import from ArrayExpress ");
//		importGEOLink = createLink("Import from GEO ");
		importArrayExpressLink = createLink("Import from UniProt ");
		importGEOLink = createLink("Import from EMBL ");
		
		sessionLink = createLink("Open session ");			

		GridBagConstraints c = new GridBagConstraints();
		c.gridx = 0;
		c.gridy = 0;
		c.anchor = GridBagConstraints.NORTHWEST;

		c.insets.set(5, 10, 5, 10);
		c.gridwidth = 2;	
		this.add(new JLabel("To start working with Chipster, you need to load in data first:"), c);		
		c.gridwidth = 1;
		c.gridy++;

		c.insets.set(0, 10, 0, 0);

		//addLink("To start working with Chipster, you need to load in data first:", (JXHyperlink)null, null, c);
		
{'fraction_non_alphanumeric': 0.10465631929046564, 'fraction_numerical': 0.0066518847006651885, 'mean_word_length': 5.247922437673131, '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': '5042130', 'n_tokens_mistral': 1535, 'n_tokens_neox': 1388, 'n_words': 344}