<commit_before>package pingis.cucumber;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import pingis.services.DataImporter;

@RunWith(SpringRunner.class)
@SpringBootTest()
@ContextConfiguration
public class Stepdefs {
          
  private static final int DRIVER_WAIT_TIME = 12;
  private static final int LOAD_WAIT_TIME = 1000;
  private static final String baseUrl = "http://localhost:8080/";

  WebDriver driver;
  
  @Autowired
  DataImporter dataImporter;
  
  // Maps the names for the elements and contents used in the feature files to
  // actual ids or contents; can be used by the WebDriver in order to locate them in the page
  // Note: You can add multiple values under one key, this works nicely for checking that multiple
  // elements exist at the same page simultaneously (@Then-steps), however when searching for 
  // on action elements (@When-steps), searches for the first of the list (adviceable to use only
  // one value for @When-steps) - villburn
  MultiValueMap<String, String> ids;
  
  Map<String, String> testUrls; // In order to verify that urls are correct
  Map<String, String> inputs;   // Contains dummy inputs made by the WebDriver 
  
  @Test<commit_msg>re-adjust wait times<commit_after>package pingis.cucumber;

import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import cucumber.api.java.After;
import cucumber.api.java.Before;
import cucumber.api.java.en.And;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import java.util.HashMap;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.openqa.selenium.Alert;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;
import pingis.services.DataImporter;

@RunWith(SpringRunner.class)
@SpringBootTest()
@ContextConfiguration
public class Stepdefs {
          
  private static final int DRIVER_WAIT_TIME = 8;
  private static final int LOAD_WAIT_TIME = 1300;
  private static final String baseUrl = "http://localhost:8080/";

  WebDriver driver;
  
  @Autowired
  DataImporter dataImporter;
  
  // Maps the names for the elements and contents used in the feature files to
  // actual ids or contents; can be used by the WebDriver in order to locate them in the page
  // Note: You can add multiple values under one key, this works nicely for checking that multiple
  // elements exist at the same page simultaneously (@Then-steps), however when searching for 
  // on action elements (@When-steps), searches for the first of the list (adviceable to use only
  // one value for @When-steps) - villburn
  MultiValueMap<String, String> ids;
  
  Map<String, String> testUrls; // In order to verify that urls are correct
  Map<String, String> inputs;   // Contains dummy inputs made by the WebDriver 
  
  @Test
{'fraction_non_alphanumeric': 0.0891153512575889, 'fraction_numerical': 0.004553339115351257, 'mean_word_length': 4.795226130653266, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6878105', 'n_tokens_mistral': 1396, 'n_tokens_neox': 1344, 'n_words': 395}