<commit_before><?php

namespace hipanel\modules\finance\grid\presenters\price;

use hipanel\modules\finance\models\CertificatePrice;
use hipanel\modules\finance\models\DomainServicePrice;
use hipanel\modules\finance\models\DomainZonePrice;
use hipanel\modules\finance\models\TemplatePrice;
use hipanel\modules\finance\models\Price;
use yii\base\InvalidConfigException;
use yii\di\Container;

/**
 * Class PricePresenterFactory
 *
 * @author <NAME> <<EMAIL>>
 */
class PricePresenterFactory
{
    /**
     * @var array map of model class to its presenter
     */
    protected $map = [
        Price::class => PricePresenter::class,
        TemplatePrice::class => TemplatePricePresenter::class,
        CertificatePrice::class => CertificatePricePresenter::class,
        '*' => PricePresenter::class,
    ];

    /**
     * @var array
     */
    protected $cache = [];
    /**
     * @var Container
     */
    private $container;

    public function __construct(Container $container)
    {
        $this->container = $container;<commit_msg>Use PSR ContainerInterface as dependency<commit_after><?php

namespace hipanel\modules\finance\grid\presenters\price;

use hipanel\modules\finance\models\CertificatePrice;
use hipanel\modules\finance\models\DomainServicePrice;
use hipanel\modules\finance\models\DomainZonePrice;
use hipanel\modules\finance\models\TemplatePrice;
use hipanel\modules\finance\models\Price;
use Psr\Container\ContainerInterface;
use yii\base\InvalidConfigException;

/**
 * Class PricePresenterFactory
 *
 * @author <NAME> <<EMAIL>>
 */
class PricePresenterFactory
{
    /**
     * @var array map of model class to its presenter
     */
    protected $map = [
        Price::class => PricePresenter::class,
        TemplatePrice::class => TemplatePricePresenter::class,
        CertificatePrice::class => CertificatePricePresenter::class,
        '*' => PricePresenter::class,
    ];

    /**
     * @var array
     */
    protected $cache = [];
    /**
     * @var ContainerInterface
     */
    private $container;

    public function __construct(ContainerInterface $container)
    {
        $this->container = $container;
{'fraction_non_alphanumeric': 0.1209865053513262, 'fraction_numerical': 0.0, 'mean_word_length': 3.526315789473684, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 19, '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': '3013222', 'n_tokens_mistral': 618, 'n_tokens_neox': 622, 'n_words': 115}