<commit_before><?php

/**
 * Subclass for representing a row from the 'ui_conf' table.
 *
 *
 *
 * @package Core
 * @subpackage model
 */
class uiConf extends BaseuiConf implements ISyncableFile
{
	const UI_CONF_TYPE_GENERIC = 0;
	const UI_CONF_TYPE_WIDGET = 1;
	const UI_CONF_TYPE_CW = 2;
	const UI_CONF_TYPE_EDITOR = 3;
	const UI_CONF_TYPE_ADVANCED_EDITOR = 4;
	const UI_CONF_TYPE_PLAYLIST = 5;			// maybe this is in fact type WIDGET with some flags switched on ?!?
	const UI_CONF_TYPE_KMC_APP_STUDIO = 6;
	const UI_CONF_TYPE_KRECORD = 7;
	const UI_CONF_TYPE_KDP3 = 8;
	const UI_CONF_TYPE_KMC_ACCOUNT = 9;
	const UI_CONF_TYPE_KMC_ANALYTICS = 10;
	const UI_CONF_TYPE_KMC_CONTENT = 11;
	const UI_CONF_TYPE_KMC_DASHBOARD = 12;
	const UI_CONF_TYPE_KMC_LOGIN = 13;
	const UI_CONF_TYPE_SLP = 14;
	const UI_CONF_CLIENTSIDE_ENCODER = 15;
	const UI_CONF_KMC_GENERAL = 16;
	const UI_CONF_KMC_ROLES_AND_PERMISSIONS = 17;
	const UI_CONF_CLIPPER = 18;
	const UI_CONF_TYPE_KSR = 19;
	const UI_CONF_TYPE_KUPLOAD = 20;


	const UI_CONF_CREATION_MODE_MANUAL = 1;
	const UI_CONF_CREATION_MODE_WIZARD = 2;
	const UI_CONF_CREATION_MODE_ADVANCED = 3;

	// status
	const UI_CONF_STATUS_PENDING = 1;
	const UI_CONF_STATUS_READY = 2;
	const UI_CONF_STATUS_DELETED = 3;

	const FILE_NAME_FEATURES = "features";

	const FILE_SYNC_UICONF_SUB_TYPE_DATA = 1;
	const FILE_SYNC_UICONF_SUB_TYPE_FEATURES = 2;


	private static $UI_CONF_OBJ_TYPE_MAP = null;
	private static $REQUIRE_UI_CONF_FILE_FOR_TYPE = null;

	private $should_call_set_data_content = false;
	private $should_call_set_data_content2 = false;
	private $data_content = null;
	private $data_content_2 = null;

	private $swf_url_version = null;

	private static $swf_names = array ( self::UI_CONF_TYPE_WIDGET => "kdp.swf" ,
										self::UI_CONF_TYPE_CW => "ContributionWizard.swf" ,
										self::UI_CONF_TYPE_EDITOR => "simpleeditor.swf" ,
										self::UI_CONF_TYPE_ADVANCED_EDITOR => "KalturaAdvancedVideoEditor.swf" ,
										self::UI_CONF_TYPE_PLAYLIST => "kdp.swf" ,
										self::UI_CONF_TYPE_KMC_APP_STUDIO => "applicationstudio.swf",
										self::UI_CONF_TYPE_KDP3 => "kdp3.swf",
										self::UI_CONF_TYPE_KMC_ACCOUNT => "account.swf",
										self::UI_CONF_TYPE_KMC_ANALYTICS => "ReportsAndAnalytics.swf",
										self::UI_CONF_TYPE_KMC_CONTENT => "content.swf",
										self::UI_CONF_TYPE_KMC_DASHBOARD => "dashboard.swf",
										self::UI_CONF_TYPE_KMC_LOGIN => "login.swf",
										self::UI_CONF_TYPE_SLP => "KalturaPlayer.xap",
										self::UI_CONF_CLIENTSIDE_ENCODER => "KEU_0.8_win.msi",
										self::UI_CONF_KMC_GENERAL => "kmc.swf",
										self::UI_CONF_KMC_ROLES_AND_PERMISSIONS => "",
										self::UI_CONF_CLIPPER => "",
										self::UI_CONF_TYPE_KSR => "ScreencastOMaticRun-1.0.32.jar",
										);

	private static $swf_directory_map = array (
		self::UI_CONF_TYPE_WIDGET => "kdp",
		self::UI_CONF_TYPE_CW => "kcw",
		self::UI_CONF_TYPE_EDITOR => "kse",
		self::UI_CONF_TYPE_ADVANCED_EDITOR => "kae",
		self::UI_CONF_TYPE_PLAYLIST => "kdp",
		self::UI_CONF_TYPE_KMC_APP_STUDIO => "kmc/appstudio",
		self::UI_CONF_TYPE_KDP3 => "kdp3",
		self::UI_CONF_TYPE_KMC_ACCOUNT => "kmc/account",
		self::UI_CONF_TYPE_KMC_ANALYTICS => "kmc/analytics",
		self::UI_CONF_TYPE_KMC_CONTENT => "kmc/content",
		self::UI_CONF_TYPE_KMC_DASHBOARD => "kmc/dashboard",
		self::UI_CONF_TYPE_KMC_LOGIN => "kmc/login",
		self::UI_CONF_TYPE_SLP => "slp",
		self::UI_CONF_CLIENTSIDE_ENCODER => "expressUploader",
		self::UI_CONF_KMC_GENERAL => "kmc",
		self::UI_CONF_KMC_ROLES_AND_PERMISSIONS => "",
		self::UI_CONF_CLIPPER => "kclip",
		self::UI_CONF_TYPE_KSR => "ksr",
	);

	public function save(PropelPDO $con = null, $isClone = false)
	{
		$this->validateConfFilesExistance();

		$res = parent::save( $con );<commit_msg>qnd: added krecord to swf directory map<commit_after><?php

/**
 * Subclass for representing a row from the 'ui_conf' table.
 *
 *
 *
 * @package Core
 * @subpackage model
 */
class uiConf extends BaseuiConf implements ISyncableFile
{
	const UI_CONF_TYPE_GENERIC = 0;
	const UI_CONF_TYPE_WIDGET = 1;
	const UI_CONF_TYPE_CW = 2;
	const UI_CONF_TYPE_EDITOR = 3;
	const UI_CONF_TYPE_ADVANCED_EDITOR = 4;
	const UI_CONF_TYPE_PLAYLIST = 5;			// maybe this is in fact type WIDGET with some flags switched on ?!?
	const UI_CONF_TYPE_KMC_APP_STUDIO = 6;
	const UI_CONF_TYPE_KRECORD = 7;
	const UI_CONF_TYPE_KDP3 = 8;
	const UI_CONF_TYPE_KMC_ACCOUNT = 9;
	const UI_CONF_TYPE_KMC_ANALYTICS = 10;
	const UI_CONF_TYPE_KMC_CONTENT = 11;
	const UI_CONF_TYPE_KMC_DASHBOARD = 12;
	const UI_CONF_TYPE_KMC_LOGIN = 13;
	const UI_CONF_TYPE_SLP = 14;
	const UI_CONF_CLIENTSIDE_ENCODER = 15;
	const UI_CONF_KMC_GENERAL = 16;
	const UI_CONF_KMC_ROLES_AND_PERMISSIONS = 17;
	const UI_CONF_CLIPPER = 18;
	const UI_CONF_TYPE_KSR = 19;
	const UI_CONF_TYPE_KUPLOAD = 20;


	const UI_CONF_CREATION_MODE_MANUAL = 1;
	const UI_CONF_CREATION_MODE_WIZARD = 2;
	const UI_CONF_CREATION_MODE_ADVANCED = 3;

	// status
	const UI_CONF_STATUS_PENDING = 1;
	const UI_CONF_STATUS_READY = 2;
	const UI_CONF_STATUS_DELETED = 3;

	const FILE_NAME_FEATURES = "features";

	const FILE_SYNC_UICONF_SUB_TYPE_DATA = 1;
	const FILE_SYNC_UICONF_SUB_TYPE_FEATURES = 2;


	private static $UI_CONF_OBJ_TYPE_MAP = null;
	private static $REQUIRE_UI_CONF_FILE_FOR_TYPE = null;

	private $should_call_set_data_content = false;
	private $should_call_set_data_content2 = false;
	private $data_content = null;
	private $data_content_2 = null;

	private $swf_url_version = null;

	private static $swf_names = array ( self::UI_CONF_TYPE_WIDGET => "kdp.swf" ,
										self::UI_CONF_TYPE_CW => "ContributionWizard.swf" ,
										self::UI_CONF_TYPE_EDITOR => "simpleeditor.swf" ,
										self::UI_CONF_TYPE_ADVANCED_EDITOR => "KalturaAdvancedVideoEditor.swf" ,
										self::UI_CONF_TYPE_PLAYLIST => "kdp.swf" ,
										self::UI_CONF_TYPE_KMC_APP_STUDIO => "applicationstudio.swf",
										self::UI_CONF_TYPE_KDP3 => "kdp3.swf",
										self::UI_CONF_TYPE_KMC_ACCOUNT => "account.swf",
										self::UI_CONF_TYPE_KMC_ANALYTICS => "ReportsAndAnalytics.swf",
										self::UI_CONF_TYPE_KMC_CONTENT => "content.swf",
										self::UI_CONF_TYPE_KMC_DASHBOARD => "dashboard.swf",
										self::UI_CONF_TYPE_KMC_LOGIN => "login.swf",
										self::UI_CONF_TYPE_SLP => "KalturaPlayer.xap",
										self::UI_CONF_CLIENTSIDE_ENCODER => "KEU_0.8_win.msi",
										self::UI_CONF_KMC_GENERAL => "kmc.swf",
										self::UI_CONF_KMC_ROLES_AND_PERMISSIONS => "",
										self::UI_CONF_CLIPPER => "",
										self::UI_CONF_TYPE_KSR => "ScreencastOMaticRun-1.0.32.jar",
										);

	private static $swf_directory_map = array (
		self::UI_CONF_TYPE_WIDGET => "kdp",
		self::UI_CONF_TYPE_CW => "kcw",
		self::UI_CONF_TYPE_EDITOR => "kse",
		self::UI_CONF_TYPE_ADVANCED_EDITOR => "kae",
		self::UI_CONF_TYPE_PLAYLIST => "kdp",
		self::UI_CONF_TYPE_KMC_APP_STUDIO => "kmc/appstudio",
		self::UI_CONF_TYPE_KDP3 => "kdp3",
		self::UI_CONF_TYPE_KMC_ACCOUNT => "kmc/account",
		self::UI_CONF_TYPE_KMC_ANALYTICS => "kmc/analytics",
		self::UI_CONF_TYPE_KMC_CONTENT => "kmc/content",
		self::UI_CONF_TYPE_KMC_DASHBOARD => "kmc/dashboard",
		self::UI_CONF_TYPE_KMC_LOGIN => "kmc/login",
		self::UI_CONF_TYPE_SLP => "slp",
		self::UI_CONF_CLIENTSIDE_ENCODER => "expressUploader",
		self::UI_CONF_KMC_GENERAL => "kmc",
		self::UI_CONF_KMC_ROLES_AND_PERMISSIONS => "",
		self::UI_CONF_CLIPPER => "kclip",
		self::UI_CONF_TYPE_KSR => "ksr",
		self::UI_CONF_TYPE_KRECORD => 'krecord',
	);

	public function save(PropelPDO $con = null, $isClone = false)
	{
		$this->validateConfFilesExistance();

		$res = parent::save( $con );
{'fraction_non_alphanumeric': 0.11124167645906777, 'fraction_numerical': 0.013839926883405145, 'mean_word_length': 4.776772247360483, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 78, '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': '4119901', 'n_tokens_mistral': 3604, 'n_tokens_neox': 3132, 'n_words': 476}