<commit_before><?php
/**
 * Media Info service
 *
 * @service mediaInfo
 * @package api
 * @subpackage extServices
 */
class MediaInfoService extends KalturaBaseService
{
	public function initService($partnerId, $puserId, $ksStr, $serviceName, $action)
	{
		parent::initService($partnerId, $puserId, $ksStr, $serviceName, $action);

		// since plugin might be using KS impersonation, we need to validate the requesting
		// partnerId from the KS and not with the $_POST one
		if(!SystemPartnerPlugin::isAllowedPartner(kCurrentContext::$ks_partner_id))
			throw new KalturaAPIException(SystemUserErrors::SERVICE_FORBIDDEN);
	}
	
	/**
	 * List media info objects by filter and pager
	 * 
	 * @action list
	 * @param KalturaMediaInfoFilter $filter
	 * @param KalturaFilterPager $pager
	 * @return KalturaMediaInfoListResponse
	 */
	function listAction(KalturaMediaInfoFilter $filter = null, KalturaFilterPager $pager = null)
	{<commit_msg>fix - should be 'adminconsoleplugin' check<commit_after><?php
/**
 * Media Info service
 *
 * @service mediaInfo
 * @package api
 * @subpackage extServices
 */
class MediaInfoService extends KalturaBaseService
{
	public function initService($partnerId, $puserId, $ksStr, $serviceName, $action)
	{
		parent::initService($partnerId, $puserId, $ksStr, $serviceName, $action);

		// since plugin might be using KS impersonation, we need to validate the requesting
		// partnerId from the KS and not with the $_POST one
		if(!AdminConsolePlugin::isAllowedPartner(kCurrentContext::$ks_partner_id))
			throw new KalturaAPIException(SystemUserErrors::SERVICE_FORBIDDEN);
	}
	
	/**
	 * List media info objects by filter and pager
	 * 
	 * @action list
	 * @param KalturaMediaInfoFilter $filter
	 * @param KalturaFilterPager $pager
	 * @return KalturaMediaInfoListResponse
	 */
	function listAction(KalturaMediaInfoFilter $filter = null, KalturaFilterPager $pager = null)
	{
{'fraction_non_alphanumeric': 0.09842105263157895, 'fraction_numerical': 0.0, 'mean_word_length': 5.232786885245901, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '5006643', 'n_tokens_mistral': 611, 'n_tokens_neox': 580, 'n_words': 160}