<commit_before><?php

namespace Elixir\Helper;

use Elixir\DI\ContainerInterface;
use Elixir\Helper\ContextInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class HelperManager
{
    /**
     * @var mixed
     */
    protected $context;
    
    /**
     * @var ContainerInterface
     */
    protected $container;
    
    /**
     * @var array 
     */
    protected $aliases = [];
    
    /**
     * @param ContainerInterface $container
     * @param mixed $context
     */
    public function __construct(ContainerInterface $container, $context = null) 
    {
        $this->container = $container;
        $this->context = $context;
        
        foreach ($this->aliases as $alias => $original)
        {
            $this->container->addAlias($original, $alias);
        }
    }
    
    /**
     * @return ContainerInterface
     */
    public function getContainer()
    {
        return $this->container;
    }
    
    /**
     * @param mixed $context
     */
    public function setContext($context)
    {<commit_msg>work in progress<commit_after><?php

namespace Elixir\Helper;

use Elixir\DI\ContainerInterface;
use Elixir\Helper\ContextInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class HelperManager
{
    /**
     * @var mixed
     */
    protected $context;
    
    /**
     * @var ContainerInterface
     */
    protected $container;
    
    /**
     * @var array 
     */
    protected $aliases = [];
    
    /**
     * @param ContainerInterface $container
     * @param mixed $context
     * @param array $aliases
     */
    public function __construct(ContainerInterface $container, $context = null, array $aliases = []) 
    {
        $this->container = $container;
        $this->context = $context;
        $this->aliases += $aliases;
        
        foreach ($this->aliases as $alias => $original)
        {
            $this->container->addAlias($original, $alias);
        }
    }
    
    /**
     * @return ContainerInterface
     */
    public function getContainer()
    {
        return $this->container;
    }
    
    /**
     * @param mixed $context
     */
    public function setContext($context)
    {
{'fraction_non_alphanumeric': 0.13448115402512797, 'fraction_numerical': 0.0, 'mean_word_length': 1.921195652173913, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 24, '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': '1420291', 'n_tokens_mistral': 625, 'n_tokens_neox': 622, 'n_words': 129}