<commit_before><?php
/**
 * extJs Panel layout
 *
 */
class ImmExtjsPanelLayout extends ImmExtjsLayout
{	
	public function addSouthComponent($tools=false,$attributes=array())
	{	
		$attributes=array('id'=>'south_panel',
					      'title'=>isset($attributes['title'])?$attributes['title']:' ',
					      'height'=>'150',
					      'minHeight'=>'0',
					      'split'=>'true',
					      'collapsible'=>'true',
				          'tools'=>($tools?$tools->end():''),
						  'idxml'=>isset($attributes['idxml'])?$attributes['idxml']:false,
		);
		
		
		if(isset($this->attributes['viewport']['south_panel'])&&count($this->attributes['viewport']['south_panel'])>0)
		$attributes=array_merge($attributes,$this->attributes['viewport']['south_panel']);
				          
		if(isset($attributes['items'])&&count($attributes['items'])>0)
		$this->addPanel('south',$attributes);		
	}
	
	public function addCenterComponent($tools,$attributes=array())
	{	
		if($this->showFullCenter())
		{
			$attributes=array('id'=>'center_panel_first_panel',
						      'title'=>isset($attributes['title'])?$attributes['title']:'Panel',
						      'autoScroll'=>true,
						      'width'=>'auto',
					          'frame'=>true,
					          'collapsible'=>true,
					          'style'=>'padding-right:0px;',
					          'tools'=>$tools->end(),
							  'idxml'=>isset($attributes['idxml'])?$attributes['idxml']:false,
			);
			
			
			if(isset($this->attributes['viewport']['center_panel'])&&count($this->attributes['viewport']['center_panel'])>0)
			$attributes=array_merge($attributes,$this->attributes['viewport']['center_panel']);
					          
			$this->immExtjs->private['center_panel_first_panel']=$this->immExtjs->Panel($attributes);
					
			$attributesPanel['items'][]=$this->immExtjs->asVar('center_panel_first_panel');
			$attributesPanel['border']=false;
			$attributesPanel['bodyBorder']=false;
			$attributesPanel['layout']='fit';
							
			$attributesPanel['id']='center_panel_first';
			$this->immExtjs->private['center_panel_first']=$this->immExtjs->Panel($attributesPanel);
			
			$attributesPanelContainer['items'][]=$this->immExtjs->asVar('center_panel_first');
			$attributesPanelContainer['style']='padding-right:5px;';
			$attributesPanelContainer['border']=false;
			$attributesPanelContainer['bodyBorder']=false;
			$attributesPanelContainer['layout']='fit';
			$attributesPanelContainer['id']='center_panel';         	      	
			
			$this->addPanel('center',$attributesPanelContainer);
		}
	}
	
	public function end()
	{
		$this->addSouthComponent();
		
		sfProjectConfiguration::getActive()->loadHelpers(array('ImmExtjsWest'));
		
		parent::end();
	}
}
?><commit_msg>The close tool and maximize tool placement for panel layout too<commit_after><?php
/**
 * extJs Panel layout
 *
 */
class ImmExtjsPanelLayout extends ImmExtjsLayout
{	
	public function addSouthComponent($tools=false,$attributes=array())
	{	
		$attributes=array('id'=>'south_panel',
					      'title'=>isset($attributes['title'])?$attributes['title']:' ',
					      'height'=>'150',
					      'minHeight'=>'0',
					      'split'=>'true',
					      'collapsible'=>'true',
				          'tools'=>($tools?$tools->end():''),
						  'idxml'=>isset($attributes['idxml'])?$attributes['idxml']:false,
		);
		
		
		if(isset($this->attributes['viewport']['south_panel'])&&count($this->attributes['viewport']['south_panel'])>0)
		$attributes=array_merge($attributes,$this->attributes['viewport']['south_panel']);
				          
		if(isset($attributes['items'])&&count($attributes['items'])>0)
		$this->addPanel('south',$attributes);		
	}
	
	public function addCenterComponent($tools,$attributes=array())
	{	
		if($this->showFullCenter())
		{
			$attributes=array('id'=>'center_panel_first_panel',
						      'title'=>isset($attributes['title'])?$attributes['title']:'Panel',
						      'autoScroll'=>true,
						      'width'=>'auto',
					          'frame'=>true,
					          'collapsible'=>true,
					          'style'=>'padding-right:0px;',
					          'tools'=>$tools->end(),
							  'idxml'=>isset($attributes['idxml'])?$attributes['idxml']:false,
			);
			
			$attributes['plugins'][] = 'new Ext.ux.MaximizeTool()';
			if(isset($this->attributes['viewport']['center_panel'])&&count($this->attributes['viewport']['center_panel'])>0)
			$attributes=array_merge($attributes,$this->attributes['viewport']['center_panel']);
					          
			$this->immExtjs->private['center_panel_first_panel']=$this->immExtjs->Panel($attributes);
					
			$attributesPanel['items'][]=$this->immExtjs->asVar('center_panel_first_panel');
			$attributesPanel['border']=false;
			$attributesPanel['bodyBorder']=false;
			$attributesPanel['layout']='fit';
							
			$attributesPanel['id']='center_panel_first';
			$this->immExtjs->private['center_panel_first']=$this->immExtjs->Panel($attributesPanel);
			
			$attributesPanelContainer['items'][]=$this->immExtjs->asVar('center_panel_first');
			$attributesPanelContainer['style']='padding-right:5px;';
			$attributesPanelContainer['border']=false;
			$attributesPanelContainer['bodyBorder']=false;
			$attributesPanelContainer['layout']='fit';
			$attributesPanelContainer['id']='center_panel';         	      	
			
			$this->addPanel('center',$attributesPanelContainer);
		}
	}
	
	public function end()
	{
		$this->addSouthComponent();
		
		sfProjectConfiguration::getActive()->loadHelpers(array('ImmExtjsWest'));
		
		parent::end();
	}
}
?>
{'fraction_non_alphanumeric': 0.20498259754533799, 'fraction_numerical': 0.003297307199120718, 'mean_word_length': 4.617283950617284, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 95, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 12}, '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': '5208562', 'n_tokens_mistral': 1951, 'n_tokens_neox': 1603, 'n_words': 129}