<commit_before>package org.thymoljs.thymol.test.selenium;

import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.UnhandledAlertException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.thymoljs.thymol.test.context.Context;
import org.thymoljs.thymol.test.selenium.webdriver.ChromeFactory;
import org.thymoljs.thymol.test.selenium.webdriver.FirefoxFactory;
import org.thymoljs.thymol.test.selenium.webdriver.InternetExplorerFactory;
import org.thymoljs.thymol.test.selenium.webdriver.WebDriverFactory;

public class SeleniumCases implements URIGetter {

	protected static WebDriverFactory driverFactory = null;
	protected static WebDriver driver = null;

	protected static URIGetter getter;
	
	private static final String ERROR_MARKER = "Problem accessing /";

	public void localise( String path ) {
		throw new RuntimeException();
	}

	public static void setup( URIGetter g ) {
		getter = g;
		String webDriverProperty = System.getProperty( "webDriver" );
		System.out.println( " webDriver is: " + webDriverProperty );
		if( webDriverProperty == null || "firefox".equals( webDriverProperty ) ) {
			driverFactory = new FirefoxFactory();
		}
		else if( "chrome".equals( webDriverProperty ) ) {
			driverFactory = new ChromeFactory();
		}
		else if( "internetExplorer".equals( webDriverProperty ) ) {
			driverFactory = new InternetExplorerFactory();
		}
	}

	public SeleniumCases() {
		super();
	}<commit_msg>Added 2 new drivers (experimental!).<commit_after>package org.thymoljs.thymol.test.selenium;

import java.nio.charset.Charset;
import java.util.Arrays;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoAlertPresentException;
import org.openqa.selenium.UnhandledAlertException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.remote.RemoteWebElement;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.thymoljs.thymol.test.context.Context;
import org.thymoljs.thymol.test.selenium.webdriver.ChromeFactory;
import org.thymoljs.thymol.test.selenium.webdriver.FirefoxFactory;
import org.thymoljs.thymol.test.selenium.webdriver.HtmlUnitFactory;
import org.thymoljs.thymol.test.selenium.webdriver.InternetExplorerFactory;
import org.thymoljs.thymol.test.selenium.webdriver.PhantomJSFactory;
import org.thymoljs.thymol.test.selenium.webdriver.WebDriverFactory;

public class SeleniumCases {

	protected static WebDriverFactory driverFactory = null;
	protected static WebDriver driver = null;

	protected static URIGetter getter;
	
	private static final String ERROR_MARKER = "Problem accessing /";

	public void localise( String path ) {
		throw new RuntimeException();
	}

	public static void setup( URIGetter g ) {
		getter = g;
		String webDriverProperty = System.getProperty( "webDriver" );
		System.out.println( " webDriver is: " + webDriverProperty );
		if( webDriverProperty == null || "phantomjs".equals( webDriverProperty ) ) {
			driverFactory = new PhantomJSFactory();
		}
		else if( "htmlunit".equals( webDriverProperty ) ) {
			driverFactory = new HtmlUnitFactory();
		}
		else if( "firefox".equals( webDriverProperty ) ) {
			driverFactory = new FirefoxFactory();
		}
		else if( "chrome".equals( webDriverProperty ) ) {
			driverFactory = new ChromeFactory();
		}
		else if( "internetExplorer".equals( webDriverProperty ) ) {
			driverFactory = new InternetExplorerFactory();
		}
	}

	public SeleniumCases() {
		super();
	}
{'fraction_non_alphanumeric': 0.10546592824464243, 'fraction_numerical': 0.00024078979051288225, 'mean_word_length': 5.390769230769231, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3436367', 'n_tokens_mistral': 1413, 'n_tokens_neox': 1308, 'n_words': 258}