<commit_before><?php

class InfoModule extends Module
{
	public function __construct()
	{
		$this->installCommand('about', array($this, 'about'));
	}

	public function about()
	{
		$info = array();
		$info['Version'] = shell_exec('git log -1 --pretty=format:"%h on %aD"');

		if ($username = AuthBackend::getInstance()->getCurrentUser())
		{
			$info['User'] = $username;
		}

		Output::getInstance()->setOutput('info', $info);
	}
}
<commit_msg>Have the about box also list the user's teams<commit_after><?php

class InfoModule extends Module
{
	public function __construct()
	{
		$this->installCommand('about', array($this, 'about'));
	}

	public function about()
	{
		$info = array();
		$info['Version'] = shell_exec('git log -1 --pretty=format:"%h on %aD"');

		$auth = AuthBackend::getInstance();
		if ($username = $auth->getCurrentUser())
		{
			$info['User'] = $username;

			$teamNumbers = $auth->getCurrentUserTeams();
			$info['Teams'] = implode(', ', $teamNumbers);
		}

		Output::getInstance()->setOutput('info', $info);
	}
}

{'fraction_non_alphanumeric': 0.19961427193828352, 'fraction_numerical': 0.0019286403085824494, 'mean_word_length': 4.766666666666667, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '6564572', 'n_tokens_mistral': 373, 'n_tokens_neox': 344, 'n_words': 75}