<commit_before>/*
 * $Log: HasStatistics.java,v $
 * Revision 1.2  2008-08-27 16:23:24  europe\L190409
 * added reset option to statisticsdump
 *
 * Revision 1.1  2008/05/14 09:29:33  <NAME> <<EMAIL>>
 * introduction of interface HasStatistics
 *
 */
package nl.nn.adapterframework.util;

/**
 * Interface to be implemented by objects like Pipes or Senders that maintain additional statistics themselves.
 * 
 * @author  <NAME>
 * @since   4.9
 * @version Id
 */
public interface HasStatistics {
	public void iterateOverStatistics(StatisticsKeeperIterationHandler hski, Object data, boolean reset);<commit_msg>added action codes<commit_after>/*
 * $Log: HasStatistics.java,v $
 * Revision 1.3  2008-09-04 12:17:53  europe\L190409
 * added action codes
 *
 * Revision 1.2  2008/08/27 16:23:24  <NAME> <<EMAIL>>
 * added reset option to statisticsdump
 *
 * Revision 1.1  2008/05/14 09:29:33  <NAME> <<EMAIL>>
 * introduction of interface HasStatistics
 *
 */
package nl.nn.adapterframework.util;

/**
 * Interface to be implemented by objects like Pipes or Senders that maintain additional statistics themselves.
 * 
 * @author  <NAME>
 * @since   4.9
 * @version Id
 */
public interface HasStatistics {

	public static final int STATISTICS_ACTION_NONE=0;
	public static final int STATISTICS_ACTION_RESET=1;
	public static final int STATISTICS_ACTION_MARK=2;

	public void iterateOverStatistics(StatisticsKeeperIterationHandler hski, Object data, int action);
{'fraction_non_alphanumeric': 0.10013717421124829, 'fraction_numerical': 0.06790123456790123, 'mean_word_length': 4.3837638376383765, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '6342787', 'n_tokens_mistral': 512, 'n_tokens_neox': 447, 'n_words': 139}