<commit_before>package org.fedorahosted.flies.webtrans.client;

import org.fedorahosted.flies.webtrans.client.Application.WindowResizeEvent;

import net.customware.gwt.presenter.client.EventBus;


import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class AppPresenter {
	
	private HasWidgets container;
	private final TransUnitListPresenter transUnitListPresenter;
	private final WestNavigationPresenter westNavigationPresenter;
	private final EventBus eventBus;
	
	@Inject
	public AppPresenter(final EventBus eventBus, final TransUnitListPresenter transUnitListPresenter,
				final WestNavigationPresenter leftNavigationPresenter ) {
		
		this.transUnitListPresenter = transUnitListPresenter;		
		this.westNavigationPresenter = leftNavigationPresenter;
		this.eventBus = eventBus;
	}
	
	private void showMain() {
		container.clear();
		
		final DockPanel dockPanel = new DockPanel();
		Widget center = transUnitListPresenter.getDisplay().asWidget();
		Widget west = westNavigationPresenter.getDisplay().asWidget();
		dockPanel.add(center, DockPanel.CENTER );
		dockPanel.add(west, DockPanel.WEST );
		dockPanel.setCellWidth(center, "100%");
		dockPanel.setCellWidth(west, "220px");
		eventBus.addHandler(WindowResizeEvent.getType(), new ResizeHandler() {
			@Override
			public void onResize(ResizeEvent event) {
				dockPanel.setHeight(event.getHeight() + "px");
				dockPanel.setWidth(event.getWidth() + "px");
			}
			
		});
		
		container.add(dockPanel);
	}

	public void go(final HasWidgets container) {
		this.container = container;
		
		showMain();
	}
}
<commit_msg>Added a footer to make DockPanel issues more apparent<commit_after>package org.fedorahosted.flies.webtrans.client;

import net.customware.gwt.presenter.client.EventBus;

import org.fedorahosted.flies.webtrans.client.Application.WindowResizeEvent;

import com.google.gwt.event.logical.shared.ResizeEvent;
import com.google.gwt.event.logical.shared.ResizeHandler;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class AppPresenter {
	
	private HasWidgets container;
	private final TransUnitListPresenter transUnitListPresenter;
	private final WestNavigationPresenter westNavigationPresenter;
	private final EventBus eventBus;
	
	@Inject
	public AppPresenter(final EventBus eventBus, final TransUnitListPresenter transUnitListPresenter,
				final WestNavigationPresenter leftNavigationPresenter ) {
		
		this.transUnitListPresenter = transUnitListPresenter;		
		this.westNavigationPresenter = leftNavigationPresenter;
		this.eventBus = eventBus;
	}
	
	private void showMain() {
		container.clear();
		
		final DockPanel dockPanel = new DockPanel();
		final Label appFooter = new HTML("<span style=\"float: left\">Flies page footer goes here</span><span style=\"float: right\">Flies page footer goes here</span>");
		appFooter.setHeight("1em");
		dockPanel.add(appFooter, DockPanel.SOUTH);
		Widget center = transUnitListPresenter.getDisplay().asWidget();
		Widget west = westNavigationPresenter.getDisplay().asWidget();
		dockPanel.add(center, DockPanel.CENTER );
		dockPanel.add(west, DockPanel.WEST );
		dockPanel.setCellWidth(center, "100%");
		dockPanel.setCellWidth(west, "220px");
		eventBus.addHandler(WindowResizeEvent.getType(), new ResizeHandler() {
			@Override
			public void onResize(ResizeEvent event) {
				dockPanel.setHeight(event.getHeight() + "px");
				dockPanel.setWidth(event.getWidth() + "px");
			}
			
		});
		
		container.add(dockPanel);
	}

	public void go(final HasWidgets container) {
		this.container = container;
		
		showMain();
	}
}

{'fraction_non_alphanumeric': 0.10787459886447791, 'fraction_numerical': 0.0032090841767464825, 'mean_word_length': 5.351097178683386, 'pattern_counts': {'":': 0, '<': 7, '<?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': '7063459', 'n_tokens_mistral': 1388, 'n_tokens_neox': 1255, 'n_words': 228}