<commit_before><?php
require_once KALTURA_ROOT_PATH.'/vendor/google-api-php-client-1.1.2/src/Google/autoload.php';
  
/**
 * @package plugins.youtubeApiDistribution
 * @subpackage admin
 */
class Form_YoutubeApiProfileConfiguration extends Form_ConfigurableProfileConfiguration
{
	public function init()
	{
		parent::init();
		$this->getView()->addBasePath(realpath(dirname(__FILE__)));
		$this->addDecorator('ViewScript', array(
			'viewScript' => 'youtube-distribution.phtml',
			'placement' => 'APPEND'
		));
	}
	
	protected function addProviderElements()
	{
	    $this->setDescription(null);
	    
		$element = new Zend_Form_Element_Hidden('providerElements');
		$element->setLabel('YouTube Specific Configuration');
		$element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag',  array('tag' => 'b'))));
		$this->addElements(array($element));

		$hasToken = false;
		if ($this->distributionProfile->googleTokenData)
			$hasToken = true;
		$this->addElement('text', 'api_authorize_url', array(
			'label'			=> 'Authorize API Access:',
			'decorators' => array(array('ViewScript', array(
				'viewScript' => 'youtube-distribution-api-authorize-field.phtml',

			))),<commit_msg>small issue from code review<commit_after><?php
require_once KALTURA_ROOT_PATH.'/vendor/google-api-php-client-1.1.2/src/Google/autoload.php';
  
/**
 * @package plugins.youtubeApiDistribution
 * @subpackage admin
 */
class Form_YoutubeApiProfileConfiguration extends Form_ConfigurableProfileConfiguration
{
	public function init()
	{
		parent::init();
		$this->getView()->addBasePath(realpath(dirname(__FILE__)));
		$this->addDecorator('ViewScript', array(
			'viewScript' => 'youtube-distribution.phtml',
			'placement' => 'APPEND'
		));
	}
	
	protected function addProviderElements()
	{
	    $this->setDescription(null);
	    
		$element = new Zend_Form_Element_Hidden('providerElements');
		$element->setLabel('YouTube Specific Configuration');
		$element->setDecorators(array('ViewHelper', array('Label', array('placement' => 'append')), array('HtmlTag',  array('tag' => 'b'))));
		$this->addElements(array($element));

		$hasToken = false;
		if (isset($this->distributionProfile) && $this->distributionProfile && $this->distributionProfile->googleTokenData)
			$hasToken = true;
		$this->addElement('text', 'api_authorize_url', array(
			'label'			=> 'Authorize API Access:',
			'decorators' => array(array('ViewScript', array(
				'viewScript' => 'youtube-distribution-api-authorize-field.phtml',

			))),
{'fraction_non_alphanumeric': 0.1700787401574803, 'fraction_numerical': 0.002362204724409449, 'mean_word_length': 5.740053050397878, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 39, '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': '6966145', 'n_tokens_mistral': 868, 'n_tokens_neox': 789, 'n_words': 122}