<commit_before><?php

use yii\helpers\Html;

//Ticket Decoration Bar displays the Ticket decorations
/* @var $this yii\web\View */
/* @var $model common\models\Ticket */
/* @var $isKanBan boolean */
?>

<?php
    if ($isKanBan) {
        echo $this->render('@frontend/views/ticket/partials/single/_ticketSingleDecorations', [
            'model' => $model,
            'section' => 2
            ]
        );
    } else {
        echo $this->render('@frontend/views/ticket/partials/single/_ticketSingleTags', [
            'model' => $model
            ]
        );
    }
?><commit_msg>Section two shows tags, when nothing else is to be shown in section two<commit_after><?php

use common\models\ticketDecoration\TicketDecorationInterface;

//Ticket Decoration Bar displays the Ticket decorations
/* @var $this yii\web\View */
/* @var $model common\models\Ticket */
/* @var $isKanBan boolean */

    $section = 2;
    $sectionOccupied = false;

    // Test if any decorations should be placed in this section
    foreach ($model->getBehaviors() as $ticketBehavior) {
        if ($ticketBehavior instanceof TicketDecorationInterface) {
            if ($ticketBehavior->displaySection == $section) {
                $sectionOccupied = true;
                break;
            }
        }
    }

    if ($isKanBan && $sectionOccupied) {
        echo $this->render('@frontend/views/ticket/partials/single/_ticketSingleDecorations', [
            'model' => $model,
            'section' => $section,
            ]
        );
    } else {
        echo $this->render('@frontend/views/ticket/partials/single/_ticketSingleTags', [
            'model' => $model
            ]
        );
    }

?>
{'fraction_non_alphanumeric': 0.13515115589804386, 'fraction_numerical': 0.0011855364552459987, 'mean_word_length': 2.2152380952380955, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 18, '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': '5043325', 'n_tokens_mistral': 519, 'n_tokens_neox': 491, 'n_words': 107}