<commit_before><?php

/**
 * A base shell class
 *
 * @author <NAME> <<EMAIL>>
 * @license https://github.com/Asgrim/MAL/raw/master/LICENSE The BSD License
 * @copyright Copyright (c) 2011, <NAME>
 */
class MAL_Util_Shell
{
	protected $_last_output;
	protected $_last_errno;

	public function getLastError()
	{
		return $this->_last_errno;
	}

	protected function Exec($cmd, $noisy = false)
	{
		if($noisy) echo "<strong>Command: " . $cmd . "</strong><br /><br />";

		$this->_last_errno = 0;<commit_msg>Changed visibility of Exec and added getLastOutput function<commit_after><?php

/**
 * A base shell class
 *
 * @author <NAME> <<EMAIL>>
 * @license https://github.com/Asgrim/MAL/raw/master/LICENSE The BSD License
 * @copyright Copyright (c) 2011, <NAME>
 */
class MAL_Util_Shell
{
	protected $_last_output;
	protected $_last_errno;

	public function getLastError()
	{
		return $this->_last_errno;
	}

	public function getLastOutput()
	{
		return $this->_last_output;
	}

	public function Exec($cmd, $noisy = false)
	{
		if($noisy) echo "<strong>Command: " . $cmd . "</strong><br /><br />";

		$this->_last_errno = 0;
{'fraction_non_alphanumeric': 0.16057091882247992, 'fraction_numerical': 0.008920606601248885, 'mean_word_length': 4.146788990825688, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 24, 'https://': 2, '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': '2794400', 'n_tokens_mistral': 413, 'n_tokens_neox': 382, 'n_words': 95}