<commit_before><template name="topicInfoItemList">
    <div class="panel-group itemPanel" id="disabled-accordion" role="tablist" aria-multiselectable="true">
        {{#each infoItem in items}}
            {{triggerAddDetails @index}}
            <div class="panel topicInfoItem" data-id="{{infoItem._id}}" data-topic-parent-id="{{topicParentId}}" data-parent-id="{{infoItem.parentTopicId}}">
                <div class="panel-heading {{topicStateClass @index}}" role="tab" id="headingOne" style="position: relative;">
                    {{#if hasDetails @index}}
                        <a role="button" class="expandDetails hidden-print expand-collapse-triangle"
                           data-toggle="collapse" data-parent="#accordion"
                           data-index="{{@index}}"
                           href="#collapse-{{infoItem._id}}"
                           style="position: absolute; top:0; left: 0; color: grey;">
                            {{#if isCollapsed @index}}
                                <span class="glyphicon glyphicon-triangle-right" aria-hidden="true"></span>
                            {{else}}
                                <span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span>
                            {{/if}}
                        </a>
                    {{/if}}
                    <h4 class="panel-title">
                        <div class="checkbox" style="font-size: 110%;">
                            <label for="btnToggleAIState_{{infoItem._id}}" class="checkboxLabel">
                                {{#if isActionItem @index}}
                                    <input type="checkbox" class="checkbox btnToggleAIState" data-index="{{@index}}"
                                           id="btnToggleAIState_{{infoItem._id}}" {{checkedState @index}} {{disabledState @index}}>
                                    <span class="checkbox-material"><span class="check"></span></span>
                                {{else}}
                                    <span class="glyphicon glyphicon-info-sign" style="cursor: auto"></span>
                                {{/if}}
                            </label>

                            <span id="{{idForEdit}}" style="cursor: {{cursorForEdit}};" data-index="{{@index}}">
                                {{#if isActionItem @index}}
                                    {{infoItem.subject}} {{responsiblesHelper @index}}
                                    {{#if infoItem.priority}}Prio:{{infoItem.priority}}{{/if}}
                                    Due: {{infoItem.duedate}}
                                {{else}}
                                    {{infoItem.subject}}
                                {{/if}}
                                <span class="labels">
                                    <!-- Labels -->
                                    {{#each label in getLabels @index}}
                                        <span class="label" style="background-color: {{color}}; color: {{fontColor}}">{{label.name}}</span>
                                    {{/each}}
                                </span>
                            </span>

                            <!-- New-Topic-Label -->
                            {{#if infoItem.isNew}}
                                <span class="badge">New</span>
                            {{/if}}

                            <!-- Manipulation Drop-Down Menu -->
                            <span class="pull-right pull-right-icons hidden-print">
                                {{#unless isReadonly}}
                                    <a href="#" id="btnItemDropdownMenu" class="panel-dropper dropdown-toggle"
                                       data-toggle="dropdown">
                                        <span class="glyphicon glyphicon-option-vertical"></span>
                                    </a>
                                    <ul class="dropdown-menu">
                                        <li>
                                            <a href="#" class="addDetail panel-link" title="Add details to item" data-index="{{@index}}">
                                                <span class="glyphicon glyphicon-plus"></span>
                                                Add Details
                                            </a>
                                        </li>
                                        <li class="divider"></li>
                                        <li>
                                            <a href="#" id="btnEditInfoItem" class="panel-link" title="Edit item" data-index="{{@index}}">
                                                <span class="glyphicon glyphicon-pencil"></span>
                                                Edit Item
                                            </a>
                                        </li>
                                        {{#if isInfoItem @index}}
                                            <li>
                                                <a href="#" class="btnPinInfoItem panel-link"
                                                   data-index="{{@index}}"
                                                   title="{{#if infoItem.isSticky}}Set as non-pinned info item{{else}}Set as pinned info item{{/if}}">
                                                    <span class="glyphicon glyphicon-pushpin {{#if infoItem.isSticky}}sticky-item active-icon{{else}}grey-icon{{/if}}"></span>
                                                    {{#if infoItem.isSticky}}Unset{{else}}Set{{/if}} Pinned
                                                </a>
                                            </li>
                                        {{/if}}
                                        <li>
                                            <a id="btnDelInfoItem" href="#" data-index="{{@index}}" class="panel-link" title="Delete item">
                                                <span class="glyphicon glyphicon-trash"></span>
                                                Delete Item
                                            </a>
                                        </li>
                                    </ul>
                                {{/unless}}

                                {{#if infoItem.isSticky}}
                                    <a href="#" class="panel-link btnPinInfoItem" title="Set as unpinned info item" data-index="{{@index}}">
                                        <span class="glyphicon glyphicon-pushpin sticky-item active-icon"></span>
                                    </a>
                                {{/if}}

                                {{#unless isReadonly}}
                                    <span class="itemDragDropHandle dragDropHandle glyphicon glyphicon-sort"></span>
                                {{/unless}}
                            </span>
                        </div>
                        <div class="clearfix"></div>
                    </h4>
                </div>

                <div id="collapse-{{infoItem._id}}" class="panel-collapse collapse" role="tabpanel"
                     aria-labelledby="headingOne">
                    <div id="id-details-{{infoItem._id}}" class="panel-body actionItemDetails">
                        {{#let itemIndex=@index itemId=infoItem._id}}
                            {{#each detailsArray itemIndex}}
                                <div class="detailRow row" style="margin: 0 0 -10px 0; vertical-align: baseline;">
                                    <div>
                                        <label for="detailInput_{{itemId}}_{{@index}}" class="detailDate"><strong>{{this.date}}</strong></label>
                                        <span id="detailActions_{{itemId}}_{{@index}}"
                                              class="pull-right pull-right-icons detailActions"
                                              style="display: none;">
                                            <span class="detailInputMarkdownHint glyphicon glyphicon-question-sign detailItemIcon"></span>
                                            <span class="detailInputDelete glyphicon glyphicon-trash detailItemIcon"
                                                data-id="{{itemId}}_{{@index}}"></span><commit_msg>Fix: Make Item collapse triangle change icon shape on expand/collapse<commit_after><template name="topicInfoItemList">
    <div class="panel-group itemPanel" id="disabled-accordion" role="tablist" aria-multiselectable="true">
        {{#each infoItem in items}}
            {{triggerAddDetails @index}}
            <div class="panel topicInfoItem"
                 data-id="{{infoItem._id}}"
                 data-topic-parent-id="{{topicParentId}}"
                 data-parent-id="{{infoItem.parentTopicId}}">
                <div class="panel-heading {{topicStateClass @index}}" role="tab" id="headingOne" style="position: relative;">
                    {{#if hasDetails @index}}
                        <a role="button" class="expandDetails hidden-print expand-collapse-triangle"
                           data-toggle="collapse" data-parent="#accordion"
                           href="#collapse-{{infoItem._id}}"
                           style="position: absolute; top:0; left: 0; color: grey;">
                            {{#if isCollapsed @index}}
                                <span class="glyphicon glyphicon-triangle-right" aria-hidden="true"></span>
                            {{else}}
                                <span class="glyphicon glyphicon-triangle-bottom" aria-hidden="true"></span>
                            {{/if}}
                        </a>
                    {{/if}}
                    <h4 class="panel-title">
                        <div class="checkbox" style="font-size: 110%;">
                            <label for="btnToggleAIState_{{infoItem._id}}" class="checkboxLabel">
                                {{#if isActionItem @index}}
                                    <input type="checkbox" class="checkbox btnToggleAIState" data-index="{{@index}}"
                                           id="btnToggleAIState_{{infoItem._id}}" {{checkedState @index}} {{disabledState @index}}>
                                    <span class="checkbox-material"><span class="check"></span></span>
                                {{else}}
                                    <span class="glyphicon glyphicon-info-sign" style="cursor: auto"></span>
                                {{/if}}
                            </label>

                            <span id="{{idForEdit}}" style="cursor: {{cursorForEdit}};" data-index="{{@index}}">
                                {{#if isActionItem @index}}
                                    {{infoItem.subject}} {{responsiblesHelper @index}}
                                    {{#if infoItem.priority}}Prio:{{infoItem.priority}}{{/if}}
                                    Due: {{infoItem.duedate}}
                                {{else}}
                                    {{infoItem.subject}}
                                {{/if}}
                                <span class="labels">
                                    <!-- Labels -->
                                    {{#each label in getLabels @index}}
                                        <span class="label" style="background-color: {{color}}; color: {{fontColor}}">{{label.name}}</span>
                                    {{/each}}
                                </span>
                            </span>

                            <!-- New-Topic-Label -->
                            {{#if infoItem.isNew}}
                                <span class="badge">New</span>
                            {{/if}}

                            <!-- Manipulation Drop-Down Menu -->
                            <span class="pull-right pull-right-icons hidden-print">
                                {{#unless isReadonly}}
                                    <a href="#" id="btnItemDropdownMenu" class="panel-dropper dropdown-toggle"
                                       data-toggle="dropdown">
                                        <span class="glyphicon glyphicon-option-vertical"></span>
                                    </a>
                                    <ul class="dropdown-menu">
                                        <li>
                                            <a href="#" class="addDetail panel-link" title="Add details to item" data-index="{{@index}}">
                                                <span class="glyphicon glyphicon-plus"></span>
                                                Add Details
                                            </a>
                                        </li>
                                        <li class="divider"></li>
                                        <li>
                                            <a href="#" id="btnEditInfoItem" class="panel-link" title="Edit item" data-index="{{@index}}">
                                                <span class="glyphicon glyphicon-pencil"></span>
                                                Edit Item
                                            </a>
                                        </li>
                                        {{#if isInfoItem @index}}
                                            <li>
                                                <a href="#" class="btnPinInfoItem panel-link"
                                                   data-index="{{@index}}"
                                                   title="{{#if infoItem.isSticky}}Set as non-pinned info item{{else}}Set as pinned info item{{/if}}">
                                                    <span class="glyphicon glyphicon-pushpin {{#if infoItem.isSticky}}sticky-item active-icon{{else}}grey-icon{{/if}}"></span>
                                                    {{#if infoItem.isSticky}}Unset{{else}}Set{{/if}} Pinned
                                                </a>
                                            </li>
                                        {{/if}}
                                        <li>
                                            <a id="btnDelInfoItem" href="#" data-index="{{@index}}" class="panel-link" title="Delete item">
                                                <span class="glyphicon glyphicon-trash"></span>
                                                Delete Item
                                            </a>
                                        </li>
                                    </ul>
                                {{/unless}}

                                {{#if infoItem.isSticky}}
                                    <a href="#" class="panel-link btnPinInfoItem" title="Set as unpinned info item" data-index="{{@index}}">
                                        <span class="glyphicon glyphicon-pushpin sticky-item active-icon"></span>
                                    </a>
                                {{/if}}

                                {{#unless isReadonly}}
                                    <span class="itemDragDropHandle dragDropHandle glyphicon glyphicon-sort"></span>
                                {{/unless}}
                            </span>
                        </div>
                        <div class="clearfix"></div>
                    </h4>
                </div>

                <div id="collapse-{{infoItem._id}}" class="panel-collapse collapse" role="tabpanel"
                     aria-labelledby="headingOne"
                     data-index="{{@index}}">
                    <div id="id-details-{{infoItem._id}}" class="panel-body actionItemDetails">
                        {{#let itemIndex=@index itemId=infoItem._id}}
                            {{#each detailsArray itemIndex}}
                                <div class="detailRow row" style="margin: 0 0 -10px 0; vertical-align: baseline;">
                                    <div>
                                        <label for="detailInput_{{itemId}}_{{@index}}" class="detailDate"><strong>{{this.date}}</strong></label>
                                        <span id="detailActions_{{itemId}}_{{@index}}"
                                              class="pull-right pull-right-icons detailActions"
                                              style="display: none;">
                                            <span class="detailInputMarkdownHint glyphicon glyphicon-question-sign detailItemIcon"></span>
                                            <span class="detailInputDelete glyphicon glyphicon-trash detailItemIcon"
                                                data-id="{{itemId}}_{{@index}}"></span>
{'fraction_non_alphanumeric': 0.1207910208444682, 'fraction_numerical': 0.0014252627828255835, 'mean_word_length': 0.909297052154195, 'pattern_counts': {'":': 0, '<': 183, '<?xml version=': 0, '>': 183, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 176, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '968537', 'n_tokens_mistral': 3476, 'n_tokens_neox': 3246, 'n_words': 648}