<commit_before>package com.fau.amos.team2.WoundManagement.ui;

import com.fau.amos.team2.WoundManagement.model.AccumulativeAckType;
import com.fau.amos.team2.WoundManagement.model.Employee;
import com.fau.amos.team2.WoundManagement.model.Patient;
import com.fau.amos.team2.WoundManagement.model.Sex;
import com.fau.amos.team2.WoundManagement.model.Wound;
import com.fau.amos.team2.WoundManagement.provider.EmployeeProvider;
import com.fau.amos.team2.WoundManagement.provider.PatientProvider;
import com.fau.amos.team2.WoundManagement.provider.TestDataLoader;
import com.fau.amos.team2.WoundManagement.provider.WoundProvider;
import com.fau.amos.team2.WoundManagement.resources.MessageResources;
import com.vaadin.addon.touchkit.ui.NavigationButton;
import com.vaadin.addon.touchkit.ui.NavigationButton.NavigationButtonClickEvent;
import com.vaadin.addon.touchkit.ui.NavigationButton.NavigationButtonClickListener;
import com.vaadin.addon.touchkit.ui.VerticalComponentGroup;
import com.vaadin.server.Page;
import com.vaadin.server.Page.BrowserWindowResizeEvent;
import com.vaadin.server.Page.BrowserWindowResizeListener;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI;

public class StartMenuView extends SessionedNavigationView {
	private static final long serialVersionUID = -5310803657027928140L;

	/**
	 * Creates an instance of StartMenuView
	 * 
	 * Navigates to one of the following Views
	 * 
	 * @see com.fau.amos.team2.WoundManagement.ui.UserLoginView
	 * @see com.fau.amos.team2.WoundManagement.ui.PatientSelectionView
	 * @see com.fau.amos.team2.WoundManagement.ui.PatientView
	 */
	@SuppressWarnings("serial")
	public StartMenuView() {
		
		// ResizeListener
		UI.getCurrent().setImmediate(true);
		UI.getCurrent().setResizeLazy(true);
		Page.getCurrent().addBrowserWindowResizeListener(new BrowserWindowResizeListener() {
			@SuppressWarnings("deprecation")
			@Override
			public void browserWindowResized(BrowserWindowResizeEvent event) {
				getEnvironment().setOrientation();
				UI.getCurrent().requestRepaint();
				//Page.getCurrent().reload();
			}
		});

		setCaption(MessageResources.getString("mainMenu")); //$NON-NLS-1$

		final VerticalComponentGroup content = new VerticalComponentGroup();

		NavigationButton loginScreenButton = new NavigationButton(MessageResources.getString("login")); //$NON-NLS-1$
		loginScreenButton.setTargetView(new UserLoginView());
		content.addComponent(loginScreenButton);
		
		NavigationButton initializeDataButton = new NavigationButton("For Software Developers only: initialize data");
		initializeDataButton.addClickListener(new NavigationButtonClickListener() {
			public void buttonClick(NavigationButtonClickEvent event) {
				TestDataLoader.resetData();
			}
		});
		content.addComponent(initializeDataButton);
		
		Patient p = new Patient();
		p.setFirstName("Stefan");
		p.setLastName("Betz");
		p.setGender("w");
		PatientProvider.getInstance().add(p);
		
		NavigationButton genderWoundButton = new NavigationButton("Gender Wound View.");
		genderWoundButton.setTargetView(new PatientView(p, true));
		content.addComponent(genderWoundButton);
		
		
		setContent(content);

	}
}<commit_msg>Removed develop/test view<commit_after>package com.fau.amos.team2.WoundManagement.ui;

import com.fau.amos.team2.WoundManagement.model.AccumulativeAckType;
import com.fau.amos.team2.WoundManagement.model.Employee;
import com.fau.amos.team2.WoundManagement.model.Patient;
import com.fau.amos.team2.WoundManagement.model.Sex;
import com.fau.amos.team2.WoundManagement.model.Wound;
import com.fau.amos.team2.WoundManagement.provider.EmployeeProvider;
import com.fau.amos.team2.WoundManagement.provider.PatientProvider;
import com.fau.amos.team2.WoundManagement.provider.TestDataLoader;
import com.fau.amos.team2.WoundManagement.provider.WoundProvider;
import com.fau.amos.team2.WoundManagement.resources.MessageResources;
import com.vaadin.addon.touchkit.ui.NavigationButton;
import com.vaadin.addon.touchkit.ui.NavigationButton.NavigationButtonClickEvent;
import com.vaadin.addon.touchkit.ui.NavigationButton.NavigationButtonClickListener;
import com.vaadin.addon.touchkit.ui.VerticalComponentGroup;
import com.vaadin.server.Page;
import com.vaadin.server.Page.BrowserWindowResizeEvent;
import com.vaadin.server.Page.BrowserWindowResizeListener;
import com.vaadin.ui.Notification;
import com.vaadin.ui.UI;

public class StartMenuView extends SessionedNavigationView {
	private static final long serialVersionUID = -5310803657027928140L;

	/**
	 * Creates an instance of StartMenuView
	 * 
	 * Navigates to one of the following Views
	 * 
	 * @see com.fau.amos.team2.WoundManagement.ui.UserLoginView
	 * @see com.fau.amos.team2.WoundManagement.ui.PatientSelectionView
	 * @see com.fau.amos.team2.WoundManagement.ui.PatientView
	 */
	@SuppressWarnings("serial")
	public StartMenuView() {
		
		// ResizeListener
		UI.getCurrent().setImmediate(true);
		UI.getCurrent().setResizeLazy(true);
		Page.getCurrent().addBrowserWindowResizeListener(new BrowserWindowResizeListener() {
			@SuppressWarnings("deprecation")
			@Override
			public void browserWindowResized(BrowserWindowResizeEvent event) {
				getEnvironment().setOrientation();
				UI.getCurrent().requestRepaint();
				//Page.getCurrent().reload();
			}
		});

		setCaption(MessageResources.getString("mainMenu")); //$NON-NLS-1$

		final VerticalComponentGroup content = new VerticalComponentGroup();

		NavigationButton loginScreenButton = new NavigationButton(MessageResources.getString("login")); //$NON-NLS-1$
		loginScreenButton.setTargetView(new UserLoginView());
		content.addComponent(loginScreenButton);
		
		NavigationButton initializeDataButton = new NavigationButton("For Software Developers only: initialize data");
		initializeDataButton.addClickListener(new NavigationButtonClickListener() {
			public void buttonClick(NavigationButtonClickEvent event) {
				TestDataLoader.resetData();
			}
		});
		content.addComponent(initializeDataButton);

	}
}
{'fraction_non_alphanumeric': 0.1097927807486631, 'fraction_numerical': 0.011697860962566845, 'mean_word_length': 6.0, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3440700', 'n_tokens_mistral': 1962, 'n_tokens_neox': 1773, 'n_words': 257}