<commit_before>package ru.agentlab.maia.context

import org.osgi.framework.BundleContext

/**
 * <p>Factory for creating Contexts.</p>
 * <p>Contexts represent platform, container, agent and behaviour objects. Context 
 * can contain layer-specific services for injection.</p> 
 * 
 * @author <a href='<EMAIL>'><NAME></a> - Initial contribution.
 */
interface IMaiaContextFactory {

	/**
	 * Create Context with default set of services. Set of services depends of
	 * implementation
	 * @param root - parent context where platform will be created
	 * @param id - unique id of context. If <code>null</code>, then some implementation of 
	 * {@link INameGenerator INameGenerator} will be used for 
	 * generating context name.
	 * @return Context with default set of services
	 */
	def IMaiaContext createContext(String name)

	/**
	 * Create Context without any additional services
	 * @param root - parent context where platform will be created
	 * @param id - unique id of context. If <code>null</code>, then some implementation of 
	 * {@link INameGenerator INameGenerator} will be used for 
	 * generating context name.
	 * @return Context without any additional services
	 */
	def IMaiaContext createChild(IMaiaContext parent, String name)
	
	@Deprecated
	def IMaiaContext createOsgiContext(BundleContext bundleContext)

}<commit_msg>* refactor comment<commit_after>package ru.agentlab.maia.context

import org.osgi.framework.BundleContext

/**
 * <p>Factory for creating Contexts.</p>
 * <p>Contexts represent platform, container, agent and behaviour objects. Context 
 * can contain layer-specific services for injection.</p> 
 * 
 * @author <a href='<EMAIL>'><NAME></a> - Initial contribution.
 */
interface IMaiaContextFactory {

	/**
	 * Create Context with default set of services. Set of services depends of
	 * implementation
	 * @param root - parent context where platform will be created
	 * @param id - unique id of context. If <code>null</code>, then some implementation of 
	 * {@link INameGenerator INameGenerator} will be used for 
	 * generating context name.
	 * @return Context with default set of services
	 */
	def IMaiaContext createContext(String name)

	/**
	 * Create Context without any additional services
	 * @param parent - parent context where platform will be created
	 * @param name - unique id of context. If <code>null</code>, then some implementation of 
	 * {@link INameGenerator INameGenerator} will be used for 
	 * generating context name.
	 * @return Context without any additional services
	 */
	def IMaiaContext createChild(IMaiaContext parent, String name)
	
	@Deprecated
	def IMaiaContext createOsgiContext(BundleContext bundleContext)

}
{'fraction_non_alphanumeric': 0.08677839851024209, 'fraction_numerical': 0.0, 'mean_word_length': 4.195357833655706, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '7325191', 'n_tokens_mistral': 730, 'n_tokens_neox': 672, 'n_words': 280}