<commit_before><div *ngIf="volume">
  <mdl-card mdl-shadow="2">
    <mdl-card-title>
      <h2 mdl-card-title-text>{{ volume.name }}</h2>
    </mdl-card-title>
    <mdl-card-supporting-text>
      <div class="grid grid-right">
        <div class="row" *ngIf="volume.size">
          <div>{{ 'SIZE' | translate }}</div>
          <div>{{ (volume.size | division:2:30:2) }} {{ ('GB' | translate) }}</div>
        </div>
        <div class="row" *ngIf="volume.created">
          <div>{{ 'SPARE_DRIVE_DETAILS.CREATED' | translate }}</div>
          <div>{{ volume.created | date:'y-MM-dd H:m:s' }}</div>
        </div>
        <div class="row"  *ngIf="volume.storageType">
          <div>{{ 'SPARE_DRIVE_DETAILS.STORAGE_TYPE' | translate }}</div>
          <div>{{ ('DISK_OFFERING_STORAGE_TYPE.' + volume.storageType.toUpperCase()) | translate }}</div>
        </div>
      </div>
    </mdl-card-supporting-text>
  </mdl-card>

  <cs-description
    [description]="description"
    (descriptionChange)="changeDescription($event)"
  ></cs-description>

  <mdl-card mdl-shadow="2" *ngIf="volume.diskOffering">
    <mdl-card-title>
      <h2 mdl-card-title-text>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING_TITLE' | translate }}</h2>
    </mdl-card-title>
    <mdl-card-supporting-text>
      <div class="grid grid-right">
        <div class="row" *ngIf="volume.diskOffering.name">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.NAME' | translate }}</div>
          <div>{{ volume.diskOffering.name }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.displayText">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.DESCRIPTION' | translate }}</div>
          <div>{{ volume.diskOffering.displayText }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.minIops">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.MINIOPS' | translate }}</div>
          <div>{{ volume.diskOffering.minIops }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.maxIops">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.MAXIOPS' | translate }}</div>
          <div>{{ volume.diskOffering.maxIops }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskBytesReadRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.BYTES_READ_RATE' | translate }}</div>
          <div>{{ volume.diskOffering.diskBytesReadRate | division:10:6 }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskBytesWriteRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.BYTES_WRITE_RATE' | translate }}</div>
          <div>{{ volume.diskOffering.diskBytesWriteRate | division:10:6 }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskIopsReadRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.IOPS_READ_RATE' | translate }}</div>
          <div>{{ volume.diskOffering.diskIopsReadRate }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskIopsWriteRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.IOPS_WRITE_RATE' | translate }}</div>
          <div>{{ volume.diskOffering.diskIopsWriteRate }}</div>
        </div>
      </div>
    </mdl-card-supporting-text>
  </mdl-card>
</div>
<commit_msg>fix translations in spare drive details<commit_after><div *ngIf="volume">
  <mdl-card mdl-shadow="2">
    <mdl-card-title>
      <h2 mdl-card-title-text>{{ volume.name }}</h2>
    </mdl-card-title>
    <mdl-card-supporting-text>
      <div class="grid grid-right">
        <div class="row" *ngIf="volume.size">
          <div>{{ 'SIZE' | translate }}</div>
          <div>{{ (volume.size | division:2:30:2) }} {{ ('GB' | translate) }}</div>
        </div>
        <div class="row" *ngIf="volume.created">
          <div>{{ 'SPARE_DRIVE_DETAILS.CREATED' | translate }}</div>
          <div>{{ volume.created | date:'y-MM-dd H:m:s' }}</div>
        </div>
        <div class="row"  *ngIf="volume.storageType">
          <div>{{ 'SPARE_DRIVE_DETAILS.STORAGE_TYPE' | translate }}</div>
          <div>{{ ('DISK_OFFERING_STORAGE_TYPE.' + volume.storageType.toUpperCase()) | translate }}</div>
        </div>
      </div>
    </mdl-card-supporting-text>
  </mdl-card>

  <cs-description
    [description]="description"
    (descriptionChange)="changeDescription($event)"
  ></cs-description>

  <mdl-card mdl-shadow="2" *ngIf="volume.diskOffering">
    <mdl-card-title>
      <h2 mdl-card-title-text>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING_TITLE' | translate }}</h2>
    </mdl-card-title>
    <mdl-card-supporting-text>
      <div class="grid grid-right">
        <div class="row" *ngIf="volume.diskOffering.name">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.NAME' | translate }}</div>
          <div>{{ volume.diskOffering.name }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.displayText">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.DESCRIPTION' | translate }}</div>
          <div>{{ volume.diskOffering.displayText }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.minIops">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.MINIOPS' | translate }}</div>
          <div>{{ volume.diskOffering.minIops }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.maxIops">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.MAXIOPS' | translate }}</div>
          <div>{{ volume.diskOffering.maxIops }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskBytesReadRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.READ_RATE' | translate }}</div>
          <div>{{ 'MBPS' | translate:{ value: volume.diskOffering.diskBytesReadRate | division:10:6 } }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskBytesWriteRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.WRITE_RATE' | translate }}</div>
          <div>{{ 'MBPS' | translate:{ value: volume.diskOffering.diskBytesWriteRate | division:10:6 } }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskIopsReadRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.READ_RATE' | translate }}</div>
          <div>{{ 'IOPS' | translate:{ value: volume.diskOffering.diskIopsReadRate } }}</div>
        </div>
        <div class="row" *ngIf="volume.diskOffering.diskIopsWriteRate">
          <div>{{ 'SPARE_DRIVE_DETAILS.DISK_OFFERING.WRITE_RATE' | translate }}</div>
          <div>{{ 'IOPS' | translate:{ value: volume.diskOffering.diskIopsWriteRate } }}</div>
        </div>
      </div>
    </mdl-card-supporting-text>
  </mdl-card>
</div>

{'fraction_non_alphanumeric': 0.1863129333735303, 'fraction_numerical': 0.00482363581549593, 'mean_word_length': 2.9778177458033572, '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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1375455', 'n_tokens_mistral': 2465, 'n_tokens_neox': 2371, 'n_words': 355}