<commit_before>package br.org.olimpiabarbacena.client;

import br.org.olimpiabarbacena.client.formulario.Membro;
import br.org.olimpiabarbacena.client.formulario.midia.CD;
import br.org.olimpiabarbacena.client.formulario.midia.Jornal;
import br.org.olimpiabarbacena.client.formulario.midia.Livro;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Widget;

public class Controle extends Composite {

	private static ControleUiBinder uiBinder = GWT
			.create(ControleUiBinder.class);
	@UiField
	ListBox comboMidia;
	@UiField
	Button buttonMidia;
	@UiField
	Button buttonMembro;
	DialogBox dialogo;
	Livro livro;
	CD CD;
	Jornal jornal;
	Membro membro;
	Principal principal;

	interface ControleUiBinder extends UiBinder<Widget, Controle> {
	}

	public Controle(Principal principal) {
		this.principal = principal;
		initWidget(uiBinder.createAndBindUi(this));

		// adicionar tipos de mdia
		comboMidia.addItem("Selecione", "");
		comboMidia.addItem("Livro", "LIVRO");
		comboMidia.addItem("CD", "CD");
		comboMidia.addItem("DVD", "DVD");
		comboMidia.addItem("Jornal", "JORNAL");
		comboMidia.addItem("Revista", "REVISTA");
	}

	@UiHandler("buttonMidia")
	void onButtonMidiaClick(ClickEvent event) {
		String value = comboMidia.getValue(comboMidia.getSelectedIndex());

		if (value.equals("LIVRO")) {
			dialogo = new DialogBox(false);
			dialogo.setWidth("686px");
			dialogo.setHeight("417px");

			livro = new Livro(dialogo);<commit_msg>Ordem alfabética na listagem dos tipos de mídia.<commit_after>package br.org.olimpiabarbacena.client;

import br.org.olimpiabarbacena.client.formulario.Membro;
import br.org.olimpiabarbacena.client.formulario.midia.CD;
import br.org.olimpiabarbacena.client.formulario.midia.Jornal;
import br.org.olimpiabarbacena.client.formulario.midia.Livro;

import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.uibinder.client.UiHandler;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.DialogBox;
import com.google.gwt.user.client.ui.ListBox;
import com.google.gwt.user.client.ui.Widget;

public class Controle extends Composite {

	private static ControleUiBinder uiBinder = GWT
			.create(ControleUiBinder.class);
	@UiField
	ListBox comboMidia;
	@UiField
	Button buttonMidia;
	@UiField
	Button buttonMembro;
	DialogBox dialogo;
	Livro livro;
	CD CD;
	Jornal jornal;
	Membro membro;
	Principal principal;

	interface ControleUiBinder extends UiBinder<Widget, Controle> {
	}

	public Controle(Principal principal) {
		this.principal = principal;
		initWidget(uiBinder.createAndBindUi(this));

		// adicionar tipos de mdia
		comboMidia.addItem("Selecione", "");
		comboMidia.addItem("CD", "CD");
		comboMidia.addItem("DVD", "DVD");
		comboMidia.addItem("Jornal", "JORNAL");
		comboMidia.addItem("Livro", "LIVRO");
		comboMidia.addItem("Revista", "REVISTA");
	}

	@UiHandler("buttonMidia")
	void onButtonMidiaClick(ClickEvent event) {
		String value = comboMidia.getValue(comboMidia.getSelectedIndex());

		if (value.equals("LIVRO")) {
			dialogo = new DialogBox(false);
			dialogo.setWidth("686px");
			dialogo.setHeight("417px");

			livro = new Livro(dialogo);
{'fraction_non_alphanumeric': 0.12724350388427538, 'fraction_numerical': 0.0032145727297080095, 'mean_word_length': 5.493913043478261, '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': '6204055', 'n_tokens_mistral': 1512, 'n_tokens_neox': 1415, 'n_words': 216}