<commit_before>package nl.hsleiden.cucumber;

import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class Glue {

	private WebDriver[] drivers;
	private String host;
	private String contextPath;
	private String queryString;

	@Before
	public void setup() {
		drivers = new WebDriver[2];
		drivers[0] = new FirefoxDriver();
		drivers[1] = new ChromeDriver();
	}

	@Given("^the host name URL \"([^\"]*)\"$")
	public void the_host_name_URL(String url) throws Throwable {
		this.host = url;
	}

	@When("^open the context path \"([^\"]*)\"$")
	public void open_the_context_path(String contextPath) throws Throwable {
		this.contextPath = contextPath;
	}

	@When("^query string \"([^\"]*)\"$")
	public void queryString(String queryString) throws Throwable {
		this.queryString = queryString;
	}

	@Then("^the header should read \"([^\"]*)\"$")
	public void the_header_should_read(String text) throws Throwable {
		String url = host + contextPath + "?" + queryString;
		for (WebDriver driver : drivers) {
			driver.get(url);
			Assert.assertEquals(text, driver.findElement(By.cssSelector("h2"))
					.getText());
		}

	}

	@After
	public void tearDown() throws Exception {
		for (WebDriver driver : drivers) {
			driver.quit();
		}
	}

}
<commit_msg>Google chrome testing was removed.<commit_after>package nl.hsleiden.cucumber;

import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;

public class Glue {

    private WebDriver[] drivers;
    private String host;
    private String contextPath;
    private String queryString;

    @Before
    public void setup() {
        drivers = new WebDriver[1];
        drivers[0] = new FirefoxDriver();
    }

    @Given("^the host name URL \"([^\"]*)\"$")
    public void the_host_name_URL(String url) throws Throwable {
        this.host = url;
    }

    @When("^open the context path \"([^\"]*)\"$")
    public void open_the_context_path(String contextPath) throws Throwable {
        this.contextPath = contextPath;
    }

    @When("^query string \"([^\"]*)\"$")
    public void queryString(String queryString) throws Throwable {
        this.queryString = queryString;
    }

    @Then("^the header should read \"([^\"]*)\"$")
    public void the_header_should_read(String text) throws Throwable {
        String url = host + contextPath + "?" + queryString;
        for (WebDriver driver : drivers) {
            driver.get(url);
            Assert.assertEquals(text, driver.findElement(By.cssSelector("h2")).getText());
        }

    }

    @After
    public void tearDown() throws Exception {
        for (WebDriver driver : drivers) {
            driver.quit();
        }
    }

}

{'fraction_non_alphanumeric': 0.1387066541705717, 'fraction_numerical': 0.0021868166198063107, 'mean_word_length': 3.5677603423680457, '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': '1689508', 'n_tokens_mistral': 1079, 'n_tokens_neox': 1024, 'n_words': 234}