<commit_before><section class="content no-padding" ng-if="task">
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li ng-class="{'active': context.currentTab == 'overview'}">
                <a class="pointer-cursor" ng-click="changeTab('overview')" translate>Overview</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'blocks'}">
                <a class="pointer-cursor" ng-click="changeTab('blocks')" translate>Blocks</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'filelist'}">
                <a class="pointer-cursor" ng-click="changeTab('filelist')" translate>Files</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent">
                <a class="pointer-cursor" ng-click="changeTab('btpeers')" translate>Peers</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')" class="slim">
                <a class="pointer-cursor" ng-click="changeTab('settings')">
                    <i class="fa fa-gear"></i>
                </a>
            </li>
        </ul>

        <div class="tab-content no-padding">
            <div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
                <div class="settings-table striped hoverable">
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Name</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span class="allow-word-break" ng-bind="task.taskName"></span>
                        </div>
                    </div>
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Size</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span ng-bind="task.totalLength | readableVolume"></span>
                            <a class="pointer-cursor" ng-if="task.files" ng-click="changeTab('filelist')">
                                <span ng-bind="('format.settings.file-count' | translate: {count: task.selectedFileCount})"></span>
                            </a>
                        </div>
                    </div>
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Status</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span ng-bind="task | taskStatus | translate: {errorcode: task.errorCode}"></span>
                            <i class="icon-primary fa fa-question-circle" ng-if="task.errorCode && task.errorCode != '0' && task.errorMessage"
                                  ng-tooltip="{{task.errorMessage}}" ng-tooltip-container="body" ng-tooltip-placement="top"></i>
                        </div>
                    </div>
                    <div class="row" ng-if="task && task.status == 'error' && task.errorDescription">
                        <div class="setting-key col-sm-4">
                            <span translate>Error Description</span><commit_msg>support display bittorrent comment<commit_after><section class="content no-padding" ng-if="task">
    <div class="nav-tabs-custom">
        <ul class="nav nav-tabs">
            <li ng-class="{'active': context.currentTab == 'overview'}">
                <a class="pointer-cursor" ng-click="changeTab('overview')" translate>Overview</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'blocks'}">
                <a class="pointer-cursor" ng-click="changeTab('blocks')" translate>Blocks</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'filelist'}">
                <a class="pointer-cursor" ng-click="changeTab('filelist')" translate>Files</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'btpeers'}" ng-if="task && task.status == 'active' && task.bittorrent">
                <a class="pointer-cursor" ng-click="changeTab('btpeers')" translate>Peers</a>
            </li>
            <li ng-class="{'active': context.currentTab == 'settings'}" ng-if="task && (task.status == 'active' || task.status == 'waiting' || task.status == 'paused')" class="slim">
                <a class="pointer-cursor" ng-click="changeTab('settings')">
                    <i class="fa fa-gear"></i>
                </a>
            </li>
        </ul>

        <div class="tab-content no-padding">
            <div class="tab-pane" ng-class="{'active': context.currentTab == 'overview'}">
                <div class="settings-table striped hoverable">
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Name</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span class="allow-word-break" ng-bind="task.taskName" ng-tooltip-container="body" ng-tooltip-placement="bottom"
                                  ng-tooltip="{{(task.bittorrent && task.bittorrent.comment) ? task.bittorrent.comment : task.taskName}}"></span>
                        </div>
                    </div>
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Size</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span ng-bind="task.totalLength | readableVolume"></span>
                            <a class="pointer-cursor" ng-if="task.files" ng-click="changeTab('filelist')">
                                <span ng-bind="('format.settings.file-count' | translate: {count: task.selectedFileCount})"></span>
                            </a>
                        </div>
                    </div>
                    <div class="row" ng-if="task">
                        <div class="setting-key col-sm-4">
                            <span translate>Task Status</span>
                        </div>
                        <div class="setting-value col-sm-8">
                            <span ng-bind="task | taskStatus | translate: {errorcode: task.errorCode}"></span>
                            <i class="icon-primary fa fa-question-circle" ng-if="task.errorCode && task.errorCode != '0' && task.errorMessage"
                                  ng-tooltip="{{task.errorMessage}}" ng-tooltip-container="body" ng-tooltip-placement="top"></i>
                        </div>
                    </div>
                    <div class="row" ng-if="task && task.status == 'error' && task.errorDescription">
                        <div class="setting-key col-sm-4">
                            <span translate>Error Description</span>
{'fraction_non_alphanumeric': 0.16211017996977606, 'fraction_numerical': 0.002198104135183404, 'mean_word_length': 1.5225225225225225, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 3, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7456944', 'n_tokens_mistral': 1969, 'n_tokens_neox': 1893, 'n_words': 352}