<commit_before><p-tabView *ngIf="(tokensBalances$ | async) || []; let tokens" [activeIndex]="tabIndex" [controlClose]="true" (onClose)="handleCloseTab($event)" (onChange)="handleChangeTab($event)">
  <p-tabPanel header="Tokens [{{ tokens.length }}]" [headerStyle]="{'font-weight': 'bold'}">
    <div class="ui-widget-header" style="padding:4px 10px;border-bottom: 0 none">
      <i class="fa fa-search" style="margin:4px 4px 0 0"></i>
      <input #gb type="text" pInputText size="25" placeholder="Filter" class="ui-inputtext ui-corner-all ui-state-default">
      <button type="button" pButton icon="fa fa-plus-circle" (click)="showRegisterDialog()" label="Register New Token"></button>
      <button type="button" pButton icon="fa fa-retweet" (click)="showSwapDialog()" label="Swap Tokens"></button>
      <button type="button" pButton icon="fa fa-refresh" [disabled]="refreshing" (click)="refreshTokens()" [label]="refreshing ? 'Refreshing' : 'Refresh Tokens'"></button>
    </div>
    <p-dataTable [value]="tokens" dataKey="address" [paginator]="true" [rows]="10" [resizableColumns]="true" [globalFilter]="gb">
      <p-column field="symbol" header="Symbol" [style]="{'width':'7em', 'text-align': 'center'}" [sortable]="true"></p-column>
      <p-column field="address" header="Address" [sortable]="true">
        <ng-template let-col let-data="rowData" pTemplate="body"><commit_msg>Temporarily remove the token swaps from the WebUI<commit_after><p-tabView *ngIf="(tokensBalances$ | async) || []; let tokens" [activeIndex]="tabIndex" [controlClose]="true" (onClose)="handleCloseTab($event)" (onChange)="handleChangeTab($event)">
  <p-tabPanel header="Tokens [{{ tokens.length }}]" [headerStyle]="{'font-weight': 'bold'}">
    <div class="ui-widget-header" style="padding:4px 10px;border-bottom: 0 none">
      <i class="fa fa-search" style="margin:4px 4px 0 0"></i>
      <input #gb type="text" pInputText size="25" placeholder="Filter" class="ui-inputtext ui-corner-all ui-state-default">
      <button type="button" pButton icon="fa fa-plus-circle" (click)="showRegisterDialog()" label="Register New Token"></button>
      <!-- <button type="button" pButton icon="fa fa-retweet" (click)="showSwapDialog()" label="Swap Tokens"></button> -->
      <button type="button" pButton icon="fa fa-refresh" [disabled]="refreshing" (click)="refreshTokens()" [label]="refreshing ? 'Refreshing' : 'Refresh Tokens'"></button>
    </div>
    <p-dataTable [value]="tokens" dataKey="address" [paginator]="true" [rows]="10" [resizableColumns]="true" [globalFilter]="gb">
      <p-column field="symbol" header="Symbol" [style]="{'width':'7em', 'text-align': 'center'}" [sortable]="true"></p-column>
      <p-column field="address" header="Address" [sortable]="true">
        <ng-template let-col let-data="rowData" pTemplate="body">
{'fraction_non_alphanumeric': 0.21106775452288046, 'fraction_numerical': 0.009223128769067045, 'mean_word_length': 6.230769230769231, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '7323337', 'n_tokens_mistral': 941, 'n_tokens_neox': 914, 'n_words': 180}