<commit_before><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * View section, container for articles.
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_View_Section extends View_Base {

	/**
	 * @var  array  View articles
	 */
	public $articles = array();

	/**
	 * @var  string  ARIA role
	 */
	public $role;

	/**
	 * @var  array  Section tabs
	 */
	public $tabs;

	/**
	 * @var  string  Section title
	 */
	public $title;

	/**
	 * @var  boolean  Sticky title
	 */
	public $title_sticky = false;


	/**
	 * Get section articles.
	 *
	 * @return  array
	 */
	public function articles() {
		return $this->articles;
	}


	/**
	 * Render content.
	 *
	 * @return  string
	 */
	public function content() {
		if ($articles = &$this->articles()) {
			return implode("\n\n", $articles);
		}

		return '';
	}


	/**
	 * Render <header>.
	 *
	 * @return  string
	 */
	public function header() {
		$title = $this->title();
		$tabs  = $this->tabs();
		if ($title || $tabs) {
			ob_start();

			$attributes = array();
			if ($this->title_sticky) {
				$attributes['class'] = 'sticky';
			}
?><commit_msg>Fix variable reference error after PHP update<commit_after><?php defined('SYSPATH') or die('No direct access allowed.');
/**
 * View section, container for articles.
 *
 * @package    Anqh
 * @author     <NAME>
 * @copyright  (c) 2011 <NAME>
 * @license    http://www.opensource.org/licenses/mit-license.php MIT license
 */
class Anqh_View_Section extends View_Base {

	/**
	 * @var  array  View articles
	 */
	public $articles = array();

	/**
	 * @var  string  ARIA role
	 */
	public $role;

	/**
	 * @var  array  Section tabs
	 */
	public $tabs;

	/**
	 * @var  string  Section title
	 */
	public $title;

	/**
	 * @var  boolean  Sticky title
	 */
	public $title_sticky = false;


	/**
	 * Get section articles.
	 *
	 * @return  array
	 */
	public function articles() {
		return $this->articles;
	}


	/**
	 * Render content.
	 *
	 * @return  string
	 */
	public function content() {
		if ($articles = $this->articles()) {
			return implode("\n\n", $articles);
		}

		return '';
	}


	/**
	 * Render <header>.
	 *
	 * @return  string
	 */
	public function header() {
		$title = $this->title();
		$tabs  = $this->tabs();
		if ($title || $tabs) {
			ob_start();

			$attributes = array();
			if ($this->title_sticky) {
				$attributes['class'] = 'sticky';
			}
?>
{'fraction_non_alphanumeric': 0.17340808970764918, 'fraction_numerical': 0.0032038446135362435, 'mean_word_length': 2.625544267053701, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 21, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6708357', 'n_tokens_mistral': 954, 'n_tokens_neox': 830, 'n_words': 216}