<commit_before>package org.se.lab.pages;


import org.openqa.selenium.*;

public class AdminPortalPage extends PageObject {

	public AdminPortalPage(WebDriver driver) {
		super(driver);
	}

	public String getPendingCommunities() {
		return driver.findElement(By.id("j_idt26:j_idt27")).getText();
	}

	public String getApprovedCommunities() {
		return driver.findElement(By.id("j_idt36:j_idt37")).getText();
	}

	public String getFirstPendingCommunityName() {
		return driver.findElement(By.xpath("//*[@id=\"j_idt26:j_idt27\"]/tbody/tr[1]/td[3]")).getText();
	}
	public String getLastPendingCommunityName() {
		return driver.findElement(By.xpath("//*[@id=\"j_idt26:j_idt27\"]/tbody/tr[" + String.valueOf(getPendingCommunityTableRowIndex()) + "]/td[3]")).getText();
	}<commit_msg>changes get pending and approved coms by cssSelector<commit_after>package org.se.lab.pages;


import org.openqa.selenium.*;

public class AdminPortalPage extends PageObject {

	public AdminPortalPage(WebDriver driver) {
		super(driver);
	}

	public String getPendingCommunities() {
		return driver.findElement(By.cssSelector("div[class='panel panel-warning'")).getText();
	}

	public String getApprovedCommunities() {
		return driver.findElement(By.cssSelector("div[class='panel panel-success'")).getText();
		//return driver.findElement(By.id("j_idt36:j_idt37")).getText();
	}

	public String getFirstPendingCommunityName() {
		return driver.findElement(By.xpath("//*[@id=\"j_idt26:j_idt27\"]/tbody/tr[1]/td[3]")).getText();
	}
	public String getLastPendingCommunityName() {
		return driver.findElement(By.xpath("//*[@id=\"j_idt26:j_idt27\"]/tbody/tr[" + String.valueOf(getPendingCommunityTableRowIndex()) + "]/td[3]")).getText();
	}
{'fraction_non_alphanumeric': 0.16880841121495327, 'fraction_numerical': 0.01985981308411215, 'mean_word_length': 6.2893617021276595, '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': '2269536', 'n_tokens_mistral': 635, 'n_tokens_neox': 594, 'n_words': 81}