<commit_before><ion-header class="bp-header">
  <ion-navbar>
    <ion-title>
      <div [reveal-at-scroll-pos]="expandableHeader.headerHeight" [scrollArea]="scrollArea">
        {{ 'Settings' | translate }}
      </div>
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content #scrollArea>
  <div class="wrapper">
    <expandable-header [scrollArea]="scrollArea" [fadeFactor]="5" [disableFade]="true" #expandableHeader>
      <ion-toolbar class="wide-header__title">
        <expandable-header-primary>
          {{ 'Settings' | translate }}
        </expandable-header-primary>
      </ion-toolbar>
    </expandable-header>

    <ion-list class="bp-list">
      <ion-item-divider> {{ 'General' | translate }} </ion-item-divider>

      <button ion-item (click)="openAltCurrencyPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-currency.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">{{ 'Display Currency' | translate }}</div>
        </ion-label>
        <ion-note *ngIf="selectedAlternative" item-end>
          {{ selectedAlternative.name }}
        </ion-note>
      </button>

      <button ion-item (click)="openLanguagePage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-language.svg" />
        </ion-icon>
        <ion-label>
          <span class="main-label" translate>Language</span>
        </ion-label>
        <ion-note *ngIf="currentLanguageName" item-end>
          {{ currentLanguageName }}
        </ion-note>
      </button>

      <button ion-item *ngIf="isCordova" (click)="openLockPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-lock.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">{{ 'Lock App' | translate }}</div>
        </ion-label>
        <ion-note *ngIf="lockMethod === 'disabled'" item-end>
          {{ 'Disabled' | translate }}
        </ion-note>
        <ion-note *ngIf="lockMethod === 'pin'" item-end>
          {{ 'PIN' | translate }}
        </ion-note>
        <ion-note *ngIf="lockMethod === 'fingerprint'" item-end>
          {{ 'Biometric' | translate }}
        </ion-note>
      </button>

      <button ion-item (click)="openNotificationsPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-notifications.svg" />
        </ion-icon>
        <span class="main-label" translate>Notifications</span>
      </button>

      <ion-item class="align-with-button">
        <ion-icon class="item-img icon-settings" name="md-eye" item-start></ion-icon>
        <ion-label>
          <div class="main-label">
            {{'Show Portfolio Value' | translate}}
          </div>
        </ion-label>
        <ion-toggle [(ngModel)]="showBalance" (ionChange)="toggleShowBalanceFlag()"></ion-toggle>
      </ion-item>

      <ion-item-divider *ngIf="walletsGroups && walletsGroups[0]">
        {{ 'Crypto Wallets & Keys' | translate }}
      </ion-item-divider>

      <button ion-item (click)="openAddressBookPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-address-book.svg" />
        </ion-icon>
        <span class="main-label" translate>Address Book</span>
      </button>

      <button ion-item (click)="openFeePolicyPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-network.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">
            {{ 'Bitcoin Network Fee Policy' | translate }}
          </div>
        </ion-label>
      </button>

      <button ion-item *ngFor="let walletsGroup of walletsGroups; let i = index" (click)="openWalletGroupSettings(walletsGroup[0].keyId)">
        <ion-icon *ngIf="walletsGroup[0].canSign" class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-key.svg" />
        </ion-icon>
        <ion-icon *ngIf="!walletsGroup[0].canSign" class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-read-only.svg" width="26" />
        </ion-icon>
        <ion-label>
          <div class="main-label" *ngIf="walletsGroup[0].canSign">
            <span>{{profileProvider.getWalletGroup(walletsGroup[0].keyId).name}}</span>
          </div>
          <div class="main-label" *ngIf="!walletsGroup[0].canSign" translate>
            Read Only Wallets
          </div>
        </ion-label>
        <ion-note *ngIf="walletsGroup.length == 1" item-end>
          {{'{walletsGroupLength} Wallet' | translate:{walletsGroupLength: walletsGroup.length} }}
        </ion-note>
        <ion-note *ngIf="walletsGroup.length > 1" item-end>
          {{'{walletsGroupLength} Wallets' | translate:{walletsGroupLength: walletsGroup.length} }}
        </ion-note>
      </button>
      <button ion-item detail-none class="create-button" *ngIf="walletsGroups && walletsGroups[0]" (click)="goToAddView()">
        {{ 'Create or Import a Key' | translate }}
      </button>

      <ion-item-divider *ngIf="cardServices && cardServices[0]">
        {{ 'Cards' | translate }}
      </ion-item-divider>

      <div *ngIf="showBitPayCard && bitpayCardItems && bitpayCardItems[0]">
        <ion-list>
          <button ion-item *ngFor="let card of bitpayCardItems" (click)="openCardSettings(card.id)">
            <ion-icon class="item-img" item-start>
              <img src="assets/img/bitpay-card/bitpay-card-icon-list.svg" />
            </ion-icon>
            <div class="main-label">BitPay Visa&reg; Card ({{card.lastFourDigits}})</div>
            <div class="item-subtitle">
              {{card.balance ? (card.balance | currency:card.currencySymbol:2) : 'Add funds to get started'|translate}} {{card.updatedOn
            ? (' &middot; ' + (card.updatedOn * 1000 | amTimeAgo)) : ''}}</div>
          </button>
        </ion-list>
      </div>

      <button ion-item *ngFor="let card of (cardServices | orderBy: ['title'])" (click)="openSettingIntegration(card.name)">
        <ion-icon class="item-img" item-start>
          <img src="{{card.icon}}" />
        </ion-icon>
        <span class="main-label">{{ card.title }}</span>
        <ion-note item-end *ngIf="card.linked">
          <span *ngIf="card.linked" translate>Linked</span>
          <span *ngIf="!card.linked">
            {{ card.show ? ('On' | translate) : ('Off' | translate) }}
          </span>
        </ion-note>
      </button>

      <ng-container *ngIf="bitpayIdPairingEnabled">
        <ion-item-divider>
          {{'BitPay Account' | translate}}
        </ion-item-divider>

        <button ion-item (click)="openBitPayIdPage()">
          <ion-icon class="item-img" item-start>
            <img src="assets/img/bitpay-card/icon-bitpay.svg" width="25">
          </ion-icon>
          <span class="main-label">{{ bitPayIdUserInfo ? bitPayIdUserInfo.email : 'Connnect your BitPay ID' | translate}}</span>
          <ion-note item-end *ngIf="bitPayIdUserInfo">
            <span translate>Linked</span>
          </ion-note>
        </button>
      </ng-container><commit_msg>fixed typo<commit_after><ion-header class="bp-header">
  <ion-navbar>
    <ion-title>
      <div [reveal-at-scroll-pos]="expandableHeader.headerHeight" [scrollArea]="scrollArea">
        {{ 'Settings' | translate }}
      </div>
    </ion-title>
  </ion-navbar>
</ion-header>

<ion-content #scrollArea>
  <div class="wrapper">
    <expandable-header [scrollArea]="scrollArea" [fadeFactor]="5" [disableFade]="true" #expandableHeader>
      <ion-toolbar class="wide-header__title">
        <expandable-header-primary>
          {{ 'Settings' | translate }}
        </expandable-header-primary>
      </ion-toolbar>
    </expandable-header>

    <ion-list class="bp-list">
      <ion-item-divider> {{ 'General' | translate }} </ion-item-divider>

      <button ion-item (click)="openAltCurrencyPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-currency.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">{{ 'Display Currency' | translate }}</div>
        </ion-label>
        <ion-note *ngIf="selectedAlternative" item-end>
          {{ selectedAlternative.name }}
        </ion-note>
      </button>

      <button ion-item (click)="openLanguagePage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-language.svg" />
        </ion-icon>
        <ion-label>
          <span class="main-label" translate>Language</span>
        </ion-label>
        <ion-note *ngIf="currentLanguageName" item-end>
          {{ currentLanguageName }}
        </ion-note>
      </button>

      <button ion-item *ngIf="isCordova" (click)="openLockPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-lock.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">{{ 'Lock App' | translate }}</div>
        </ion-label>
        <ion-note *ngIf="lockMethod === 'disabled'" item-end>
          {{ 'Disabled' | translate }}
        </ion-note>
        <ion-note *ngIf="lockMethod === 'pin'" item-end>
          {{ 'PIN' | translate }}
        </ion-note>
        <ion-note *ngIf="lockMethod === 'fingerprint'" item-end>
          {{ 'Biometric' | translate }}
        </ion-note>
      </button>

      <button ion-item (click)="openNotificationsPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-notifications.svg" />
        </ion-icon>
        <span class="main-label" translate>Notifications</span>
      </button>

      <ion-item class="align-with-button">
        <ion-icon class="item-img icon-settings" name="md-eye" item-start></ion-icon>
        <ion-label>
          <div class="main-label">
            {{'Show Portfolio Value' | translate}}
          </div>
        </ion-label>
        <ion-toggle [(ngModel)]="showBalance" (ionChange)="toggleShowBalanceFlag()"></ion-toggle>
      </ion-item>

      <ion-item-divider *ngIf="walletsGroups && walletsGroups[0]">
        {{ 'Crypto Wallets & Keys' | translate }}
      </ion-item-divider>

      <button ion-item (click)="openAddressBookPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-address-book.svg" />
        </ion-icon>
        <span class="main-label" translate>Address Book</span>
      </button>

      <button ion-item (click)="openFeePolicyPage()">
        <ion-icon class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-network.svg" />
        </ion-icon>
        <ion-label>
          <div class="main-label">
            {{ 'Bitcoin Network Fee Policy' | translate }}
          </div>
        </ion-label>
      </button>

      <button ion-item *ngFor="let walletsGroup of walletsGroups; let i = index" (click)="openWalletGroupSettings(walletsGroup[0].keyId)">
        <ion-icon *ngIf="walletsGroup[0].canSign" class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-key.svg" />
        </ion-icon>
        <ion-icon *ngIf="!walletsGroup[0].canSign" class="item-img icon-settings" item-start>
          <img src="assets/img/settings-icons/icon-read-only.svg" width="26" />
        </ion-icon>
        <ion-label>
          <div class="main-label" *ngIf="walletsGroup[0].canSign">
            <span>{{profileProvider.getWalletGroup(walletsGroup[0].keyId).name}}</span>
          </div>
          <div class="main-label" *ngIf="!walletsGroup[0].canSign" translate>
            Read Only Wallets
          </div>
        </ion-label>
        <ion-note *ngIf="walletsGroup.length == 1" item-end>
          {{'{walletsGroupLength} Wallet' | translate:{walletsGroupLength: walletsGroup.length} }}
        </ion-note>
        <ion-note *ngIf="walletsGroup.length > 1" item-end>
          {{'{walletsGroupLength} Wallets' | translate:{walletsGroupLength: walletsGroup.length} }}
        </ion-note>
      </button>
      <button ion-item detail-none class="create-button" *ngIf="walletsGroups && walletsGroups[0]" (click)="goToAddView()">
        {{ 'Create or Import a Key' | translate }}
      </button>

      <ion-item-divider *ngIf="cardServices && cardServices[0]">
        {{ 'Cards' | translate }}
      </ion-item-divider>

      <div *ngIf="showBitPayCard && bitpayCardItems && bitpayCardItems[0]">
        <ion-list>
          <button ion-item *ngFor="let card of bitpayCardItems" (click)="openCardSettings(card.id)">
            <ion-icon class="item-img" item-start>
              <img src="assets/img/bitpay-card/bitpay-card-icon-list.svg" />
            </ion-icon>
            <div class="main-label">BitPay Visa&reg; Card ({{card.lastFourDigits}})</div>
            <div class="item-subtitle">
              {{card.balance ? (card.balance | currency:card.currencySymbol:2) : 'Add funds to get started'|translate}} {{card.updatedOn
            ? (' &middot; ' + (card.updatedOn * 1000 | amTimeAgo)) : ''}}</div>
          </button>
        </ion-list>
      </div>

      <button ion-item *ngFor="let card of (cardServices | orderBy: ['title'])" (click)="openSettingIntegration(card.name)">
        <ion-icon class="item-img" item-start>
          <img src="{{card.icon}}" />
        </ion-icon>
        <span class="main-label">{{ card.title }}</span>
        <ion-note item-end *ngIf="card.linked">
          <span *ngIf="card.linked" translate>Linked</span>
          <span *ngIf="!card.linked">
            {{ card.show ? ('On' | translate) : ('Off' | translate) }}
          </span>
        </ion-note>
      </button>

      <ng-container *ngIf="bitpayIdPairingEnabled">
        <ion-item-divider>
          {{'BitPay Account' | translate}}
        </ion-item-divider>

        <button ion-item (click)="openBitPayIdPage()">
          <ion-icon class="item-img" item-start>
            <img src="assets/img/bitpay-card/icon-bitpay.svg" width="25">
          </ion-icon>
          <span class="main-label">{{ bitPayIdUserInfo ? bitPayIdUserInfo.email : 'Connect your BitPay ID' | translate}}</span>
          <ion-note item-end *ngIf="bitPayIdUserInfo">
            <span translate>Linked</span>
          </ion-note>
        </button>
      </ng-container>
{'fraction_non_alphanumeric': 0.1756331279945243, 'fraction_numerical': 0.0030116358658453116, 'mean_word_length': 2.43464974141984, 'pattern_counts': {'":': 0, '<': 315, '<?xml version=': 0, '>': 317, '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': '3930507', 'n_tokens_mistral': 4684, 'n_tokens_neox': 4593, 'n_words': 784}