<commit_before>package org.jboss.reddeer.swt.test;

import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.jboss.reddeer.swt.util.Bot;
import org.junit.After;
import org.junit.Before;
/**
 * Parent test for each test of Red Deer
 * @author <NAME>
 *
 */
public class RedDeerTest {
	@Before
	public void setUpRDT(){
		setUp();
	}
	@After
	public void tearDownRDT(){
		tearDown();
	}
  // Default setup for each test   
	protected void setUp(){
	  // close Welcome screen
	  SWTBotView activeView = Bot.get().activeView();
	  if (activeView != null && activeView.getTitle().equals("Welcome")){
	    activeView.close();  
	  }		
	}
  //  Default tearDown for each test
	protected void tearDown(){
		// empty for now can be overridden by child classes
	}
}<commit_msg>Try catch added when there is no active welcome screen at startup<commit_after>package org.jboss.reddeer.swt.test;

import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView;
import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException;
import org.jboss.reddeer.swt.util.Bot;
import org.junit.After;
import org.junit.Before;
/**
 * Parent test for each test of Red Deer
 * @author <NAME>
 *
 */
public class RedDeerTest {
	@Before
	public void setUpRDT(){
		setUp();
	}
	@After
	public void tearDownRDT(){
		tearDown();
	}
  // Default setup for each test   
	protected void setUp(){
	  // close Welcome screen
	  try {
		  SWTBotView activeView = Bot.get().activeView();
		  if (activeView != null && activeView.getTitle().equals("Welcome")){
			    activeView.close();  
			  }
	  } catch (WidgetNotFoundException exc) {
		  // welcome screen not found, no need to close it
	  }
	  		
	}
  //  Default tearDown for each test
	protected void tearDown(){
		// empty for now can be overridden by child classes
	}
}
{'fraction_non_alphanumeric': 0.11953514111787493, 'fraction_numerical': 0.0, 'mean_word_length': 3.4641975308641975, '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': '1795128', 'n_tokens_mistral': 631, 'n_tokens_neox': 589, 'n_words': 164}