<commit_before><? defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<div id="ccm-profile-wrapper">
    <div id="ccm-profile-sidebar" style="float:left; width:20%; margin-right:5%">
        <div class="ccm-profile-header">
        	<a href="<?=View::url('/profile',$profile->getUserID())?>"><?= $av->outputUserAvatar($profile)?></a><br />
            <a href="<?=View::url('/profile',$profile->getUserID())?>"><?= $profile->getUsername()?></a>
        </div>
        <div style="margin-top:16px; padding-bottom:4px; margin-bottom:0px; font-weight:bold"><?=t('Member Since')?></div>
        <?=date('F d, Y', strtotime($profile->getUserDateAdded('user')))?>
		
		<? 
		$u = new User();
		if( $u->isRegistered() && $u->uID!=$profile->getUserID() ){ ?>
		<div style="margin-top:16px;">
			<? if( !UsersFriends::isFriend( $profile->getUserID(), $u->uID ) ){ ?>
				<a href="<?=View::url($c->getCollectionPath(),'add_friend','?fuID='.$profile->getUserID())?>">
					<?=t('Make this person my friend') ?>
				</a>
			<? }else{ ?>
				<a href="<?=View::url($c->getCollectionPath(),'remove_friend','?fuID='.$profile->getUserID() )?>">
					<?=t('Unfriend this person') ?>
				</a>
			<? } ?>
		</div>
		<? } ?>
		
		<style>
		#ccm-profile-sidebar ul.nav { list-style:none; margin:0px; padding:0px; margin-top:16px;}
		</style>		
        <div>
        <? 
		if($canEdit) {
			$bt = BlockType::getByHandle('autonav');
			$bt->controller->displayPages = 'below';
			$bt->controller->orderBy = 'display_asc';
			$bt->controller->displaySubPages = 'relevant';
			$bt->controller->displaySubPageLevels = 'enough';
			$bt->controller->displaySystemPages = true;
			$bt->render('view');
		}
		?>
        </div>
    </div>
    
    <div id="ccm-profile-body" style="float:left; width:70%;">	
        <h1><?=$profile->getUserName()?></h1>
        <?
        $uaks = UserAttributeKey::getPublicProfileList();
        foreach($uaks as $ua) { ?>
            <div>
                <label><?=$ua->getKeyName()?></label>
                <?=$profile->getAttribute($ua, 'display'); ?>
            </div>
        <? } ?>		
    </div>
	
	<div class="ccm-spacer"></div><commit_msg>derp<commit_after><? defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<div id="ccm-profile-wrapper">
    <div id="ccm-profile-sidebar" style="float:left; width:20%; margin-right:5%">
        <div class="ccm-profile-header">
        	<a href="<?=View::url('/profile',$profile->getUserID())?>"><?= $av->outputUserAvatar($profile)?></a><br />
            <a href="<?=View::url('/profile',$profile->getUserID())?>"><?= $profile->getUsername()?></a>
        </div>
        <div style="margin-top:16px; padding-bottom:4px; margin-bottom:0px; font-weight:bold"><?=t('Member Since')?></div>
        <?=date('F d, Y', strtotime($profile->getUserDateAdded('user')))?>
		
		<? 
		$u = new User();
		if( $u->isRegistered() && $u->uID!=$profile->getUserID() ){ ?>
		<div style="margin-top:16px;">
			<? if( !UsersFriends::isFriend( $profile->getUserID(), $u->uID ) ){ ?>
				<a href="<?=View::url($c->getCollectionPath(),'add_friend','?fuID='.$profile->getUserID())?>">
					<?=t('Make this person my friend') ?>
				</a>
			<? }else{ ?>
				<a href="<?=View::url($c->getCollectionPath(),'remove_friend','?fuID='.$profile->getUserID() )?>">
					<?=t('Unfriend this person') ?>
				</a>
			<? } ?>
		</div>
		<? } ?>
		
		<style>
		#ccm-profile-sidebar ul.nav { list-style:none; margin:0px; padding:0px; margin-top:16px;}
		</style>		
        <div>
        <? 
		if($u->getUserID() == $profile->getUserID()) {
			$bt = BlockType::getByHandle('autonav');
			$bt->controller->displayPages = 'below';
			$bt->controller->orderBy = 'display_asc';
			$bt->controller->displaySubPages = 'relevant';
			$bt->controller->displaySubPageLevels = 'enough';
			$bt->controller->displaySystemPages = true;
			$bt->render('view');
		}
		?>
        </div>
    </div>
    
    <div id="ccm-profile-body" style="float:left; width:70%;">	
        <h1><?=$profile->getUserName()?></h1>
        <?
        $uaks = UserAttributeKey::getPublicProfileList();
        foreach($uaks as $ua) { ?>
            <div>
                <label><?=$ua->getKeyName()?></label>
                <?=$profile->getAttribute($ua, 'display'); ?>
            </div>
        <? } ?>		
    </div>
	
	<div class="ccm-spacer"></div>
{'fraction_non_alphanumeric': 0.25225017309023773, 'fraction_numerical': 0.00830833141010847, 'mean_word_length': 3.3038728897715988, 'pattern_counts': {'":': 0, '<': 111, '<?xml version=': 0, '>': 169, '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': '928060', 'n_tokens_mistral': 1660, 'n_tokens_neox': 1537, 'n_words': 204}