<commit_before>package org.javasimon;

import org.javasimon.utils.SimonUtils;

import java.util.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * EnabledManager implements methods called from SimonManager when the manager is enabled.
 *
 * @author <a href="mailto:<EMAIL>"><NAME>" Richter</a>
 * @created Aug 16, 2008
 */
public final class EnabledManager implements Manager {
	private final Map<String, AbstractSimon> allSimons = new HashMap<String, AbstractSimon>();

	private UnknownSimon rootSimon;

	private Callback callback = new CallbackSkeleton();

	private ManagerConfiguration configuration;

	/**
	 * Crea;tes new enabled manager.
	 */
	public EnabledManager() {
		rootSimon = new UnknownSimon(ROOT_SIMON_NAME, this);
		allSimons.put(ROOT_SIMON_NAME, rootSimon);
		configuration = new ManagerConfiguration(this);
	}

	/**
	 * {@inheritDoc}
	 */
	public Simon getSimon(String name) {
		return allSimons.get(name);
	}

	/**
	 * {@inheritDoc}<commit_msg>javadoc refresh<commit_after>package org.javasimon;

import org.javasimon.utils.SimonUtils;

import java.util.*;
import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;

/**
 * EnabledManager implements methods called from SimonManager when the manager is enabled.
 *
 * @author <a href="mailto:<EMAIL>"><NAME>" Richter</a>
 * @created Aug 16, 2008
 */
public final class EnabledManager implements Manager {
	private final Map<String, AbstractSimon> allSimons = new HashMap<String, AbstractSimon>();

	private UnknownSimon rootSimon;

	private Callback callback = new CallbackSkeleton();

	private ManagerConfiguration configuration;

	/**
	 * Creates new enabled manager.
	 */
	public EnabledManager() {
		rootSimon = new UnknownSimon(ROOT_SIMON_NAME, this);
		allSimons.put(ROOT_SIMON_NAME, rootSimon);
		configuration = new ManagerConfiguration(this);
	}

	/**
	 * {@inheritDoc}
	 */
	public Simon getSimon(String name) {
		return allSimons.get(name);
	}

	/**
	 * {@inheritDoc}
{'fraction_non_alphanumeric': 0.11286347954657466, 'fraction_numerical': 0.005914243469689502, 'mean_word_length': 5.077844311377246, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 15, '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': '2390277', 'n_tokens_mistral': 655, 'n_tokens_neox': 582, 'n_words': 154}