<commit_before>package com.thoughtworks.gauge.example.pages;

import org.junit.Assert;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;

public class ProductListPage extends BasePage{
    public static String ProductsUrl = Url.concat("products/");
    
    public WebElement q_title;
    
    public WebElement q_submit;

    @FindBy(how = How.CSS, css = "#main_content table tbody tr:nth-child(1) td.product a")
    public WebElement firstProduct;
    
    public void search(String name) {
        q_title.sendKeys(name);
        q_submit.click();
    }

    public void openFirstProduct() {
        firstProduct.click();
    }
}
<commit_msg>rk|refactored url to also use the user interface<commit_after>package com.thoughtworks.gauge.example.pages;

import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.How;

public class ProductListPage extends ProductPage{
    public static String ProductsUrl = Url.concat("admin/products/");
    
    public WebElement q_title;
    
    public WebElement q_submit;

    @FindBy(how = How.CSS, css = "#main_content table tbody tr:nth-child(1) td.product a")
    public WebElement firstProduct;
    
    public void search(String name) {
        q_title.sendKeys(name);
        q_submit.click();
    }

    public void openFirstProduct() {
        firstProduct.click();
    }
}

{'fraction_non_alphanumeric': 0.09979353062629043, 'fraction_numerical': 0.0013764624913971094, 'mean_word_length': 3.473846153846154, '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': '7591484', 'n_tokens_mistral': 459, 'n_tokens_neox': 443, 'n_words': 101}