<commit_before>import org.fluentlenium.adapter.FluentTest;
import org.junit.ClassRule;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;

import static org.fluentlenium.core.filter.FilterConstructor.*;
import static org.assertj.core.api.Assertions.assertThat;

public class IntegrationTest extends FluentTest {
  public WebDriver webDriver = new HtmlUnitDriver();

  @Override
  public WebDriver getDefaultDriver() {
    return webDriver;
  }

  @ClassRule
  public static ServerRule server = new ServerRule();

  @Test
  public void rootTest() {
      goTo("http://localhost:4567/");
      assertThat(pageSource()).contains("Dictionary");
  }

  public void addAWordPage() {
      goTo("http://localhost:4567/");
      click("a", withText("Add a Word"));
      assertThat(pageSource()).contains("Now's your chance");
  }

  public void addsWordsSuccessfully() {
      goTo("http://localhost:4567/new");
      fill("#word").with("expeditious");
      submit(".btn");
      assertThat(pageSource()).contains("expeditious");
  }

  public void individualWordPage() {
      goTo("http://localhost:4567/new");
      fill("#word").with("expeditious");
      submit(".btn");
      click("a", withText("expeditious"));
      assertThat(pageSource).contains("Add Definition");
  }

  public void addsDefinitionsSuccessfully() {
      goTo("http://localhost:4567/new");
      fill("#word").with("baton");
      submit(".btn");
      click("a", withText("baton"));
      fill("#definition").with("a kind of stick");
      fill("#example").with("the marshal had a baton");
      submit(".btn");
      assertThat(pageSource).contains("the marshal had a baton");
  }
}
<commit_msg>Add test annotations to integration tests<commit_after>import org.fluentlenium.adapter.FluentTest;
import org.junit.ClassRule;
import org.junit.Test;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;

import static org.fluentlenium.core.filter.FilterConstructor.*;
import static org.assertj.core.api.Assertions.assertThat;

public class IntegrationTest extends FluentTest {
  public WebDriver webDriver = new HtmlUnitDriver();

  @Override
  public WebDriver getDefaultDriver() {
    return webDriver;
  }

  @ClassRule
  public static ServerRule server = new ServerRule();

  @Test
  public void rootTest() {
      goTo("http://localhost:4567/");
      assertThat(pageSource()).contains("Dictionary");
  }

  @Test
  public void addAWordPage() {
      goTo("http://localhost:4567/");
      click("a", withText("Add a Word"));
      assertThat(pageSource()).contains("Now's your chance");
  }

  @Test
  public void addsWordsSuccessfully() {
      goTo("http://localhost:4567/new");
      fill("#word").with("expeditious");
      submit(".btn");
      assertThat(pageSource()).contains("expeditious");
  }

  @Test
  public void individualWordPage() {
      goTo("http://localhost:4567/new");
      fill("#word").with("expeditious");
      submit(".btn");
      click("a", withText("expeditious"));
      assertThat(pageSource).contains("Add Definition");
  }

  @Test
  public void addsDefinitionsSuccessfully() {
      goTo("http://localhost:4567/new");
      fill("#word").with("baton");
      submit(".btn");
      click("a", withText("baton"));
      fill("#definition").with("a kind of stick");
      fill("#example").with("the marshal had a baton");
      submit(".btn");
      assertThat(pageSource).contains("the marshal had a baton");
  }
}

{'fraction_non_alphanumeric': 0.15956842703009655, 'fraction_numerical': 0.011357183418512209, 'mean_word_length': 3.990084985835694, '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': '3727470', 'n_tokens_mistral': 1077, 'n_tokens_neox': 1031, 'n_words': 201}