<commit_before><?php

namespace ModHelper;

/**
 * @package ModHelper
 * @since 1.0
 */
abstract class Menu
{
	protected $options;
	protected $areas;
	private $id;
	private $title;

	public function execute()
	{
		global $sourcedir;

		foreach ($this->options as $item) {
			$options[] = $item;
		}
		foreach ($this->areas as $item) {
			$areas[] = $item;
		}

		require_once($sourcedir . '/Subs-Menu.php');
		return createMenu(array(
			$this->id => array(
				'title' => $this->title,
				'areas' => $areas
			)), $options);
	}

	/**
	 * Adds an area to the menu structure - see Subs-Menu.php for details!
	 *
	 * @access protected
	 * @return void
	 */

	public function addArea($id, $area)
	{
		$this->areas->addValue([$id => $areas]);
	}
	/**
	 * Adds an option to the menu
	 *
	 * @access public
	 * @return void
	 */
	public function addOption($id, $val)
	{
		$this->options->addValue([$id => $val]);
	}

	public function __construct($id, $title)
	{
		$this->id = $id;
		$this->title = $title;
		$this->options = new Collection();
		$this->areas = new Collection();
		$this->load();

		return $this;
	}

}<commit_msg>call  to undefined method<commit_after><?php

namespace ModHelper;

/**
 * @package ModHelper
 * @since 1.0
 */
abstract class Menu
{
	protected $options;
	protected $areas;
	private $id;
	private $title;

	public function execute()
	{
		global $sourcedir;

		foreach ($this->options as $item) {
			$options[] = $item;
		}
		foreach ($this->areas as $item) {
			$areas[] = $item;
		}

		require_once($sourcedir . '/Subs-Menu.php');
		return createMenu(array(
			$this->id => array(
				'title' => $this->title,
				'areas' => $areas
			)), $options);
	}

	/**
	 * Adds an area to the menu structure - see Subs-Menu.php for details!
	 *
	 * @access protected
	 * @return void
	 */

	public function addArea($id, $area)
	{
		$this->areas->addValue([$id => $areas]);
	}
	/**
	 * Adds an option to the menu
	 *
	 * @access public
	 * @return void
	 */
	public function addOption($id, $val)
	{
		$this->options->addValue([$id => $val]);
	}

	public function __construct($id, $title)
	{
		$this->id = $id;
		$this->title = $title;
		$this->options = new Collection();
		$this->areas = new Collection();

		return $this;
	}

}
{'fraction_non_alphanumeric': 0.18100757913508694, 'fraction_numerical': 0.0017833259028087382, 'mean_word_length': 3.132596685082873, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 38, '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': '4064579', 'n_tokens_mistral': 905, 'n_tokens_neox': 808, 'n_words': 202}