<commit_before><?php if ($item instanceof \thebuggenie\core\entities\LogItem): ?>
    <li>
        <?php if ($showtrace): ?>
            <span class="date"><?= tbg_formatTime($item->getTime(), 6); ?></span>
            <?php include_component('main/userdropdown', array('user' => $item->getUser(), 'userstate' => false)); ?>
        <?php endif; ?>
        <?php

            $previous_value = null;
            $new_value = null;
            try
            {
                switch($item->getChangeType())
                {
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CREATED:
                        echo fa_image_tag('file-text-o', ['class' => 'log_issue_created']);
                        echo __('The issue was created');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CLOSE:
                        echo fa_image_tag('check-square', ['class' => 'log_issue_closed']);
                        echo __('The issue was closed');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_REOPEN:
                        echo fa_image_tag('external-link-square', ['class' => 'log_issue_reopen']);
                        echo __('The issue was reopened');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_DEPENDS:
                        echo fa_image_tag('link', ['class' => 'log_issue_depends']);
                        echo __('The issues dependency changed: %change', array('%change' => '<strong>' . $item->getText() . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_update']);
                        echo __('The issue was updated: %change', array('%change' => '<strong>' . $item->getText() . '</strong>'));
                        if (trim($item->getPreviousValue()) || trim($item->getCurrentValue()))
                        {
                            echo '<br>';
                            echo $item->getPreviousValue() . ' &rArr; ' . $item->getCurrentValue();
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE_TITLE:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_title']);
                        echo __('Title updated: %previous_value => %new_value', array('%previous_value' => '<strong>' . $item->getPreviousValue() . '</strong>', '%new_value' => '<strong>' . $item->getCurrentValue() . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE_DESCRIPTION:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_title']);
                        echo __('Description updated: %previous_value => %new_value', array('%previous_value' => '<strong>' . $item->getPreviousValue() . '</strong>', '%new_value' => '<strong>' . $item->getCurrentValue() . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_STATUS:
                        $new_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getCurrentValue());
                        $background_color = ($new_item instanceof \thebuggenie\core\entities\Status) ? $new_item->getColor() : '#FFF';
                        $text_color = ($new_item instanceof \thebuggenie\core\entities\Status) ? $new_item->getTextColor() : '#000';
                        echo fa_image_tag('flag', ['class' => 'log_issue_status', 'style' => "background-color: {$background_color}; color: {$text_color};"]);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Status changed: %previous_value => %new_value by  %who_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>', '%who_value' => '<strong>'.$item->getUser().'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_RESOLUTION:
                        echo fa_image_tag('tasks', ['class' => 'log_issue_resolution']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Resolution::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Resolution::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Resolution changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PRIORITY:
                        echo fa_image_tag('exclamation-circle', ['class' => 'log_issue_priority']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Priority::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Priority::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Priority changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_SEVERITY:
                        echo fa_image_tag('exclamation-circle', ['class' => 'log_issue_severity']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Severity::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Severity::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Severity changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_REPRODUCABILITY:
                        echo fa_image_tag('repeat', ['class' => 'log_issue_reproducability']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Reproducability::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Reproducability::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Reproducability changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
                        echo fa_image_tag('file-code-o', ['class' => 'log_issue_type']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Issuetype::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Issuetype::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Issuetype changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CATEGORY:
                        echo fa_image_tag('pie-chart', ['class' => 'log_issue_category']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Category::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Category::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Category changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
                        echo fa_image_tag('flag-checkered', ['class' => 'log_issue_milestone']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Milestone::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Milestone::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Milestone changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
                        echo fa_image_tag('user-plus', ['class' => 'log_issue_owned']);
                        if ($item->hasChangeDetails())
                        {
                            echo __("Owned by changed to %user", array('%user' => '<strong>'.$item->getText().'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
                        echo fa_image_tag('user', ['class' => 'log_issue_posted']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\User::getB2DBTable()->selectById($item->getPreviousValue())) ? get_component_html('main/userdropdown_inline', ['user' => $old_item]) : '<strong>'.__('Unknown').'</strong>') : '<strong>'.__('Not determined').'</strong>';
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\User::getB2DBTable()->selectById($item->getCurrentValue())) ? get_component_html('main/userdropdown_inline', ['user' => $new_item]) : '<strong>'.__('Unknown').'</strong>') : '<strong>'.__('Not determined').'</strong>';
                            echo __("Posted by changed: %previous_value => %new_value", array('%previous_value' => $previous_value, '%new_value' => $new_value));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CUSTOMFIELD_CHANGED:
                        if ($item->hasChangeDetails())
                        {
                            $key_data = explode(':', $item->getText());
                            $key = $key_data[0];
                            $customdatatype = \thebuggenie\core\entities\CustomDatatype::getByKey($key);
                            if ($customdatatype instanceof \thebuggenie\core\entities\CustomDatatype)
                            {
                                $old_value = $item->getPreviousValue();
                                $new_value = $item->getCurrentValue();
                                switch ($customdatatype->getType())
                                {
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXT:
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_SMALL:
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_MAIN:
                                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_customfield']);
<commit_msg>fix for issue #2820<commit_after><?php if ($item instanceof \thebuggenie\core\entities\LogItem): ?>
    <li>
        <?php if ($showtrace): ?>
            <span class="date"><?= tbg_formatTime($item->getTime(), 6); ?></span>
            <?php include_component('main/userdropdown', array('user' => $item->getUser(), 'userstate' => false)); ?>
        <?php endif; ?>
        <?php

            $previous_value = null;
            $new_value = null;
            try
            {
                switch($item->getChangeType())
                {
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CREATED:
                        echo fa_image_tag('file-text-o', ['class' => 'log_issue_created']);
                        echo __('The issue was created');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CLOSE:
                        echo fa_image_tag('check-square', ['class' => 'log_issue_closed']);
                        echo __('The issue was closed');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_REOPEN:
                        echo fa_image_tag('external-link-square', ['class' => 'log_issue_reopen']);
                        echo __('The issue was reopened');
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_DEPENDS:
                        echo fa_image_tag('link', ['class' => 'log_issue_depends']);
                        echo __('The issues dependency changed: %change', array('%change' => '<strong>' . $item->getText() . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_update']);
                        echo __('The issue was updated: %change', array('%change' => '<strong>' . $item->getText() . '</strong>'));
                        if (trim($item->getPreviousValue()) || trim($item->getCurrentValue()))
                        {
                            echo '<br>';
                            echo tbg_template_escape($item->getPreviousValue()) . ' &rArr; ' . tbg_template_escape($item->getCurrentValue());
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE_TITLE:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_title']);
                        echo __('Title updated: %previous_value => %new_value', array('%previous_value' => '<strong>' . tbg_template_escape($item->getPreviousValue()) . '</strong>', '%new_value' => '<strong>' . tbg_template_escape($item->getCurrentValue()) . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_UPDATE_DESCRIPTION:
                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_title']);
                        echo __('Description updated: %previous_value => %new_value', array('%previous_value' => '<strong>' . tbg_template_escape($item->getPreviousValue()) . '</strong>', '%new_value' => '<strong>' . tbg_template_escape($item->getCurrentValue()) . '</strong>'));
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_STATUS:
                        $new_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getCurrentValue());
                        $background_color = ($new_item instanceof \thebuggenie\core\entities\Status) ? $new_item->getColor() : '#FFF';
                        $text_color = ($new_item instanceof \thebuggenie\core\entities\Status) ? $new_item->getTextColor() : '#000';
                        echo fa_image_tag('flag', ['class' => 'log_issue_status', 'style' => "background-color: {$background_color}; color: {$text_color};"]);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Status::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Status changed: %previous_value => %new_value by  %who_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>', '%who_value' => '<strong>'.$item->getUser().'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_RESOLUTION:
                        echo fa_image_tag('tasks', ['class' => 'log_issue_resolution']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Resolution::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Resolution::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Resolution changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_PRIORITY:
                        echo fa_image_tag('exclamation-circle', ['class' => 'log_issue_priority']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Priority::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Priority::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Priority changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_SEVERITY:
                        echo fa_image_tag('exclamation-circle', ['class' => 'log_issue_severity']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Severity::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Severity::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Severity changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_REPRODUCABILITY:
                        echo fa_image_tag('repeat', ['class' => 'log_issue_reproducability']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Reproducability::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Reproducability::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Reproducability changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_ISSUETYPE:
                        echo fa_image_tag('file-code-o', ['class' => 'log_issue_type']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Issuetype::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Issuetype::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Issuetype changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CATEGORY:
                        echo fa_image_tag('pie-chart', ['class' => 'log_issue_category']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Category::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Category::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Category changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_MILESTONE:
                        echo fa_image_tag('flag-checkered', ['class' => 'log_issue_milestone']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\Milestone::getB2DBTable()->selectById($item->getPreviousValue())) ? __($old_item->getName()) : __('Unknown')) : __('Not determined');
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\Milestone::getB2DBTable()->selectById($item->getCurrentValue())) ? __($new_item->getName()) : __('Unknown')) : __('Not determined');
                            echo __("Milestone changed: %previous_value => %new_value", array('%previous_value' => '<strong>'.$previous_value.'</strong>', '%new_value' => '<strong>'.$new_value.'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_OWNED:
                        echo fa_image_tag('user-plus', ['class' => 'log_issue_owned']);
                        if ($item->hasChangeDetails())
                        {
                            echo __("Owned by changed to %user", array('%user' => '<strong>'.$item->getText().'</strong>'));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_POSTED:
                        echo fa_image_tag('user', ['class' => 'log_issue_posted']);
                        if ($item->hasChangeDetails())
                        {
                            $previous_value = ($item->getPreviousValue()) ? (($old_item = \thebuggenie\core\entities\User::getB2DBTable()->selectById($item->getPreviousValue())) ? get_component_html('main/userdropdown_inline', ['user' => $old_item]) : '<strong>'.__('Unknown').'</strong>') : '<strong>'.__('Not determined').'</strong>';
                            $new_value = ($item->getCurrentValue()) ? (($new_item = \thebuggenie\core\entities\User::getB2DBTable()->selectById($item->getCurrentValue())) ? get_component_html('main/userdropdown_inline', ['user' => $new_item]) : '<strong>'.__('Unknown').'</strong>') : '<strong>'.__('Not determined').'</strong>';
                            echo __("Posted by changed: %previous_value => %new_value", array('%previous_value' => $previous_value, '%new_value' => $new_value));
                        }
                        break;
                    case \thebuggenie\core\entities\tables\Log::LOG_ISSUE_CUSTOMFIELD_CHANGED:
                        if ($item->hasChangeDetails())
                        {
                            $key_data = explode(':', $item->getText());
                            $key = $key_data[0];
                            $customdatatype = \thebuggenie\core\entities\CustomDatatype::getByKey($key);
                            if ($customdatatype instanceof \thebuggenie\core\entities\CustomDatatype)
                            {
                                $old_value = $item->getPreviousValue();
                                $new_value = $item->getCurrentValue();
                                switch ($customdatatype->getType())
                                {
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXT:
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_SMALL:
                                    case \thebuggenie\core\entities\CustomDatatype::INPUT_TEXTAREA_MAIN:
                                        $old_value = tbg_template_escape($item->getPreviousValue());
                                        $new_value = tbg_template_escape($item->getCurrentValue());
                                        echo fa_image_tag('pencil-square-o', ['class' => 'log_issue_customfield']);

{'fraction_non_alphanumeric': 0.16802049277023157, 'fraction_numerical': 0.0017526711382250834, 'mean_word_length': 2.049331963001028, 'pattern_counts': {'":': 0, '<': 135, '<?xml version=': 0, '>': 463, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 18, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3307405', 'n_tokens_mistral': 7941, 'n_tokens_neox': 7857, 'n_words': 1067}