<commit_before>package org.jboss.reddeer.swt.condition;

import org.jboss.reddeer.common.condition.WaitCondition;
import org.jboss.reddeer.swt.api.Browser;

/**
 * Condition is met when page is fully loaded in a {@link Browser}.
 * 
 * @author <NAME>
 *
 */
public class PageIsLoaded implements WaitCondition {

	private Browser browser;

	/**
	 * Constructs PageIsLoaded wait condition. Condition is met when 
	 * page is loaded in specified browser. 
	 * 
	 * @param browser browser where to test page availability status (loaded or not)
	 */
	public PageIsLoaded(Browser browser) {
		this.browser = browser;
	}

	@Override
	public boolean test() {
		return browser.isPageLoaded();
	}

	@Override
	public String description() {
		return "page '" + browser.getURL() + "' is loaded to browser";
	}

}<commit_msg>Recursion browser issue caused by extended logging fixed (fixes #1232)<commit_after>package org.jboss.reddeer.swt.condition;

import org.jboss.reddeer.common.condition.WaitCondition;
import org.jboss.reddeer.swt.api.Browser;

/**
 * Condition is met when page is fully loaded in a {@link Browser}.
 * 
 * @author <NAME>
 *
 */
public class PageIsLoaded implements WaitCondition {

	private Browser browser;

	/**
	 * Constructs PageIsLoaded wait condition. Condition is met when 
	 * page is loaded in specified browser. 
	 * 
	 * @param browser browser where to test page availability status (loaded or not)
	 */
	public PageIsLoaded(Browser browser) {
		this.browser = browser;
	}

	@Override
	public boolean test() {
		return browser.isPageLoaded();
	}

	@Override
	public String description() {
		return "page is loaded to browser";
	}

}
{'fraction_non_alphanumeric': 0.1003627569528416, 'fraction_numerical': 0.0024183796856106408, 'mean_word_length': 3.925595238095238, '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': '7253571', 'n_tokens_mistral': 524, 'n_tokens_neox': 477, 'n_words': 160}