<commit_before><?php
/**
 * Storage Profiles service
 *
 * @service storageProfile
 * @package api
 * @subpackage services
 */
class StorageProfileService extends KalturaBaseService
{
	public function initService($serviceId, $serviceName, $actionName)
	{
		parent::initService($serviceId, $serviceName, $actionName);

		if(kCurrentContext::$master_partner_id != Partner::ADMIN_CONSOLE_PARTNER_ID &&
			kCurrentContext::$master_partner_id != Partner::BATCH_PARTNER_ID )<commit_msg>qnd: validate partner permissions if the session is impersonated.<commit_after><?php
/**
 * Storage Profiles service
 *
 * @service storageProfile
 * @package api
 * @subpackage services
 */
class StorageProfileService extends KalturaBaseService
{
	public function initService($serviceId, $serviceName, $actionName)
	{
		parent::initService($serviceId, $serviceName, $actionName);

		$partnerId = $this->getPartnerId();
		if($partnerId != Partner::ADMIN_CONSOLE_PARTNER_ID && $partnerId != Partner::BATCH_PARTNER_ID )
{'fraction_non_alphanumeric': 0.11634904714142427, 'fraction_numerical': 0.0, 'mean_word_length': 6.984, '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': '5988794', 'n_tokens_mistral': 306, 'n_tokens_neox': 300, 'n_words': 62}