<commit_before><?php
if ( ! defined( 'WPINC' ) || ! defined( 'POF' ) ) die;

/**
 * Panda Options Title Field
 *
 * @class   Panda_Options_Title_Field
 * @package Panda_Options
 * @version 1.0
 *
 * @author  Uncleserj <serj[at]serj[dot]pro>
 */

if ( ! class_exists( 'Panda_Options_Title_Field' ) ) {
	
	class Panda_Options_Title_Field extends Panda_Options_Field {
		
		/**
		 * Is field simple or not
		 *
		 * @access public
		 * @var bool
		 */
		
		public $simple_type = true;
		
		/**
		 * Print field content
		 */
				
		public function output() {
			
			$field = $this->field;
			
			$align = 'center';
			
			if ( isset( $field->align ) ) {
								
				switch ( $field->align ) {
					
					case 'left': $align = 'left';break;
					case 'right': $align = 'right';break;
					case 'center': $align = 'center';break;
					default: $align = null;break;
					
				}
							
			}
			
			if ( ! isset( $field->sub ) ) $field->sub = '';
			
			if ( $align ) $align_style = ' style="text-align:' . $align . ';"';
			?>
			<h2<?php echo $align_style; ?> data-align="<?php echo $align; ?>"><?php echo $this->get_sanitized_text( $field->title ); ?></h2>
			<?php if ( $field->sub != '' ) { ?>
			<p<?php echo $align_style; ?> class="subtitle"><?php echo $this->get_sanitized_text( $field->sub ); ?></p>
			<?php }			
			
		}
		
		/**
		 * Check required attributes of field
		 */
		
		public function check_field() { return true; }
				
	}
	
}<commit_msg>Create class.pof-title-field.php<commit_after><?php
if ( ! defined( 'WPINC' ) || ! defined( 'POF' ) ) die;

/**
 * Panda Options Title Field
 *
 * @class   Panda_Options_Title_Field
 * @package Panda_Options
 * @version 1.0
 *
 * @author  Uncleserj <serj[at]serj[dot]pro>
 */

if ( ! class_exists( 'Panda_Options_Title_Field' ) ) {
	
	class Panda_Options_Title_Field extends Panda_Options_Field {
		
		/**
		 * Is field simple or not
		 *
		 * @access public
		 * @var bool
		 */
		
		public $simple_type = true;
		
		/**
		 * Print field content
		 */
				
		public function output() {
			
			$field = $this->field;
			
			$align = 'center';
			
			if ( isset( $field->align ) ) {
								
				switch ( $field->align ) {
					
					case 'left': $align = 'left';break;
					case 'right': $align = 'right';break;
					case 'center': $align = 'center';break;
					default: $align = null;break;
					
				}
							
			}
			
			if ( ! isset( $field->sub ) ) $field->sub = '';
			
			if ( $align ) $align_style = ' style="text-align:' . $align . ';"';
			?>
			<h2<?php echo $align_style; ?> data-align="<?php echo $align; ?>"><?php echo $this->get_sanitized_text( $field->title ); ?></h2>
			<?php if ( $field->sub != '' ) { ?>
			<p<?php echo $align_style; ?> class="subtitle"><?php echo $this->get_sanitized_text( $field->sub ); ?></p>
			<?php }			
			
		}
		
		/**
		 * Check required attributes of field
		 */
		
		public function check_field() { return true; }
				
	}
	
}
?>
{'fraction_non_alphanumeric': 0.18076398362892224, 'fraction_numerical': 0.002728512960436562, 'mean_word_length': 2.4792408066429417, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 48, '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': '1774606', 'n_tokens_mistral': 1279, 'n_tokens_neox': 1011, 'n_words': 223}