<commit_before><?php
namespace wcf\system\page\handler;
use wcf\data\page\Page;
use wcf\data\user\online\UserOnline;
use wcf\system\cache\runtime\UserRuntimeCache;
use wcf\system\WCF;

/**
 * Menu page handler for the user profile page.
 *
 * @author	<NAME>
 * @copyright	2001-2016 WoltLab GmbH
 * @license	WoltLab License <http://www.woltlab.com/license-agreement.html>
 * @package	com.woltlab.wbb
 * @subpackage	system.page.handler
 * @category	Burning Board
 * @since	2.2
 */
class UserPageHandler extends AbstractMenuPageHandler implements IOnlineLocationPageHandler {
	use TOnlineLocationPageHandler;
	
	/**
	 * @inheritDoc
	 */
	public function getOnlineLocation(Page $page, UserOnline $user) {
		if ($user->objectID === null) {
			return '';
		}
		
		$visitedUser = UserRuntimeCache::getInstance()->getObject($user->objectID);
		if ($visitedUser === null) {
			return '';
		}
		
		return WCF::getLanguage()->getDynamicVariable('wcf.page.onlineLocation.'.$page->identifier, ['user' => $visitedUser]);
	}
	
	/**
	 * @inheritDoc
	 */
	public function prepareOnlineLocation(Page $page, UserOnline $user) {
		if ($user->objectID !== null) {
			UserRuntimeCache::getInstance()->cacheObjectID($user->objectID);
		}
	}
}
<commit_msg>Fix class documentation<commit_after><?php
namespace wcf\system\page\handler;
use wcf\data\page\Page;
use wcf\data\user\online\UserOnline;
use wcf\system\cache\runtime\UserRuntimeCache;
use wcf\system\WCF;

/**
 * Menu page handler for the user profile page.
 *
 * @author	<NAME>
 * @copyright	2001-2016 WoltLab GmbH
 * @license	GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
 * @package	com.woltlab.wcf
 * @subpackage	system.page.handler
 * @category	Community Framework
 * @since	2.2
 */
class UserPageHandler extends AbstractMenuPageHandler implements IOnlineLocationPageHandler {
	use TOnlineLocationPageHandler;
	
	/**
	 * @inheritDoc
	 */
	public function getOnlineLocation(Page $page, UserOnline $user) {
		if ($user->objectID === null) {
			return '';
		}
		
		$visitedUser = UserRuntimeCache::getInstance()->getObject($user->objectID);
		if ($visitedUser === null) {
			return '';
		}
		
		return WCF::getLanguage()->getDynamicVariable('wcf.page.onlineLocation.'.$page->identifier, ['user' => $visitedUser]);
	}
	
	/**
	 * @inheritDoc
	 */
	public function prepareOnlineLocation(Page $page, UserOnline $user) {
		if ($user->objectID !== null) {
			UserRuntimeCache::getInstance()->cacheObjectID($user->objectID);
		}
	}
}

{'fraction_non_alphanumeric': 0.1464, 'fraction_numerical': 0.008, 'mean_word_length': 4.533185840707965, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 25, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, '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': '5397830', 'n_tokens_mistral': 877, 'n_tokens_neox': 784, 'n_words': 161}