<commit_before><?php

namespace hipanel\modules\server\assets\combo2;

use hipanel\widgets\Combo2Config;
use yii\helpers\ArrayHelper;

/**
 * Class Server
 */
class Server extends Combo2Config
{
    /** @inheritdoc */
    public $type = 'server';

    /** @inheritdoc */
    public $_primaryFilter = 'name_like';

    /** @inheritdoc */
    public $url = '/server/server/search';

    /** @inheritdoc */
    public $_return = ['id', 'client', 'client_id', 'seller', 'seller_id'];

    /** @inheritdoc */
    public $_rename = ['text' => 'name'];

    /** @inheritdoc */
    public $_filter = ['client' => 'client'];

    /** @inheritdoc */
    function getConfig ($config = []) {
        $config = ArrayHelper::merge([
            'clearWhen' => ['client'],
            'affects'   => [
                'client' => 'client',
                'seller' => 'seller'
            ]
        ], $config);

        return parent::getConfig($config);
    }
}<commit_msg> Changes in Combo2 configs to suite new scheme<commit_after><?php

namespace hipanel\modules\server\assets\combo2;

use hipanel\widgets\Combo2Config;
use yii\helpers\ArrayHelper;

/**
 * Class Server
 */
class Server extends Combo2Config
{
    /** @inheritdoc */
    public $type = 'server/server';

    /** @inheritdoc */
    public $name = 'name';

    /** @inheritdoc */
    public $url = '/server/server/search';

    /** @inheritdoc */
    public $_return = ['id', 'client', 'client_id', 'seller', 'seller_id'];

    /** @inheritdoc */
    public $_rename = ['text' => 'name'];

    /** @inheritdoc */
    public $_filter = ['client' => 'client/client'];

    /** @inheritdoc */
    function getConfig($config = [])
    {
        $config = ArrayHelper::merge([
            'clearWhen' => ['client'],
            'affects'   => [
                'client/seller' => 'seller',
                'client/client' => 'client',
                'seller'        => 'seller',
            ]
        ], $config);

        return parent::getConfig($config);
    }
}
{'fraction_non_alphanumeric': 0.1826302729528536, 'fraction_numerical': 0.0034739454094292804, 'mean_word_length': 2.2411575562700965, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 16, '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': '4505639', 'n_tokens_mistral': 625, 'n_tokens_neox': 612, 'n_words': 127}