<commit_before>/*
 * $Id$
 * $Author$
 *
 * This file is part of the MoSKito software project
 * that is hosted at http://moskito.java.net.
 * 
 * Copyright (c) 2006 by MoSKito Project
 *
 * All MoSKito files are under MIT License: 
 * http://www.opensource.org/licenses/mit-license.php
 */
package net.anotheria.moskito.core.stats.impl;

import net.anotheria.moskito.core.stats.IIntervalListener;
import net.anotheria.moskito.core.stats.Interval;
import net.anotheria.moskito.core.timing.IUpdateable;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicLong;

/**
 * This class implements an Inveral with a name and an unique id that is furthermore a 
 * registry for primary and secondary update listeners. 
 * On calling the update() method it will notify the primary listener first 
 * and afterwards the secondary listeners.    
 * 
 * @author lrosenberg
 */
class IntervalImpl implements IUpdateable, Interval {
	
	/**
	 * This is the human readable name of this Interval. 
	 */<commit_msg>typo in javadoc<commit_after>/*
 * $Id$
 * $Author$
 *
 * This file is part of the MoSKito software project
 * that is hosted at http://moskito.java.net.
 * 
 * Copyright (c) 2006 by MoSKito Project
 *
 * All MoSKito files are under MIT License: 
 * http://www.opensource.org/licenses/mit-license.php
 */
package net.anotheria.moskito.core.stats.impl;

import net.anotheria.moskito.core.stats.IIntervalListener;
import net.anotheria.moskito.core.stats.Interval;
import net.anotheria.moskito.core.timing.IUpdateable;

import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.atomic.AtomicLong;

/**
 * This class implements an Interval with a name and an unique id that is furthermore a
 * registry for primary and secondary update listeners. 
 * On calling the update() method it will notify the primary listener first 
 * and afterwards the secondary listeners.    
 * 
 * @author lrosenberg
 */
class IntervalImpl implements IUpdateable, Interval {
	
	/**
	 * This is the human readable name of this Interval. 
	 */
{'fraction_non_alphanumeric': 0.09433962264150944, 'fraction_numerical': 0.0037735849056603774, 'mean_word_length': 3.955607476635514, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '2896622', 'n_tokens_mistral': 663, 'n_tokens_neox': 625, 'n_words': 204}