<commit_before><?php
/**
 * @package Core
 * @subpackage model.data
 */
class kConvartableJobData extends kJobData
{
	/**
	 * @var array<kSourceFileSyncDescriptor>
	 */
	private $srcFileSyncs;
	
	/**
	 * @var int
	 */
	private $engineVersion;
	
	/**
	 * @var int
	 */
	private $flavorParamsOutputId;
		
	/**
	 * @var int
	 */
	private $mediaInfoId;
	
	/**
	 * @var int
	 */
	private $currentOperationSet = 0;
	
	/**
	 * @var int
	 */
	private $currentOperationIndex = 0;

	/**
	 * @var array
	 * key-value pair for holding plugin specific data
	 */
	private $pluginData;
	
	/**
	 * @var flavorParamsOutput
	 * @deprecated
	 */
	private $flavorParamsOutput;
	
	/**
	 * @var string
	 * @deprecated
	 */
	private $srcFileSyncLocalPath;
	
	/**
	 * The translated path as used by the scheduler
	 * @var string
	 * @deprecated
	 */
	private $actualSrcFileSyncLocalPath;
	
	/**
	 * @var string
	 * @deprecated
	 */
	private $srcFileSyncRemoteUrl;

	/**
	 * Migrates old members to new used members
	 */
	public function migrateOldSerializedData()
	{
		if($this->srcFileSyncLocalPath || $this->srcFileSyncRemoteUrl || $this->actualSrcFileSyncLocalPath)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setActualFileSyncLocalPath($this->actualSrcFileSyncLocalPath);
			$srcDescriptor->setFileSyncLocalPath($this->srcFileSyncLocalPath);
			$srcDescriptor->setFileSyncRemoteUrl($this->srcFileSyncRemoteUrl);
			$this->srcFileSyncs = array($srcDescriptor);
		}
	}
	
	/**
	 * @return the $srcFileSyncs
	 */
	public function getSrcFileSyncs() 
	{
		return $this->srcFileSyncs;
	}

	/**
	 * @param array<kSourceFileSyncDescriptor> $srcFileSyncs
	 */
	public function setSrcFileSyncs($srcFileSyncs) 
	{
		$this->srcFileSyncs = $srcFileSyncs;
	}

	/**
	 * @return the $srcFileSyncLocalPath
	 */
	public function getSrcFileSyncLocalPath()
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getFileSyncLocalPath();
	}
	
	/**
	 * @param $srcFileSyncRemoteUrl the $srcFileSyncRemoteUrl to set
	 */
	public function setSrcFileSyncRemoteUrl($srcFileSyncRemoteUrl)
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setFileSyncRemoteUrl($srcFileSyncRemoteUrl);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setFileSyncRemoteUrl($srcFileSyncRemoteUrl);
		}		
	}

	/**
	 * @return the $srcFileSyncRemoteUrl
	 */
	public function getSrcFileSyncRemoteUrl()
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getFileSyncRemoteUrl();
	}

	/**
	 * @param $flavorParamsOutput the $flavorParamsOutput to set
	 */
	public function setFlavorParamsOutput($flavorParamsOutput)
	{
// 		$this->flavorParamsOutput = $flavorParamsOutput;
	}

	/**
	 * @param $srcFileSyncLocalPath the $srcFileSyncLocalPath to set
	 */
	public function setSrcFileSyncLocalPath($srcFileSyncLocalPath)
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setFileSyncLocalPath($srcFileSyncLocalPath);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setFileSyncLocalPath($srcFileSyncLocalPath);	
		}	
	}

	/**
	 * @return the $actualSrcFileSyncLocalPath
	 */
	public function getActualSrcFileSyncLocalPath()
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getActualFileSyncLocalPath();
	}

	/**
	 * @param $actualSrcFileSyncLocalPath the $actualSrcFileSyncLocalPath to set
	 */
	public function setActualSrcFileSyncLocalPath($actualSrcFileSyncLocalPath)
	{
		$srcDescriptor = reset($this->srcFileSyncs);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setActualFileSyncLocalPath($actualSrcFileSyncLocalPath);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setActualFileSyncLocalPath($actualSrcFileSyncLocalPath);	
		}		
	}
	
	/**
	 * @param $flavorParamsOutputId the $flavorParamsOutputId to set
	 */
	public function setFlavorParamsOutputId($flavorParamsOutputId)
	{
		$this->flavorParamsOutputId = $flavorParamsOutputId;
	}

	/**
	 * @return flavorParamsOutput the $flavorParamsOutput
	 */
	public function getFlavorParamsOutput()
	{
// 		if ($this->flavorParamsOutput)
// 			return $this->flavorParamsOutput;<commit_msg>reset() expects parameter 1 to be array, null given<commit_after><?php
/**
 * @package Core
 * @subpackage model.data
 */
class kConvartableJobData extends kJobData
{
	/**
	 * @var array<kSourceFileSyncDescriptor>
	 */
	private $srcFileSyncs;
	
	/**
	 * @var int
	 */
	private $engineVersion;
	
	/**
	 * @var int
	 */
	private $flavorParamsOutputId;
		
	/**
	 * @var int
	 */
	private $mediaInfoId;
	
	/**
	 * @var int
	 */
	private $currentOperationSet = 0;
	
	/**
	 * @var int
	 */
	private $currentOperationIndex = 0;

	/**
	 * @var array
	 * key-value pair for holding plugin specific data
	 */
	private $pluginData;
	
	/**
	 * @var flavorParamsOutput
	 * @deprecated
	 */
	private $flavorParamsOutput;
	
	/**
	 * @var string
	 * @deprecated
	 */
	private $srcFileSyncLocalPath;
	
	/**
	 * The translated path as used by the scheduler
	 * @var string
	 * @deprecated
	 */
	private $actualSrcFileSyncLocalPath;
	
	/**
	 * @var string
	 * @deprecated
	 */
	private $srcFileSyncRemoteUrl;

	/**
	 * Migrates old members to new used members
	 */
	public function migrateOldSerializedData()
	{
		if($this->srcFileSyncLocalPath || $this->srcFileSyncRemoteUrl || $this->actualSrcFileSyncLocalPath)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setActualFileSyncLocalPath($this->actualSrcFileSyncLocalPath);
			$srcDescriptor->setFileSyncLocalPath($this->srcFileSyncLocalPath);
			$srcDescriptor->setFileSyncRemoteUrl($this->srcFileSyncRemoteUrl);
			$this->srcFileSyncs = array($srcDescriptor);
		}
	}
	
	/**
	 * @return the $srcFileSyncs
	 */
	public function getSrcFileSyncs() 
	{
		return $this->srcFileSyncs;
	}

	/**
	 * @param array<kSourceFileSyncDescriptor> $srcFileSyncs
	 */
	public function setSrcFileSyncs($srcFileSyncs) 
	{
		$this->srcFileSyncs = $srcFileSyncs;
	}

	/**
	 * @return the $srcFileSyncLocalPath
	 */
	public function getSrcFileSyncLocalPath()
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getFileSyncLocalPath();
	}
	
	/**
	 * @param $srcFileSyncRemoteUrl the $srcFileSyncRemoteUrl to set
	 */
	public function setSrcFileSyncRemoteUrl($srcFileSyncRemoteUrl)
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setFileSyncRemoteUrl($srcFileSyncRemoteUrl);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setFileSyncRemoteUrl($srcFileSyncRemoteUrl);
		}		
	}

	/**
	 * @return the $srcFileSyncRemoteUrl
	 */
	public function getSrcFileSyncRemoteUrl()
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getFileSyncRemoteUrl();
	}

	/**
	 * @param $flavorParamsOutput the $flavorParamsOutput to set
	 */
	public function setFlavorParamsOutput($flavorParamsOutput)
	{
// 		$this->flavorParamsOutput = $flavorParamsOutput;
	}

	/**
	 * @param $srcFileSyncLocalPath the $srcFileSyncLocalPath to set
	 */
	public function setSrcFileSyncLocalPath($srcFileSyncLocalPath)
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setFileSyncLocalPath($srcFileSyncLocalPath);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setFileSyncLocalPath($srcFileSyncLocalPath);	
		}	
	}

	/**
	 * @return the $actualSrcFileSyncLocalPath
	 */
	public function getActualSrcFileSyncLocalPath()
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
			return null;
		/* @var $srcDescriptor kSourceFileSyncDescriptor */
		return $srcDescriptor->getActualFileSyncLocalPath();
	}

	/**
	 * @param $actualSrcFileSyncLocalPath the $actualSrcFileSyncLocalPath to set
	 */
	public function setActualSrcFileSyncLocalPath($actualSrcFileSyncLocalPath)
	{
		$srcDescriptor = (is_array($this->srcFileSyncs) && count($this->srcFileSyncs) ? reset($this->srcFileSyncs) : null);
		
		if(!$srcDescriptor)
		{
			$srcDescriptor = new kSourceFileSyncDescriptor();
			$srcDescriptor->setActualFileSyncLocalPath($actualSrcFileSyncLocalPath);	
			$this->srcFileSyncs = array($srcDescriptor);
		}
		else
		{
			$srcDescriptor->setActualFileSyncLocalPath($actualSrcFileSyncLocalPath);	
		}		
	}
	
	/**
	 * @param $flavorParamsOutputId the $flavorParamsOutputId to set
	 */
	public function setFlavorParamsOutputId($flavorParamsOutputId)
	{
		$this->flavorParamsOutputId = $flavorParamsOutputId;
	}

	/**
	 * @return flavorParamsOutput the $flavorParamsOutput
	 */
	public function getFlavorParamsOutput()
	{
// 		if ($this->flavorParamsOutput)
// 			return $this->flavorParamsOutput;
{'fraction_non_alphanumeric': 0.1278857837181045, 'fraction_numerical': 0.0005062778452814905, 'mean_word_length': 4.435883324160704, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 87, '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': '6741396', 'n_tokens_mistral': 3512, 'n_tokens_neox': 3133, 'n_words': 529}