<commit_before>package junium.selenium;

import junium.exceptions.PageObjectNotFoundException;
import junium.exceptions.UnexpectedValueException;
import junium.selenium.enums.Browser;
import junium.utils.FileByCreationTimeComparator;
import junium.utils.PathsHelper;
import junium.utils.SystemHelper;
import junium.utils.UrlHelper;

import org.apache.commons.io.FileUtils;

import org.junit.After;
import org.junit.Before;

import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import java.nio.file.Path;
import java.nio.file.Paths;

import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;

public class SeleniumBase {
    protected WebDriver Driver;
    protected WebDriverWait SmallWait;
    protected WebDriverWait Wait;
    protected WebDriverWait LongWait;

    protected SettingsBase Settings;
    protected UrlHelper SiteUrl;
    protected Boolean IsFailed;
    protected Browser Browser;

    protected DesiredCapabilities FirefoxCapabilities;
    protected FirefoxProfile FirefoxDriverProfile;
    protected FirefoxBinary FirefoxDriverBinary;

    protected DesiredCapabilities ChromeCapabilities;
    protected ChromeDriverService ChromeService;

    protected DesiredCapabilities IECapabilities;
    protected InternetExplorerDriverService IEService;
    public SeleniumBase() {
        Settings = new SettingsBase();
        SiteUrl = new UrlHelper(Settings.MainUrl);
        IsFailed = true;

        try {
            Browser = Browser.valueOf(System.getProperty("browser"));
        } catch(NullPointerException excp) {
            Browser = Browser.Firefox;
        } catch (IllegalArgumentException excp){
            Browser = Browser.Firefox;
        }
    }

//    @BeforeClass
//    public static void TestFixtureSetUp(){
//        Class<? extends SeleniumBase> thisClass = this.getClass();
//        System.out.print(thisClass.getAnnotation(TestCaseInfo.class).Description());
//    }<commit_msg>Regular commit.<commit_after>package junium.selenium;

import junium.exceptions.PageObjectNotFoundException;
import junium.exceptions.UnexpectedValueException;
import junium.selenium.enums.Browser;
import junium.utils.FileByCreationTimeComparator;
import junium.utils.PathsHelper;
import junium.utils.SystemHelper;
import junium.utils.UrlHelper;

import org.apache.commons.io.FileUtils;

import org.junit.After;
import org.junit.Before;

import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeDriverService;
import org.openqa.selenium.firefox.FirefoxBinary;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.firefox.FirefoxProfile;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.ie.InternetExplorerDriverService;
import org.openqa.selenium.remote.DesiredCapabilities;
import org.openqa.selenium.support.ui.WebDriverWait;

import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;

import java.nio.file.Path;
import java.nio.file.Paths;

import java.util.Arrays;
import java.util.Date;
import java.util.HashMap;

public class SeleniumBase {
    protected WebDriver Driver;
    protected WebDriverWait SmallWait;
    protected WebDriverWait Wait;
    protected WebDriverWait LongWait;

    protected SettingsBase Settings;
    protected UrlHelper SiteUrl;
    protected Boolean IsFailed;
    protected Browser Browser;

    protected DesiredCapabilities FirefoxCapabilities;
    protected FirefoxProfile FirefoxDriverProfile;
    protected FirefoxBinary FirefoxDriverBinary;

    protected DesiredCapabilities ChromeCapabilities;
    protected ChromeDriverService ChromeService;

    protected DesiredCapabilities IECapabilities;
    protected InternetExplorerDriverService IEService;

    public SeleniumBase() {
        Settings = new SettingsBase();
        SiteUrl = new UrlHelper(Settings.MainUrl);
        IsFailed = true;

        try {
            Browser = Browser.valueOf(System.getProperty("browser"));
        } catch(NullPointerException excp) {
            Browser = Browser.Firefox;
        } catch (IllegalArgumentException excp){
            Browser = Browser.Firefox;
        }
    }

//    @BeforeClass
//    public static void TestFixtureSetUp(){
//        Class<? extends SeleniumBase> thisClass = this.getClass();
//        System.out.print(thisClass.getAnnotation(TestCaseInfo.class).Description());
//    }
{'fraction_non_alphanumeric': 0.08344680023341762, 'fraction_numerical': 0.0, 'mean_word_length': 4.45859872611465, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5387621', 'n_tokens_mistral': 1502, 'n_tokens_neox': 1422, 'n_words': 287}