<commit_before><?php \yii::app()->clientScript->registerCoreScript('plupload'); ?>

<script type="text/javascript">
    $(document).ready(function() {
        new appResultsLatest();
    });
</script>

<div class="pull-right" style="margin-left: 20px;">
    <?php \web\widgets\filter\Year::create(array('checked' => $year)); ?>
</div>

<?php if (\yii::app()->user->checkAccess(\common\components\Rbac::OP_RESULT_CREATE)): ?>
    <button type="button" class="btn btn-lg btn-primary" id="pickfiles-modal" data-toggle="modal" data-target="#uploadModal">
        <?=\yii::t('app', 'Upload results')?>
    </button>
<?php endif; ?>

<?php if (\yii::app()->user->checkAccess(\common\models\User::ROLE_COORDINATOR_STATE)): ?>
    <a href="<?=$this->createUrl('/staff/reports')?>" class="btn btn-default">
        <?=\yii::t('app', 'Reports')?>
    </a>
<?php endif; ?>

<div class="page-header">
    <h1><?=\yii::t('app', '1st Phase Results')?></h1>
</div>
<?php if (count($states) > 0): ?>
<ul>
    <?php foreach($states as $state => $label): ?>
        <li>
            <a href="<?=$this->createUrl('/results/view', array('year' => $year, 'phase' => 1, 'state' => $state))?>"><commit_msg>#242 make dropdown with links to different reports<commit_after><?php \yii::app()->clientScript->registerCoreScript('plupload'); ?>

<script type="text/javascript">
    $(document).ready(function() {
        new appResultsLatest();
    });
</script>

<div class="pull-right" style="margin-left: 20px;">
    <?php \web\widgets\filter\Year::create(array('checked' => $year)); ?>
</div>

<?php if (\yii::app()->user->checkAccess(\common\components\Rbac::OP_RESULT_CREATE)): ?>
    <button type="button" class="btn btn-lg btn-primary" id="pickfiles-modal" data-toggle="modal" data-target="#uploadModal">
        <?=\yii::t('app', 'Upload results')?>
    </button>
<?php endif; ?>

<?php if (\yii::app()->user->checkAccess(\common\models\User::ROLE_COORDINATOR_STATE)): ?>
    <div class="dropdown" style="display: inline-block;">
        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
            <?=\yii::t('app', 'Reports')?> <span class="caret"></span>
        </button>
        <ul class="dropdown-menu" role="menu">
            <li>
                <a target="_blank" href="<?=$this->createUrl('/staff/reports/participants')?>">
                    <?=\yii::t('app', 'Participants')?>
                </a>
            </li>
            <li>
                <a target="_blank" href="<?=$this->createUrl('/staff/reports/winners')?>">
                    <?=\yii::t('app', 'Winners')?>
                </a>
            </li>
        </ul>
    </div>
<?php endif; ?>

<div class="page-header">
    <h1><?=\yii::t('app', '1st Phase Results')?></h1>
</div>
<?php if (count($states) > 0): ?>
<ul>
    <?php foreach($states as $state => $label): ?>
        <li>
            <a href="<?=$this->createUrl('/results/view', array('year' => $year, 'phase' => 1, 'state' => $state))?>">
{'fraction_non_alphanumeric': 0.24707846410684475, 'fraction_numerical': 0.005676126878130217, 'mean_word_length': 3.4385185185185185, 'pattern_counts': {'":': 0, '<': 76, '<?xml version=': 0, '>': 105, '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': '3852418', 'n_tokens_mistral': 1008, 'n_tokens_neox': 981, 'n_words': 177}