<commit_before>package org.sagebionetworks.web.client.widget.entity.controller;

import org.gwtbootstrap3.client.ui.Alert;
import org.gwtbootstrap3.client.ui.Button;
import org.gwtbootstrap3.client.ui.html.Div;
import org.gwtbootstrap3.client.ui.html.Strong;
import org.gwtbootstrap3.extras.bootbox.client.Bootbox;
import org.sagebionetworks.web.client.DisplayUtils;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;

public class SynapseAlertViewImpl implements
		SynapseAlertView {
	
	public interface Binder extends
			UiBinder<Widget, SynapseAlertViewImpl> {
	}
	private static Binder uiBinder = GWT.create(Binder.class);

	Widget widget = null;
	
	@UiField
	Button reloadButton;
	
	@UiField
	Strong alertText;
	@UiField
	Alert alert;
	@UiField
	Div loginAlert;
	Presenter presenter;
	@UiField
	Div loginWidgetContainer;
	@UiField
	Div jiraDialogContainer;
	ClickHandler onCreateJiraIssue;
	JiraDialog jiraDialog;
	
	Div synapseAlertContainer = new Div();
	public SynapseAlertViewImpl(){
		onCreateJiraIssue = event -> {
			presenter.onCreateJiraIssue(jiraDialog.getText());
		};
	}
	
	private void lazyConstruct() {
		if (widget == null) {
			synapseAlertContainer.setVisible(false);
			widget = uiBinder.createAndBindUi(this);
			synapseAlertContainer.add(widget);
			reloadButton.addClickHandler(new ClickHandler() {
				@Override
				public void onClick(ClickEvent event) {
					reload();
				}
			});
			clearState();
		}
	}
	
	@Override
	public void setRetryButtonVisible(boolean visible) {
		lazyConstruct();
		reloadButton.setVisible(visible);<commit_msg>make empty syn alert container a span instead of a div<commit_after>package org.sagebionetworks.web.client.widget.entity.controller;

import org.gwtbootstrap3.client.ui.Alert;
import org.gwtbootstrap3.client.ui.Button;
import org.gwtbootstrap3.client.ui.html.Div;
import org.gwtbootstrap3.client.ui.html.Span;
import org.gwtbootstrap3.client.ui.html.Strong;
import org.gwtbootstrap3.extras.bootbox.client.Bootbox;
import org.sagebionetworks.web.client.DisplayUtils;

import com.google.gwt.core.shared.GWT;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Widget;

public class SynapseAlertViewImpl implements
		SynapseAlertView {
	
	public interface Binder extends
			UiBinder<Widget, SynapseAlertViewImpl> {
	}
	private static Binder uiBinder = GWT.create(Binder.class);

	Widget widget = null;
	
	@UiField
	Button reloadButton;
	
	@UiField
	Strong alertText;
	@UiField
	Alert alert;
	@UiField
	Div loginAlert;
	Presenter presenter;
	@UiField
	Div loginWidgetContainer;
	@UiField
	Div jiraDialogContainer;
	ClickHandler onCreateJiraIssue;
	JiraDialog jiraDialog;
	
	Span synapseAlertContainer = new Span();
	public SynapseAlertViewImpl(){
		onCreateJiraIssue = event -> {
			presenter.onCreateJiraIssue(jiraDialog.getText());
		};
	}
	
	private void lazyConstruct() {
		if (widget == null) {
			synapseAlertContainer.setVisible(false);
			widget = uiBinder.createAndBindUi(this);
			synapseAlertContainer.add(widget);
			reloadButton.addClickHandler(new ClickHandler() {
				@Override
				public void onClick(ClickEvent event) {
					reload();
				}
			});
			clearState();
		}
	}
	
	@Override
	public void setRetryButtonVisible(boolean visible) {
		lazyConstruct();
		reloadButton.setVisible(visible);
{'fraction_non_alphanumeric': 0.10278145695364238, 'fraction_numerical': 0.002913907284768212, 'mean_word_length': 5.012738853503185, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5017250', 'n_tokens_mistral': 1356, 'n_tokens_neox': 1244, 'n_words': 223}