<commit_before><?php
/**
 * Used to ingest media that is already ingested to Kaltura system as a different file in the past, the new created flavor asset will be ready immediately using a file sync of link type that will point to the existing file sync.
 *
 * @package Core
 * @subpackage model.data
 */
class kFileSyncResource extends kContentResource 
{
	/**
	 * The object type of the file sync object 
	 * @var int
	 */
	public $fileSyncObjectType;
	
	/**
	 * The object sub-type of the file sync object 
	 * @var int
	 */
	public $objectSubType;
	
	/**
	 * The object id of the file sync object 
	 * @var string
	 */
	public $objectId;
	
	/**
	 * The version of the file sync object 
	 * @var string
	 */
	public $version;
	
	/**
	 * @return the $fileSyncObjectType
	 */
	public function getFileSyncObjectType()
	{
		return $this->fileSyncObjectType;
	}

	/**
	 * @return the $objectSubType
	 */
	public function getObjectSubType()
	{<commit_msg>Added getEntryId function<commit_after><?php
/**
 * Used to ingest media that is already ingested to Kaltura system as a different file in the past, the new created flavor asset will be ready immediately using a file sync of link type that will point to the existing file sync.
 *
 * @package Core
 * @subpackage model.data
 */
class kFileSyncResource extends kContentResource 
{
	/**
	 * The object type of the file sync object 
	 * @var int
	 */
	public $fileSyncObjectType;
	
	/**
	 * The object sub-type of the file sync object 
	 * @var int
	 */
	public $objectSubType;
	
	/**
	 * The object id of the file sync object 
	 * @var string
	 */
	public $objectId;
	
	/**
	 * The version of the file sync object 
	 * @var string
	 */
	public $version;
	
	/**
	 * @return string
	 */
	public function getEntryId()
	{
		$this->fileSyncObjectType == FileSyncObjectType::ENTRY;
			return $this->objectId;
			
		$object = kFileSyncObjectManager::retrieveObject($this->fileSyncObjectType, $this->objectId);
		if(method_exists($object, 'getEntryId'))
			return $object->getEntryId();
		 
		return null;
	}
	
	/**
	 * @return the $fileSyncObjectType
	 */
	public function getFileSyncObjectType()
	{
		return $this->fileSyncObjectType;
	}

	/**
	 * @return the $objectSubType
	 */
	public function getObjectSubType()
	{
{'fraction_non_alphanumeric': 0.10084033613445378, 'fraction_numerical': 0.0, 'mean_word_length': 3.3085714285714287, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '5002645', 'n_tokens_mistral': 733, 'n_tokens_neox': 656, 'n_words': 244}