<commit_before>package org.owasp.appsensor.reporting;

import java.util.Collection;

import org.owasp.appsensor.Attack;
import org.owasp.appsensor.Event;
import org.owasp.appsensor.Response;
import org.owasp.appsensor.exceptions.NotAuthorizedException;
import org.owasp.appsensor.listener.AttackListener;
import org.owasp.appsensor.listener.EventListener;
import org.owasp.appsensor.listener.ResponseListener;

/**
 * A reporting engine is an implementation of the observer pattern. 
 * 
 * In this case the reporting engines watch the *Store interfaces of AppSensor.
 * 
 * The reporting engines are meant to provide simple access to get notified 
 * when the different components are added to the *Store's for reporting.
 * 
 * @see java.util.Observer
 *
 * @author <NAME> (<EMAIL>) http://www.jtmelton.com/
 */
public interface ReportingEngine extends EventListener, AttackListener, ResponseListener {

	public Collection<Event> findEvents(Long earliest) throws NotAuthorizedException;
	
	public Collection<Attack> findAttacks(Long earliest) throws NotAuthorizedException;
	
	public Collection<Response> findResponses(Long earliest) throws NotAuthorizedException;
	
}<commit_msg>updating javadoc<commit_after>package org.owasp.appsensor.reporting;

import java.util.Collection;

import org.owasp.appsensor.Attack;
import org.owasp.appsensor.Event;
import org.owasp.appsensor.Response;
import org.owasp.appsensor.exceptions.NotAuthorizedException;
import org.owasp.appsensor.listener.AttackListener;
import org.owasp.appsensor.listener.EventListener;
import org.owasp.appsensor.listener.ResponseListener;

/**
 * A reporting engine is an implementation of the observer pattern and 
 * extends the *Listener interfaces. 
 * 
 * In this case the reporting engines watch the *Store interfaces of AppSensor.
 * 
 * The reporting engines are meant to provide simple access to get notified 
 * when the different components are added to the *Store's for reporting.
 * 
 * @author <NAME> (<EMAIL>) http://www.jtmelton.com/
 */
public interface ReportingEngine extends EventListener, AttackListener, ResponseListener {

	public Collection<Event> findEvents(Long earliest) throws NotAuthorizedException;
	
	public Collection<Attack> findAttacks(Long earliest) throws NotAuthorizedException;
	
	public Collection<Response> findResponses(Long earliest) throws NotAuthorizedException;
	
}
{'fraction_non_alphanumeric': 0.08116063919259882, 'fraction_numerical': 0.0, 'mean_word_length': 5.645251396648045, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '4335997', 'n_tokens_mistral': 665, 'n_tokens_neox': 623, 'n_words': 192}