<commit_before><?php
$gradeReleased = array_product(Set::extract($evalResult[User::get('id')], '/EvaluationMixeval/grade_release')) ||
    $event['Event']['auto_release'];
$commentReleased = array_product(Set::extract($evalResult[User::get('id')], '/EvaluationMixeval/comment_release')) ||
    $event['Event']['auto_release'];
?>
<!-- Render Event Info table -->
<?php echo $this->element('evaluations/view_event_info', array('controller'=>'evaluations', 'event'=>$event));?>

<h2><?php __('Summary')?></h2>
<table class="standardtable">
<tr>
    <th><?php __('Rating')?></th>
</tr>
<tr>
    <td>
    <?php
    if ($gradeReleased) {
        if (isset($memberScoreSummary[User::get('id')])) {
            $receivedAvePercent = number_format($memberScoreSummary[User::get('id')]['received_ave_score']/$mixeval['Mixeval']['total_marks'] * 100);
            $receivedAvePercent = $receivedAvePercent * (100 - $penalty)/100;
        } else {
            $receivedAvePercent = 0;
        }<commit_msg>fixed manual releasing mixed evaluation comments<commit_after><?php
$gradeReleased = array_product(Set::extract($evalResult[User::get('id')], '/EvaluationMixeval/grade_release')) ||
    $event['Event']['auto_release'];
$commentReleased = array_sum(Set::extract($evalResult[User::get('id')], '/EvaluationMixevalDetail/comment_release')) ||
    $event['Event']['auto_release'];
?>
<!-- Render Event Info table -->
<?php echo $this->element('evaluations/view_event_info', array('controller'=>'evaluations', 'event'=>$event));?>

<h2><?php __('Summary')?></h2>
<table class="standardtable">
<tr>
    <th><?php __('Rating')?></th>
</tr>
<tr>
    <td>
    <?php
    if ($gradeReleased) {
        if (isset($memberScoreSummary[User::get('id')])) {
            $receivedAvePercent = number_format($memberScoreSummary[User::get('id')]['received_ave_score']/$mixeval['Mixeval']['total_marks'] * 100);
            $receivedAvePercent = $receivedAvePercent * (100 - $penalty)/100;
        } else {
            $receivedAvePercent = 0;
        }
{'fraction_non_alphanumeric': 0.2121361618154909, 'fraction_numerical': 0.011840157868771583, 'mean_word_length': 5.182926829268292, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 37, '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': '5527117', 'n_tokens_mistral': 661, 'n_tokens_neox': 635, 'n_words': 91}