<commit_before><?php if (!empty($errors) || !(empty($permission_errors))): ?>
    <div class="rounded_box report_issue_desc red borderless" style="margin-bottom: 5px;">
        <strong><?php echo __('One or more errors occured when trying to file your issue'); ?>:</strong>
        <ul>
            <?php foreach ($errors as $key => $error): ?>
                <?php if (is_array($error)): ?>
                    <?php foreach ($error as $suberror): ?>
                        <li><?php echo $suberror; ?></li>
                    <?php endforeach; ?>
                <?php elseif (is_bool($error)): ?>
                    <li>
                        <?php if ($key == 'title' || in_array($key, \thebuggenie\core\entities\Datatype::getAvailableFields(true)) || in_array($key, array('pain_bug_type', 'pain_likelihood', 'pain_effect'))): ?>
                            <?php

                                switch ($key)
                                {
                                    case 'title':
                                        echo __('You have to specify a title');
                                        break;
                                    case 'description':
                                        echo __('You have to enter a description in the "%description" field', array('%description' => __('Description')));
                                        break;
                                    case 'shortname':
                                        echo __('You have to enter a label in the "%issue_label" field', array('%issue_label' => __('Issue label')));
                                        break;
                                    case 'reproduction_steps':
                                        echo __('You have to enter something in the "%steps_to_reproduce" field', array('%steps_to_reproduce' => __('Steps to reproduce')));
                                        break;
                                    case 'edition':
                                        echo __("Please specify a valid edition");
                                        break;
                                    case 'build':
                                        echo __("Please specify a valid version / release");
                                        break;
                                    case 'component':
                                        echo __("Please specify a valid component");
                                        break;
                                    case 'category':
                                        echo __("Please specify a valid category");
                                        break;
                                    case 'status':
                                        echo __("Please specify a valid status");
                                        break;
                                    case 'priority':
                                        echo __("Please specify a valid priority");
                                        break;
                                    case 'reproducability':
                                        echo __("Please specify a valid reproducability");
                                        break;
                                    case 'severity':
                                        echo __("Please specify a valid severity");
                                        break;
                                    case 'resolution':
                                        echo __("Please specify a valid resolution");
                                        break;
                                    case 'milestone':
                                        echo __("Please specify a valid milestone");
                                        break;
                                    case 'estimated_time':
                                        echo __("Please enter a valid estimate");
                                        break;
                                    case 'spent_time':
                                        echo __("Please enter time already spent working on this issue");
                                        break;
                                    case 'percent_complete':
                                        echo __("Please enter how many percent complete the issue already is");
                                        break;
                                    case 'pain_bug_type':
                                        echo __("Please enter a valid triaged bug type");
                                        break;
                                    case 'pain_likelihood':
                                        echo __("Please enter a valid triaged likelihood");
                                        break;
                                    case 'pain_effect':
                                        echo __("Please enter a valid triaged effect");
                                        break;
                                    default:
                                        echo __("Please triage the reported issue, so the user pain score can be properly calculated");
                                        break;
                                }

                            ?>
                        <?php elseif (\thebuggenie\core\entities\CustomDatatype::doesKeyExist($key)): ?>
                            <?php echo __('Required field "%field_name" is missing or invalid', array('%field_name' => \thebuggenie\core\entities\CustomDatatype::getByKey($key)->getDescription())); ?>
                        <?php else:

                            $event = new \thebuggenie\core\framework\Event('core', 'reportissue.validationerror', $key);
                            $event->setReturnValue($key);
                            $event->triggerUntilProcessed();
                            echo __('A validation error occured: %error', array('%error' => $event->getReturnValue()));

                        ?>
                        <?php endif; ?>
                    </li>
                <?php else: ?>
                    <li><?php echo $error; ?></li>
                <?php endif; ?>
            <?php endforeach; ?>
            <?php foreach ($permission_errors as $key => $p_error): ?>
                <?php if (is_array($p_error)): ?>
                    <?php foreach ($p_error as $p_suberror): ?>
                        <li><?php echo $p_suberror; ?></li>
                    <?php endforeach; ?>
                <?php elseif (is_bool($p_error)): ?>
                    <li>
                        <?php if (in_array($key, \thebuggenie\core\entities\Datatype::getAvailableFields(true))): ?>
                            <?php

                                switch ($key)
                                {
                                    case 'description':
                                        echo __("You don't have access to enter a description");
                                        break;
                                    case 'shortname':
                                        echo __("You don't have access to enter an issue label");
                                        break;
                                    case 'reproduction_steps':
                                        echo __("You don't have access to enter steps to reproduce");
                                        break;
                                    case 'edition':
                                        echo __("You don't have access to add edition information");
                                        break;
                                    case 'build':
                                        echo __("You don't have access to enter release information");
                                        break;
                                    case 'component':
                                        echo __("You don't have access to enter component information");
                                        break;
                                    case 'category':
                                        echo __("You don't have access to specify a category");
                                        break;
                                    case 'status':
                                        echo __("You don't have access to specify a status");
                                        break;
                                    case 'priority':
                                        echo __("You don't have access to specify a priority");
                                        break;
                                    case 'reproducability':
                                        echo __("You don't have access to specify reproducability");
                                        break;
                                    case 'severity':
                                        echo __("You don't have access to specify a severity");
                                        break;
                                    case 'resolution':
                                        echo __("You don't have access to specify a resolution");
                                        break;
                                    case 'estimated_time':
                                        echo __("You don't have access to estimate the issue");
                                        break;
                                    case 'spent_time':
                                        echo __("You don't have access to specify time already spent working on the issue");
                                        break;
                                    case 'percent_complete':
                                        echo __("You don't have access to specify how many percent complete the issue is");
                                        break;
                                }

                            ?>
                        <?php else: ?>
                            <?php echo __('You don\'t have access to enter "%field_name"', array('%field_name' => \thebuggenie\core\entities\CustomDatatype::getByKey($key)->getDescription())); ?>
                        <?php endif; ?>
                    </li>
                <?php else: ?>
                    <li><?php echo $p_error; ?></li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
        <?php echo __('Please try to fix the error described above, and then click the %file_issue button again', array('%file_issue' => '<b>'.__('File issue').'</b>')); ?>.
    </div>
<?php elseif ($issue instanceof \thebuggenie\core\entities\Issue): ?>
    <div class="rounded_box report_issue_desc <?php if (!$tbg_request->isAjaxCall()): ?>green<?php endif; ?> borderless" style="margin-bottom: 10px;" id="report_issue_reported_issue_details">
        <div style="font-size: 1.1em;">
            <strong><?php echo __('The following issue was reported: %issue_title', array('%issue_title' => '')); ?>:</strong>
            <?php echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())), $issue->getFormattedIssueNo(true) . ' - ' . $issue->getTitle()); ?><br>
        </div>
        <span class="faded_out"><?php echo __('Click the link to visit the reported issue'); ?></span>
    </div><commit_msg>Removed duplicated colons ":" character.<commit_after><?php if (!empty($errors) || !(empty($permission_errors))): ?>
    <div class="rounded_box report_issue_desc red borderless" style="margin-bottom: 5px;">
        <strong><?php echo __('One or more errors occured when trying to file your issue'); ?>:</strong>
        <ul>
            <?php foreach ($errors as $key => $error): ?>
                <?php if (is_array($error)): ?>
                    <?php foreach ($error as $suberror): ?>
                        <li><?php echo $suberror; ?></li>
                    <?php endforeach; ?>
                <?php elseif (is_bool($error)): ?>
                    <li>
                        <?php if ($key == 'title' || in_array($key, \thebuggenie\core\entities\Datatype::getAvailableFields(true)) || in_array($key, array('pain_bug_type', 'pain_likelihood', 'pain_effect'))): ?>
                            <?php

                                switch ($key)
                                {
                                    case 'title':
                                        echo __('You have to specify a title');
                                        break;
                                    case 'description':
                                        echo __('You have to enter a description in the "%description" field', array('%description' => __('Description')));
                                        break;
                                    case 'shortname':
                                        echo __('You have to enter a label in the "%issue_label" field', array('%issue_label' => __('Issue label')));
                                        break;
                                    case 'reproduction_steps':
                                        echo __('You have to enter something in the "%steps_to_reproduce" field', array('%steps_to_reproduce' => __('Steps to reproduce')));
                                        break;
                                    case 'edition':
                                        echo __("Please specify a valid edition");
                                        break;
                                    case 'build':
                                        echo __("Please specify a valid version / release");
                                        break;
                                    case 'component':
                                        echo __("Please specify a valid component");
                                        break;
                                    case 'category':
                                        echo __("Please specify a valid category");
                                        break;
                                    case 'status':
                                        echo __("Please specify a valid status");
                                        break;
                                    case 'priority':
                                        echo __("Please specify a valid priority");
                                        break;
                                    case 'reproducability':
                                        echo __("Please specify a valid reproducability");
                                        break;
                                    case 'severity':
                                        echo __("Please specify a valid severity");
                                        break;
                                    case 'resolution':
                                        echo __("Please specify a valid resolution");
                                        break;
                                    case 'milestone':
                                        echo __("Please specify a valid milestone");
                                        break;
                                    case 'estimated_time':
                                        echo __("Please enter a valid estimate");
                                        break;
                                    case 'spent_time':
                                        echo __("Please enter time already spent working on this issue");
                                        break;
                                    case 'percent_complete':
                                        echo __("Please enter how many percent complete the issue already is");
                                        break;
                                    case 'pain_bug_type':
                                        echo __("Please enter a valid triaged bug type");
                                        break;
                                    case 'pain_likelihood':
                                        echo __("Please enter a valid triaged likelihood");
                                        break;
                                    case 'pain_effect':
                                        echo __("Please enter a valid triaged effect");
                                        break;
                                    default:
                                        echo __("Please triage the reported issue, so the user pain score can be properly calculated");
                                        break;
                                }

                            ?>
                        <?php elseif (\thebuggenie\core\entities\CustomDatatype::doesKeyExist($key)): ?>
                            <?php echo __('Required field "%field_name" is missing or invalid', array('%field_name' => \thebuggenie\core\entities\CustomDatatype::getByKey($key)->getDescription())); ?>
                        <?php else:

                            $event = new \thebuggenie\core\framework\Event('core', 'reportissue.validationerror', $key);
                            $event->setReturnValue($key);
                            $event->triggerUntilProcessed();
                            echo __('A validation error occured: %error', array('%error' => $event->getReturnValue()));

                        ?>
                        <?php endif; ?>
                    </li>
                <?php else: ?>
                    <li><?php echo $error; ?></li>
                <?php endif; ?>
            <?php endforeach; ?>
            <?php foreach ($permission_errors as $key => $p_error): ?>
                <?php if (is_array($p_error)): ?>
                    <?php foreach ($p_error as $p_suberror): ?>
                        <li><?php echo $p_suberror; ?></li>
                    <?php endforeach; ?>
                <?php elseif (is_bool($p_error)): ?>
                    <li>
                        <?php if (in_array($key, \thebuggenie\core\entities\Datatype::getAvailableFields(true))): ?>
                            <?php

                                switch ($key)
                                {
                                    case 'description':
                                        echo __("You don't have access to enter a description");
                                        break;
                                    case 'shortname':
                                        echo __("You don't have access to enter an issue label");
                                        break;
                                    case 'reproduction_steps':
                                        echo __("You don't have access to enter steps to reproduce");
                                        break;
                                    case 'edition':
                                        echo __("You don't have access to add edition information");
                                        break;
                                    case 'build':
                                        echo __("You don't have access to enter release information");
                                        break;
                                    case 'component':
                                        echo __("You don't have access to enter component information");
                                        break;
                                    case 'category':
                                        echo __("You don't have access to specify a category");
                                        break;
                                    case 'status':
                                        echo __("You don't have access to specify a status");
                                        break;
                                    case 'priority':
                                        echo __("You don't have access to specify a priority");
                                        break;
                                    case 'reproducability':
                                        echo __("You don't have access to specify reproducability");
                                        break;
                                    case 'severity':
                                        echo __("You don't have access to specify a severity");
                                        break;
                                    case 'resolution':
                                        echo __("You don't have access to specify a resolution");
                                        break;
                                    case 'estimated_time':
                                        echo __("You don't have access to estimate the issue");
                                        break;
                                    case 'spent_time':
                                        echo __("You don't have access to specify time already spent working on the issue");
                                        break;
                                    case 'percent_complete':
                                        echo __("You don't have access to specify how many percent complete the issue is");
                                        break;
                                }

                            ?>
                        <?php else: ?>
                            <?php echo __('You don\'t have access to enter "%field_name"', array('%field_name' => \thebuggenie\core\entities\CustomDatatype::getByKey($key)->getDescription())); ?>
                        <?php endif; ?>
                    </li>
                <?php else: ?>
                    <li><?php echo $p_error; ?></li>
                <?php endif; ?>
            <?php endforeach; ?>
        </ul>
        <?php echo __('Please try to fix the error described above, and then click the %file_issue button again', array('%file_issue' => '<b>'.__('File issue').'</b>')); ?>.
    </div>
<?php elseif ($issue instanceof \thebuggenie\core\entities\Issue): ?>
    <div class="rounded_box report_issue_desc <?php if (!$tbg_request->isAjaxCall()): ?>green<?php endif; ?> borderless" style="margin-bottom: 10px;" id="report_issue_reported_issue_details">
        <div style="font-size: 1.1em;">
            <strong><?php echo __('The following issue was reported: %issue_title', array('%issue_title' => '')); ?></strong>
            <?php echo link_tag(make_url('viewissue', array('project_key' => $issue->getProject()->getKey(), 'issue_no' => $issue->getFormattedIssueNo())), $issue->getFormattedIssueNo(true) . ' - ' . $issue->getTitle()); ?><br>
        </div>
        <span class="faded_out"><?php echo __('Click the link to visit the reported issue'); ?></span>
    </div>
{'fraction_non_alphanumeric': 0.09143082449837904, 'fraction_numerical': 0.0004380969070358363, 'mean_word_length': 0.8531417437895762, 'pattern_counts': {'":': 1, '<': 141, '<?xml version=': 0, '>': 187, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 358, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4256776', 'n_tokens_mistral': 4199, 'n_tokens_neox': 4002, 'n_words': 1334}