<commit_before>package com.itmill.toolkit.tests;

import java.util.LinkedList;
import java.util.Random;

import com.itmill.toolkit.data.Property.ValueChangeEvent;
import com.itmill.toolkit.data.Property.ValueChangeListener;
import com.itmill.toolkit.terminal.ClassResource;
import com.itmill.toolkit.ui.*;

public class UsingObjectsInSelect extends com.itmill.toolkit.Application
		implements ValueChangeListener {

	private Select select = new Select();
	private Label selectedTask = new Label("Selected task", Label.CONTENT_XHTML);

	public LinkedList exampleTasks = new LinkedList();

	public static Random random = new Random(1);

	public void init() {
		Window main = new Window("Select demo");
		setMainWindow(main);

		setTheme("corporate");

		Panel panel = new Panel("Select demo");
		panel.addComponent(select);
		Panel panel2 = new Panel("Selection");
		panel2.addComponent(selectedTask);

		select.setCaption("Select component");
		select.addListener((ValueChangeListener) this);
		select.setImmediate(true);

		main.addComponent(panel);
		main.addComponent(panel2);

		createExampleTasks();<commit_msg>Corporate theme does not exists, removed.<commit_after>package com.itmill.toolkit.tests;

import java.util.LinkedList;
import java.util.Random;

import com.itmill.toolkit.data.Property.ValueChangeEvent;
import com.itmill.toolkit.data.Property.ValueChangeListener;
import com.itmill.toolkit.terminal.ClassResource;
import com.itmill.toolkit.ui.*;

public class UsingObjectsInSelect extends com.itmill.toolkit.Application
		implements ValueChangeListener {

	private Select select = new Select();
	private Label selectedTask = new Label("Selected task", Label.CONTENT_XHTML);

	public LinkedList exampleTasks = new LinkedList();

	public static Random random = new Random(1);

	public void init() {
		Window main = new Window("Select demo");
		setMainWindow(main);

		Panel panel = new Panel("Select demo");
		panel.addComponent(select);
		Panel panel2 = new Panel("Selection");
		panel2.addComponent(selectedTask);

		select.setCaption("Select component");
		select.addListener((ValueChangeListener) this);
		select.setImmediate(true);

		main.addComponent(panel);
		main.addComponent(panel2);

		createExampleTasks();
{'fraction_non_alphanumeric': 0.10976702508960573, 'fraction_numerical': 0.0035842293906810036, 'mean_word_length': 5.82874617737003, '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': '6739498', 'n_tokens_mistral': 680, 'n_tokens_neox': 632, 'n_words': 149}