<commit_before><commit_msg>SUP-30171 deploy flavor params conversionEnginesExtraParams by deployment/base/scripts/init_data/04.flavorParams.ini<commit_after><?php
/**
 * @package deployment
 */
require_once (__DIR__ . '/../../bootstrap.php');

$filePath = realpath(dirname(__FILE__) . '/../../../') . '/deployment/base/scripts/init_data/04.flavorParams.ini';

$fileName = basename($filePath);
KalturaLog::info("Handling file [$fileName]");
$objectConfigurations = parse_ini_file($filePath, true);

foreach($objectConfigurations as $ini_item)
{
    $id = $ini_item['id'];

    $c = new Criteria();
    $c->addAnd(assetParamsPeer::ID, $id);
    $assetParams = assetParamsPeer::doSelect($c);

    foreach ($assetParams as $assetParam)
    {
        if(isset($ini_item['conversionEnginesExtraParams']))
        {
            KalturaLog::info("Updating id [{$assetParam->getId()}] of partenr [{$assetParam->getPartnerId()}]");
            $assetParam->setConversionEnginesExtraParams($ini_item['conversionEnginesExtraParams']);
            $assetParam->save();
        }
    }
}
{'fraction_non_alphanumeric': 0.1724137931034483, 'fraction_numerical': 0.008387698042870456, 'mean_word_length': 4.264705882352941, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 8, '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': '2559268', 'n_tokens_mistral': 337, 'n_tokens_neox': 331, 'n_words': 48}