<commit_before><?php

namespace Friendica\Core;

/**
 * Description of Console
 *
 * @author <NAME> <<EMAIL>>
 */
class Console extends \Asika\SimpleConsole\Console
{
	// Disables the default help handling
	protected $helpOptions = [];
	protected $customHelpOptions = ['h', 'help', '?'];

	protected function getHelp()
	{


		$help = <<<HELP
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]

Commands:
	config               Edit site config
	createdoxygen        Generate Doxygen headers
	docbloxerrorchecker  Checks the file tree for DocBlox errors
	globalcommunityblock Silence remote profile from global community page
	help                 Show help about a command, e.g (bin/console help config)

Options:
	-h|--help|-? Show help information
	-v           Show more debug information.
HELP;
		return $help;
	}

	protected function doExecute()
	{
		if ($this->getOption('v')) {
			$this->out('Executable: ' . $this->executable);
			$this->out('Arguments: ' . var_export($this->args, true));
			$this->out('Options: ' . var_export($this->options, true));
		}

		$showHelp = false;
		$subHelp = false;
		$command = null;

		if ($this->getOption('version')) {<commit_msg>Add new commands to base console help text<commit_after><?php

namespace Friendica\Core;

/**
 * Description of Console
 *
 * @author <NAME> <<EMAIL>>
 */
class Console extends \Asika\SimpleConsole\Console
{
	// Disables the default help handling
	protected $helpOptions = [];
	protected $customHelpOptions = ['h', 'help', '?'];

	protected function getHelp()
	{


		$help = <<<HELP
Usage: bin/console [--version] [-h|--help|-?] <command> [<args>] [-v]

Commands:
	config                 Edit site config
	createdoxygen          Generate Doxygen headers
	docbloxerrorchecker    Check the file tree for DocBlox errors
	extract                Generate translation string file for the Friendica project (deprecated)
	globalcommunityblock   Block remote profile from interacting with this node
	globalcommunitysilence Silence remote profile from global community page
	help                   Show help about a command, e.g (bin/console help config)
	maintenance            Set maintenance mode for this node
	php2po                 Generate a messages.po file from a strings.php file

Options:
	-h|--help|-? Show help information
	-v           Show more debug information.
HELP;
		return $help;
	}

	protected function doExecute()
	{
		if ($this->getOption('v')) {
			$this->out('Executable: ' . $this->executable);
			$this->out('Arguments: ' . var_export($this->args, true));
			$this->out('Options: ' . var_export($this->options, true));
		}

		$showHelp = false;
		$subHelp = false;
		$command = null;

		if ($this->getOption('version')) {
{'fraction_non_alphanumeric': 0.13103953147877012, 'fraction_numerical': 0.00036603221083455345, 'mean_word_length': 3.290423861852433, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 29, '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': '6572013', 'n_tokens_mistral': 855, 'n_tokens_neox': 803, 'n_words': 252}