<commit_before><?php // DO NOT USE SHORT OPEN TAGS IN THIS FILE - THIS IS PART OF THE PAGE THAT DISPLAYS THE WARNING ABOUT THE OPTION BEING DISABLED
use App\Auth;
use App\CoreUtils;
use App\Episodes;
use App\Notifications;
use App\UserPrefs;
/** @var $do string */
/** @var $scope array */
/** @var $view \App\View */
/** @var $CurrentEpisode \App\Models\Episode */ ?>
	<div class='mobile-nav'>
		<nav><ul><?=CoreUtils::getNavigationHTML(($view->name ?? null) === 'fatalerr')?></ul></nav>
	</div>
<?php
	echo CoreUtils::getSidebarLoggedIn();
	if (!defined('FATAL_ERROR')){
		if (Auth::$signed_in){
			$Notifications = Notifications::get(Notifications::UNREAD_ONLY); ?>
	<section class="notifications"<?=empty($Notifications)?' style="display:none"':''?>>
		<h2>Unread notifications</h2>
		<?= Notifications::getHTML($Notifications) ?>
	</section>
<?php   } ?>
	<section class="<?=Auth::$signed_in?'welcome':'login'?>">
		<h2 class="hidden">Welcome!</h2>
<?php	CoreUtils::renderSidebarUsefulLinks(); ?>
		<div class="buttons">
<?php
		if (Auth::$signed_in){ ?>
			<button id="signout" class="typcn typcn-arrow-back">Sign out</button>
<?php   }
		else { ?>
			<button class="typcn btn-da da-login" id="signin">Sign in</button>
<?php   }
		if (!UserPrefs::get('p_hidediscord') && (Auth::$signed_in ? !Auth::$user->isDiscordServerMember() : true)){ ?>
			<a class="btn typcn btn-discord discord-join" href="<?=DISCORD_INVITE_LINK?>">Join Discord</a>
<?php   } ?>
		</div>
	</section>
	<section id="episode-live-update" class="hidden">
		<h2><span class="live-circle"></span> Live updates enabled</h2>
		<p>Changes to the posts on this page are visible in real time to everyone who sees this message.<br>
			<small>If you'd like to have the option to disable this feature please <a class="send-feedback">let us know</a>.</small>
		</p>
	</section>
	<section id="entry-live-update" class="hidden">
		<h2><span class="live-circle"></span> Live updates enabled</h2>
		<p>Changes to post scores are visible in real time to everyone who sees this message.</p>
	</section>
<?php   if (($view->class ?? null) === 'episode' && !empty($CurrentEpisode)){ ?>
	<section id="voting">
		<h2><?=$CurrentEpisode->is_movie?'Movie':'Episode'?> rating</h2>
		<?=Episodes::getSidebarVoting($CurrentEpisode)?>
	</section>
<?php	}
		if (($view->class ?? null) === 'colorguide' && (!empty($Appearance) || !empty($Ponies)) && empty($Map)){ ?>
	<section id="hash-copy">
		<h2>Color Guide</h2>
		<p>You can click any colored square on this page to copy its HEX color code to your clipboard. Holding Shift while clicking will display a dialog with the RGB color values instead.</p>
		<button class='blue typcn typcn-refresh' id='toggle-copy-hash'>Checking&hellip;</button>
	</section>
<?php   }
		echo CoreUtils::getSidebarUpcoming();<commit_msg>Update post updates section text in sidebar<commit_after><?php // DO NOT USE SHORT OPEN TAGS IN THIS FILE - THIS IS PART OF THE PAGE THAT DISPLAYS THE WARNING ABOUT THE OPTION BEING DISABLED
use App\Auth;
use App\CoreUtils;
use App\Episodes;
use App\Notifications;
use App\UserPrefs;
/** @var $do string */
/** @var $scope array */
/** @var $view \App\View */
/** @var $CurrentEpisode \App\Models\Episode */ ?>
	<div class='mobile-nav'>
		<nav><ul><?=CoreUtils::getNavigationHTML(($view->name ?? null) === 'fatalerr')?></ul></nav>
	</div>
<?php
	echo CoreUtils::getSidebarLoggedIn();
	if (!defined('FATAL_ERROR')){
		if (Auth::$signed_in){
			$Notifications = Notifications::get(Notifications::UNREAD_ONLY); ?>
	<section class="notifications"<?=empty($Notifications)?' style="display:none"':''?>>
		<h2>Unread notifications</h2>
		<?= Notifications::getHTML($Notifications) ?>
	</section>
<?php   } ?>
	<section class="<?=Auth::$signed_in?'welcome':'login'?>">
		<h2 class="hidden">Welcome!</h2>
<?php	CoreUtils::renderSidebarUsefulLinks(); ?>
		<div class="buttons">
<?php
		if (Auth::$signed_in){ ?>
			<button id="signout" class="typcn typcn-arrow-back">Sign out</button>
<?php   }
		else { ?>
			<button class="typcn btn-da da-login" id="signin">Sign in</button>
<?php   }
		if (!UserPrefs::get('p_hidediscord') && (Auth::$signed_in ? !Auth::$user->isDiscordServerMember() : true)){ ?>
			<a class="btn typcn btn-discord discord-join" href="<?=DISCORD_INVITE_LINK?>">Join Discord</a>
<?php   } ?>
		</div>
	</section>
	<section id="episode-live-update" class="hidden">
		<h2><span class="live-circle"></span> Live updates enabled</h2>
		<p>Changes to the posts on this page are visible to you in real time.</p>
	</section>
	<section id="entry-live-update" class="hidden">
		<h2><span class="live-circle"></span> Live updates enabled</h2>
		<p>Changes to post scores are visible in real time to everyone who sees this message.</p>
	</section>
<?php   if (($view->class ?? null) === 'episode' && !empty($CurrentEpisode)){ ?>
	<section id="voting">
		<h2><?=$CurrentEpisode->is_movie?'Movie':'Episode'?> rating</h2>
		<?=Episodes::getSidebarVoting($CurrentEpisode)?>
	</section>
<?php	}
		if (($view->class ?? null) === 'colorguide' && (!empty($Appearance) || !empty($Ponies)) && empty($Map)){ ?>
	<section id="hash-copy">
		<h2>Color Guide</h2>
		<p>You can click any colored square on this page to copy its HEX color code to your clipboard. Holding Shift while clicking will display a dialog with the RGB color values instead.</p>
		<button class='blue typcn typcn-refresh' id='toggle-copy-hash'>Checking&hellip;</button>
	</section>
<?php   }
		echo CoreUtils::getSidebarUpcoming();
{'fraction_non_alphanumeric': 0.19527272727272726, 'fraction_numerical': 0.004363636363636364, 'mean_word_length': 5.301260022909507, 'pattern_counts': {'":': 0, '<': 144, '<?xml version=': 0, '>': 152, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 16, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5908994', 'n_tokens_mistral': 1961, 'n_tokens_neox': 1882, 'n_words': 470}