<commit_before><?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaAssetParamsResourceContainer extends KalturaResource 
{
	/**
	 * The content resource to associate with asset params
	 * @var KalturaContentResource
	 */
	public $resource;
	
	/**
	 * The asset params to associate with the reaource
	 * @var int
	 */
	public $assetParamsId;

	public function validateEntry(entry $dbEntry)
	{
		parent::validateEntry($dbEntry);
    	$this->validatePropertyNotNull('resource');
    	$this->validatePropertyNotNull('assetParamsId');
	}
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(!$object_to_fill)
			$object_to_fill = new kAssetParamsResourceContainer();
			
		$object_to_fill->setResource($this->resource->toObject());
		$object_to_fill->setAssetParamsId($this->assetParamsId);
		return $object_to_fill;
	}
}<commit_msg>Make sure resource is not null<commit_after><?php
/**
 * @package api
 * @subpackage objects
 */
class KalturaAssetParamsResourceContainer extends KalturaResource 
{
	/**
	 * The content resource to associate with asset params
	 * @var KalturaContentResource
	 */
	public $resource;
	
	/**
	 * The asset params to associate with the reaource
	 * @var int
	 */
	public $assetParamsId;

	public function validateEntry(entry $dbEntry)
	{
		parent::validateEntry($dbEntry);
    	$this->validatePropertyNotNull('resource');
    	$this->validatePropertyNotNull('assetParamsId');
	}
	
	public function toObject ( $object_to_fill = null , $props_to_skip = array() )
	{
		if(!$object_to_fill)
			$object_to_fill = new kAssetParamsResourceContainer();
			
		if($this->resource)
			$object_to_fill->setResource($this->resource->toObject());
			
		$object_to_fill->setAssetParamsId($this->assetParamsId);
		return $object_to_fill;
	}
}
{'fraction_non_alphanumeric': 0.12153163152053274, 'fraction_numerical': 0.0, 'mean_word_length': 4.76038338658147, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 18, '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': '6815966', 'n_tokens_mistral': 594, 'n_tokens_neox': 547, 'n_words': 116}