<commit_before><?php
require_once(dirname(__FILE__).'/../../bootstrap.php');

KalturaLog::setLogger(new KalturaStdoutLogger());

class migrationEntry extends entry
{
	public function setId($v)
	{
		if(!$this->getId())
			parent::setId($v);
	}
}

$dbPlaylist = new migrationEntry();
$dbPlaylist->setId('_KDP_RE_PL');
$dbPlaylist->setPartnerId(0);
$dbPlaylist->setStatus ( entryStatus::READY );
$dbPlaylist->setKshowId ( null );
$dbPlaylist->setType ( entryType::PLAYLIST );
$dbPlaylist->setDataContent('<?xml version="1.0"?><playlist><total_results>12</total_results><filters><filter><in_status>2,1</in_status><in_type>1,2,7</in_type><in_moderation_status>2,5,6,1</in_moderation_status><order_by>-plays</order_by><limit>12</limit></filter></filters></playlist>');
$dbPlaylist->setDisplayInSearch ( 2 );
$dbPlaylist->save();
<commit_msg>fwr: related default playlist<commit_after><?php
require_once(dirname(__FILE__).'/../../bootstrap.php');

KalturaLog::setLogger(new KalturaStdoutLogger());

class migrationEntry extends entry
{
	public function setId($v)
	{
		if(!$this->getId())
			parent::setId($v);
	}
}

$dbPlaylist = new migrationEntry();
$dbPlaylist->setId('_KDP_RE_PL');
$dbPlaylist->setPartnerId(0);
$dbPlaylist->setStatus ( entryStatus::READY );
$dbPlaylist->setKshowId ( null );
$dbPlaylist->setType ( entryType::PLAYLIST );
$dbPlaylist->setMediaType(entry::ENTRY_MEDIA_TYPE_XML);
$dbPlaylist->setDataContent('<?xml version="1.0"?><playlist><total_results>12</total_results><filters><filter><in_status>2,1</in_status><in_type>1,2,7</in_type><in_moderation_status>2,5,6,1</in_moderation_status><order_by>-plays</order_by><limit>12</limit></filter></filters></playlist>');
$dbPlaylist->setDisplayInSearch ( 2 );
$dbPlaylist->save();

{'fraction_non_alphanumeric': 0.20034443168771526, 'fraction_numerical': 0.01951779563719862, 'mean_word_length': 9.25294117647059, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 2, '>': 60, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, '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': '2400091', 'n_tokens_mistral': 652, 'n_tokens_neox': 633, 'n_words': 62}