<commit_before><h1>Submissions [<?=$this->grid['rows']->count()?>]</h1>
<?
$submissionsReviewers = $this->grid['rows']->getNumberOfReviewers();

#if ($this->authInfo()->isAdmin() ):
	$eventlogModel = new Core_Model_Eventlog();
	$timestamps = $eventlogModel->getAllTimestamps();

	$selectValues = Zend_Registry::get('formconfig')->formdefaults->submit;

	$statusSelect = $this->formSelect('status',
		$this->status,
		array("onchange" => "this.form.submit();"),
		$selectValues->status->toArray()
	);

	$session = new Core_Model_Session();
	$sessionValues = $session->getSessionsForSelect(null, '---');
	if (count($sessionValues) > 1) {
		$sessionSelect = $this->formSelect('session_id',
			$this->session_id,
			array("onchange" => "this.form.submit();", "style" => "width:260px;"),
			$sessionValues
		);
	}
#endif;
$submitSelect = $this->formSelect('submission_id',
	$this->submission_id,
	array("onchange" => "this.form.submit();"),
	array(0 => 'all submissions', 1 => 'submissions that I should review')
);

$reviewModel = new Core_Model_Review();
$reviews = $reviewModel->getReviewsIndexedBySubmission($this->grid['rows'], $this->authInfo('user_id'));
$tiebreakers = $reviewModel->getAllTiebreakers();
?>

<? if ($this->authInfo()->isAdmin() ): ?>
<ul class="navlist">
<li><a href="/core/submit/new" title="new submission">new</a></li>
<li><a href="/core/submit/mail/1" title="<?= (isset($timestamps['mail_accepted']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_accepted']['timestamp']) :
	'There are no emails sent yet' ?>">email accepted</a></li>
<li><a href="/core/submit/mail/2" title="<?= (isset($timestamps['mail_rejected']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_rejected']['timestamp']) :
	'There are no emails sent yet' ?>">email rejected</a></li>
<li>
<? if (isset($timestamps['mail_reviewers']['timestamp'])): ?>
<a href="/core/review/mail/reminder/1" title="First emails sent:
<?= $this->formatDate($timestamps['mail_reviewers']['timestamp'])?>
	">email reviewers (reminder)</a></li>
<? else: ?>
<a href="/core/review/mail/" title="<?= (isset($timestamps['mail_reviewers']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_reviewers']['timestamp']) :
	'There are no emails sent yet' ?>">email reviewers</a></li>
<? endif; ?>
</ul>
<? endif; ?>

<form id="filterform" action="<?= $this->url() ?>" method="post">
<p>
Show or <a href="<?= $this->url(array('controller'=>'submit', 'action'=>'download'), 'main-module') ?>">download</a>
<?= $submitSelect ?> with status <?= $statusSelect ?> <? if (isset($sessionSelect)): ?> in session <?= $sessionSelect ?><? endif; ?>
</p>
</form>
<?
// filter out hidden columns
function globFilter($input)
{
	return !isset($input['hidden']);
}<commit_msg>Added navigation item to list papers assigned to reviewers<commit_after><h1>Submissions [<?=$this->grid['rows']->count()?>]</h1>
<?
$submissionsReviewers = $this->grid['rows']->getNumberOfReviewers();

#if ($this->authInfo()->isAdmin() ):
	$eventlogModel = new Core_Model_Eventlog();
	$timestamps = $eventlogModel->getAllTimestamps();

	$selectValues = Zend_Registry::get('formconfig')->formdefaults->submit;

	$statusSelect = $this->formSelect('status',
		$this->status,
		array("onchange" => "this.form.submit();"),
		$selectValues->status->toArray()
	);

	$session = new Core_Model_Session();
	$sessionValues = $session->getSessionsForSelect(null, '---');
	if (count($sessionValues) > 1) {
		$sessionSelect = $this->formSelect('session_id',
			$this->session_id,
			array("onchange" => "this.form.submit();", "style" => "width:260px;"),
			$sessionValues
		);
	}
#endif;
$submitSelect = $this->formSelect('submission_id',
	$this->submission_id,
	array("onchange" => "this.form.submit();"),
	array(0 => 'all submissions', 1 => 'submissions that I should review')
);

$reviewModel = new Core_Model_Review();
$reviews = $reviewModel->getReviewsIndexedBySubmission($this->grid['rows'], $this->authInfo('user_id'));
$tiebreakers = $reviewModel->getAllTiebreakers();
?>

<? if ($this->authInfo()->isAdmin() ): ?>
<ul class="navlist">
<li><a href="/core/submit/new" title="new submission">new</a></li>
<li><a href="/core/submit/mail/1" title="<?= (isset($timestamps['mail_accepted']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_accepted']['timestamp']) :
	'There are no emails sent yet' ?>">email accepted</a></li>
<li><a href="/core/submit/mail/2" title="<?= (isset($timestamps['mail_rejected']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_rejected']['timestamp']) :
	'There are no emails sent yet' ?>">email rejected</a></li>
<li>
<? if (isset($timestamps['mail_reviewers']['timestamp'])): ?>
<a href="/core/review/mail/reminder/1" title="First emails sent:
<?= $this->formatDate($timestamps['mail_reviewers']['timestamp'])?>
	">email reviewers (reminder)</a></li>
<? else: ?>
<a href="/core/review/mail/" title="<?= (isset($timestamps['mail_reviewers']['timestamp'])) ?
	'Last sent: '. $this->formatDate($timestamps['mail_reviewers']['timestamp']) :
	'There are no emails sent yet' ?>">email reviewers</a></li>
<? endif; ?>
<li><a href="/core/review/listpersonal" title="list assigned papers per user">show users' review progress</a></li>
</ul>
<? endif; ?>

<form id="filterform" action="<?= $this->url() ?>" method="post">
<p>
Show or <a href="<?= $this->url(array('controller'=>'submit', 'action'=>'download'), 'main-module') ?>">download</a>
<?= $submitSelect ?> with status <?= $statusSelect ?> <? if (isset($sessionSelect)): ?> in session <?= $sessionSelect ?><? endif; ?>
</p>
</form>
<?
// filter out hidden columns
function globFilter($input)
{
	return !isset($input['hidden']);
}
{'fraction_non_alphanumeric': 0.24054621848739496, 'fraction_numerical': 0.003851540616246499, 'mean_word_length': 6.912742382271468, 'pattern_counts': {'":': 0, '<': 103, '<?xml version=': 0, '>': 179, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4666498', 'n_tokens_mistral': 1942, 'n_tokens_neox': 1901, 'n_words': 340}