<commit_before><?php
/**
 * @package api
 * @subpackage objects
 */
abstract class KalturaResponseProfileBase extends KalturaObject
{
	/**
	 * @return array<KalturaResponseProfileBase>
	 */
	abstract public function getRelatedProfiles();
	
	protected function validateNestedObjects($maxPageSize, $maxNestingLevel)
	{
		if(!$this->relatedProfiles)
		{
			return;
		}
		
		if($maxNestingLevel > 0)
		{
			foreach($this->relatedProfiles as $relatedProfile)
			{
				/* @var $relatedProfile KalturaResponseProfile */
				$relatedProfile->validateNestedObjects($maxPageSize, $maxNestingLevel - 1);
				
				if($relatedProfile->pager)
				{
					$relatedProfile->pager->validatePropertyMaxValue('pageSize', $maxPageSize, true);
				}
			}
		}
		else
		{
			if(count($this->relatedProfiles))
			{
				throw new KalturaAPIException(KalturaErrors::RESPONSE_PROFILE_MAX_NESTING_LEVEL);
			}
		}
	}
}<commit_msg>KalturaNestedResponseProfileHolder can't access related-profiles attr<commit_after><?php
/**
 * @package api
 * @subpackage objects
 */
abstract class KalturaResponseProfileBase extends KalturaObject
{
	/**
	 * @return array<KalturaResponseProfileBase>
	 */
	abstract public function getRelatedProfiles();
	
	protected function validateNestedObjects($maxPageSize, $maxNestingLevel)
	{
		$relatedProfiles = $this->getRelatedProfiles();
		if(!$relatedProfiles)
		{
			return;
		}
		
		if($maxNestingLevel > 0)
		{
			foreach($relatedProfiles as $relatedProfile)
			{
				/* @var $relatedProfile KalturaResponseProfileBase */
				$relatedProfile->validateNestedObjects($maxPageSize, $maxNestingLevel - 1);
				
				if($relatedProfile->pager)
				{
					$relatedProfile->pager->validatePropertyMaxValue('pageSize', $maxPageSize, true);
				}
			}
		}
		else
		{
			if(count($relatedProfiles))
			{
				throw new KalturaAPIException(KalturaErrors::RESPONSE_PROFILE_MAX_NESTING_LEVEL);
			}
		}
	}
}
{'fraction_non_alphanumeric': 0.11826821541710665, 'fraction_numerical': 0.0021119324181626186, 'mean_word_length': 4.368271954674221, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 19, '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': '4152932', 'n_tokens_mistral': 731, 'n_tokens_neox': 604, 'n_words': 90}