<commit_before><?php

namespace directapi\services\dictionaries;

use directapi\services\BaseService;
use directapi\components\Model;
use directapi\services\dictionaries\models\CurrenciesItemGet;
use directapi\services\dictionaries\models\DictionaryGetItem;
use directapi\services\dictionaries\models\MetroStationItemGet;
use directapi\services\dictionaries\models\GeoRegionItemGet;
use directapi\services\dictionaries\models\TimeZoneItemGet;
use directapi\services\dictionaries\models\ConstantItemGet;
use directapi\services\dictionaries\models\AdCategoryItemGet;
use directapi\services\dictionaries\models\OperationSystemVersionItemGet;
use directapi\services\dictionaries\models\SupplySidePlatformItemGet;
use directapi\services\dictionaries\models\InterestItemGet;
use directapi\services\dictionaries\models\AudienceCriteriaTypeItemGet;
use directapi\services\dictionaries\models\AudienceDemographicProfileItemGet;
use directapi\services\dictionaries\models\AudienceInterestItemGet;

class DictionariesService extends BaseService
{
    /**
     * @param DictionariesFieldEnum[] $DictionaryNames
     *
     * @return models\CurrencyItemGet[]
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @throws \directapi\exceptions\DirectAccountNotExistException
     * @throws \directapi\exceptions\DirectApiException
     * @throws \directapi\exceptions\DirectApiNotEnoughUnitsException
     * @throws \directapi\exceptions\RequestValidationException
     */
    public function get($DictionaryName): array {
        $params = [
            'DictionaryNames' => array($DictionaryName),
        ];

        $class = "\directapi\services\dictionaries\models\\" . $DictionaryName . 'ItemGet';

        return parent::doGet($params, $DictionaryName, $class);
    }

    /**
     * @param array $entities
     * @return array
     * @throws \ErrorException
     */
    public function toUpdateEntities(array $entities): array
    {
      throw new \ErrorException('Not implemented');
    }

    protected function getName(): string
    {
        return 'dictionaries';
    }
}<commit_msg>Fix typehints<commit_after><?php

namespace directapi\services\dictionaries;

use directapi\services\BaseService;
use directapi\services\dictionaries\enum\DictionariesFieldEnum;
use directapi\services\dictionaries\models\DictionaryGetItem;
use directapi\services\dictionaries\models\MetroStationItemGet;
use directapi\services\dictionaries\models\GeoRegionItemGet;
use directapi\services\dictionaries\models\TimeZoneItemGet;
use directapi\services\dictionaries\models\ConstantItemGet;
use directapi\services\dictionaries\models\AdCategoryItemGet;
use directapi\services\dictionaries\models\OperationSystemVersionItemGet;
use directapi\services\dictionaries\models\SupplySidePlatformItemGet;
use directapi\services\dictionaries\models\InterestItemGet;
use directapi\services\dictionaries\models\AudienceCriteriaTypeItemGet;
use directapi\services\dictionaries\models\AudienceDemographicProfileItemGet;
use directapi\services\dictionaries\models\AudienceInterestItemGet;

class DictionariesService extends BaseService
{
    /**
     * @param DictionariesFieldEnum $DictionaryName
     *
     * @return array
     * @throws \GuzzleHttp\Exception\GuzzleException
     * @throws \directapi\exceptions\DirectAccountNotExistException
     * @throws \directapi\exceptions\DirectApiException
     * @throws \directapi\exceptions\DirectApiNotEnoughUnitsException
     * @throws \directapi\exceptions\RequestValidationException
     * @throws \JsonMapper_Exception
     */
    public function get(DictionariesFieldEnum $DictionaryName): array {
        $params = [
            'DictionaryNames' => array($DictionaryName),
        ];

        $class = "\directapi\services\dictionaries\models\\" . $DictionaryName . 'ItemGet';

        return parent::doGet($params, $DictionaryName, $class);
    }

    /**
     * @param array $entities
     * @return array
     * @throws \ErrorException
     */
    public function toUpdateEntities(array $entities): array
    {
      throw new \ErrorException('Not implemented');
    }

    protected function getName(): string
    {
        return 'dictionaries';
    }
}

{'fraction_non_alphanumeric': 0.09436215957955088, 'fraction_numerical': 0.0, 'mean_word_length': 4.50921052631579, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '2361701', 'n_tokens_mistral': 1136, 'n_tokens_neox': 1122, 'n_words': 180}