<commit_before>package ca.corefacility.bioinformatics.irida.ria.integration.pages;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.*;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ca.corefacility.bioinformatics.irida.ria.integration.AbstractIridaUIITChromeDriver;

import com.google.common.base.Predicate;
import com.google.common.base.Strings;

import static org.junit.Assert.*;

/**
 * Represents the common elements in a page within the application.
 *
 */
public class AbstractPage {
	private static final Logger logger = LoggerFactory.getLogger(AbstractPage.class);
	protected static final String BASE_URL = System.getProperty("server.base.url") + "/";
	protected static final Long TIME_OUT_IN_SECONDS = 10L;

	protected final int DEFAULT_WAIT = 500;

	@FindBy(className = "error")<commit_msg>Added fall back for baseurl when properties file is not loaded, i.e. running test class through intellij<commit_after>package ca.corefacility.bioinformatics.irida.ria.integration.pages;

import java.util.Collection;
import java.util.List;
import java.util.Map;
import java.util.concurrent.TimeUnit;

import org.openqa.selenium.*;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.ui.ExpectedCondition;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import ca.corefacility.bioinformatics.irida.ria.integration.AbstractIridaUIITChromeDriver;

import com.google.common.base.Predicate;
import com.google.common.base.Strings;

import static org.junit.Assert.*;

/**
 * Represents the common elements in a page within the application.
 *
 */
public class AbstractPage {
	private static final Logger logger = LoggerFactory.getLogger(AbstractPage.class);
	protected static final String BASE_URL = System.getProperty("server.base.url", "http://localhost:" + System.getProperty("jetty.port", "8080")) + "/";
	protected static final Long TIME_OUT_IN_SECONDS = 10L;

	protected final int DEFAULT_WAIT = 500;

	@FindBy(className = "error")
{'fraction_non_alphanumeric': 0.10596579057154777, 'fraction_numerical': 0.007509386733416771, 'mean_word_length': 5.717086834733894, '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': '1570550', 'n_tokens_mistral': 761, 'n_tokens_neox': 724, 'n_words': 160}