<commit_before>package com.github.webdriverextensions;

import com.github.webdriverextensions.internal.WebDriverExtensionAnnotations;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import com.github.webdriverextensions.internal.DefaultWebComponentFactory;
import com.github.webdriverextensions.internal.DefaultWebComponentListFactory;
import com.github.webdriverextensions.internal.ReflectionUtils;
import com.github.webdriverextensions.internal.SiteAndPageObjectPool;
import com.github.webdriverextensions.internal.WebComponentFactory;
import com.github.webdriverextensions.internal.WebComponentListFactory;
import com.github.webdriverextensions.internal.WebDriverExtensionElementLocatorFactory;
import org.openqa.selenium.SearchContext;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.DefaultFieldDecorator;
import org.openqa.selenium.support.pagefactory.ElementLocator;

public class WebDriverExtensionFieldDecorator extends DefaultFieldDecorator {

    private WebDriver driver;
    private SiteAndPageObjectPool pool;
    private WebComponentFactory webComponentFactory;
    private WebComponentListFactory webComponentListFactory;

    public WebDriverExtensionFieldDecorator(final WebDriver driver) {
        super(new WebDriverExtensionElementLocatorFactory(driver, driver));
        this.driver = driver;
        this.pool = new SiteAndPageObjectPool(driver);
        this.webComponentFactory = new DefaultWebComponentFactory();
        this.webComponentListFactory = new DefaultWebComponentListFactory(webComponentFactory);
    }

    public WebDriverExtensionFieldDecorator(final SearchContext searchContext, final WebDriver driver) {
        super(new WebDriverExtensionElementLocatorFactory(searchContext, driver));
        this.driver = driver;
        this.pool = new SiteAndPageObjectPool(driver);<commit_msg>Made fields final<commit_after>package com.github.webdriverextensions;

import com.github.webdriverextensions.internal.WebDriverExtensionAnnotations;
import java.lang.reflect.Field;
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.List;
import com.github.webdriverextensions.internal.DefaultWebComponentFactory;
import com.github.webdriverextensions.internal.DefaultWebComponentListFactory;
import com.github.webdriverextensions.internal.ReflectionUtils;
import com.github.webdriverextensions.internal.SiteAndPageObjectPool;
import com.github.webdriverextensions.internal.WebComponentFactory;
import com.github.webdriverextensions.internal.WebComponentListFactory;
import com.github.webdriverextensions.internal.WebDriverExtensionElementLocatorFactory;
import org.openqa.selenium.SearchContext;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.FindBys;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.pagefactory.DefaultFieldDecorator;
import org.openqa.selenium.support.pagefactory.ElementLocator;

public class WebDriverExtensionFieldDecorator extends DefaultFieldDecorator {

    private final WebDriver driver;
    private final SiteAndPageObjectPool pool;
    private final WebComponentFactory webComponentFactory;
    private final WebComponentListFactory webComponentListFactory;

    public WebDriverExtensionFieldDecorator(final WebDriver driver) {
        super(new WebDriverExtensionElementLocatorFactory(driver, driver));
        this.driver = driver;
        this.pool = new SiteAndPageObjectPool(driver);
        this.webComponentFactory = new DefaultWebComponentFactory();
        this.webComponentListFactory = new DefaultWebComponentListFactory(webComponentFactory);
    }

    public WebDriverExtensionFieldDecorator(final SearchContext searchContext, final WebDriver driver) {
        super(new WebDriverExtensionElementLocatorFactory(searchContext, driver));
        this.driver = driver;
        this.pool = new SiteAndPageObjectPool(driver);
{'fraction_non_alphanumeric': 0.07079231129864041, 'fraction_numerical': 0.0, 'mean_word_length': 6.525573192239859, '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': '6349696', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1134, 'n_words': 189}