<commit_before><?php
/**
 * @package plugins.schedule
 * @subpackage api.objects
 */
class KalturaVodScheduleEvent extends KalturaEntryScheduleEvent
{
	/* (non-PHPdoc)
	 * @see KalturaObject::toObject($object_to_fill, $props_to_skip)
	 */
	public function toObject($sourceObject = null, $propertiesToSkip = array())
	{
		if(is_null($sourceObject))
		{
			$sourceObject = new VodScheduleEvent();
		}

		return parent::toObject($sourceObject, $propertiesToSkip);
	}

	/**
	 * {@inheritDoc}
	 * @see KalturaScheduleEvent::getScheduleEventType()
	 */
	public function getScheduleEventType()
	{
		return ScheduleEventType::VOD;
	}
}<commit_msg>Extend the period for KalturaVodScheduleEvent to be max5 years<commit_after><?php
/**
 * @package plugins.schedule
 * @subpackage api.objects
 */
class KalturaVodScheduleEvent extends KalturaEntryScheduleEvent
{
	
	const MAX_DURATION_YEARS = 5;
	
	/* (non-PHPdoc)
	 * @see KalturaObject::toObject($object_to_fill, $props_to_skip)
	 */
	public function toObject($sourceObject = null, $propertiesToSkip = array())
	{
		if(is_null($sourceObject))
		{
			$sourceObject = new VodScheduleEvent();
		}

		return parent::toObject($sourceObject, $propertiesToSkip);
	}

	/**
	 * {@inheritDoc}
	 * @see KalturaScheduleEvent::getScheduleEventType()
	 */
	public function getScheduleEventType()
	{
		return ScheduleEventType::VOD;
	}
	
	protected function getScheduleEventMaxDuration()
	{
		return self::MAX_DURATION_YEARS * kTimeConversion::YEARS;
	}
	
	protected function getSingleScheduleEventMaxDuration()
	{
		return $this->getScheduleEventMaxDuration();
	}
}
{'fraction_non_alphanumeric': 0.12319296040226273, 'fraction_numerical': 0.001257071024512885, 'mean_word_length': 5.393574297188755, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 4, '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': '1459589', 'n_tokens_mistral': 550, 'n_tokens_neox': 508, 'n_words': 90}