<commit_before><div ng-controller="walletHomeController as home">

  <div class="row columns m20tp" ng-show="index.noFocusedWallet">
    <div class="text-center text-warning m20b">
      <i class="fi-alert"></i> <span translate>You do not have any wallet</span>
    </div>
    <button class="button black expand" ng-click="$root.go('add')" translate>Create</button>
  </div>

  <div class="onGoingProcess" ng-show="index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':'#222'}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    <span translate>Reconnecting to Wallet Service...</span>
    </div>
  </div>

  <div class="onGoingProcess" ng-show="index.anyOnGoingProcess && !index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    <span translate ng-show="
      index.onGoingProcessName == 'openingWallet'
      || index.onGoingProcessName == 'updatingStatus'
      || index.onGoingProcessName == 'updatingBalance'
      "> Updating Wallet... </span>
    <span translate ng-show="index.onGoingProcessName == 'scanning'">Scanning Wallet funds...</span>
    <span translate ng-show="index.onGoingProcessName == 'recreating'">Recreating Wallet...</span>
    </div>
  </div>

  <div class="onGoingProcess" ng-show="home.onGoingProcess && !index.anyOnGoingProces && !index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    {{home.onGoingProcess|translate}}...
    </div>
  </div>

  <div class="oh" ng-show="!index.noFocusedWallet">

<div id="walletHome" class="walletHome tab-view tab-in">
  <div class="oh">
  <div class="amount" ng-style="{'background-color':index.backgroundColor}">
    <div ng-if="!index.anyOnGoingProcess && !index.notAuthorized">
      <div ng-show="index.updateError" ng-click='index.openWallet()'>
        <span translate>Could not update Wallet</span>
        <br><span translate>Tap to retry</span>
      </div>

      <div ng-show="index.walletScanStatus == 'error'" ng-click='index.retryScan()'>
        <span translate>Scan status finished with error</span>
        <br><span translate>Tap to retry</span>
      </div>

      <div ng-show="!index.updateError && index.walletScanStatus != 'error'">
        <strong class="size-36">{{index.totalBalanceStr}}</strong>
        <div class="size-14"
          ng-if="index.totalBalanceAlternative">
          {{index.totalBalanceAlternative}} {{index.alternativeIsoCode}}
        </div>
      </div>
    </div>

    <div ng-if="index.anyOnGoingProcess">
      <div class="size-36">
        <strong>...</strong>
      </div>
    </div>
  </div> <!-- amount -->

  <div class="pr columns line-b">
    <div class="avatar-wallet left"
      ng-style="{'background-color':index.backgroundColor}">{{index.walletName | limitTo: 1}}
    </div>
    <div class="right">
      <a ng-click="$root.go('preferences')" class="button outline light-gray tiny m0">
        <i class="fi-widget size-18 vm"></i>
        <span class="show-for-medium-up" translate>Preferences</span>
      </a>
    </div>
    <div class="wallet-info" ng-click="openCopayersModal(index.copayers, index.copayerId)">
      <p class="m0">
      {{index.m}} <span translate>of</span>  {{index.n}}
      </p>
      <div class="size-12 text-gray">
        <span ng-if="index.n > 1" translate>Multisignature wallet </span>
        <span ng-if="index.n == 1" translate>Personal Wallet</span>
        <span ng-if="index.network != 'livenet'"> - Testnet</span>
      </div>
    </div>
  </div>
  </div> <!-- oh -->


  <div class="m20t" ng-show="index.notAuthorized && ! index.anyOnGoingProcess">
    <div class="text-center text-warning">
      <i class="fi-alert"></i>
      <span translate>
        WARNING: Wallet not registered
      </span>
    </div>
    <div class="text-center text-gray m15r m15l" translate>
      This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information.
    </div>
    <div class="text-center m10t ">
      <span class="button outline dark-gray tiny"
        ng-click="index.recreate()">
        <span translate>Recreate</span>
      </span>
    </div>
  </div>

  <div ng-show="index.requiresMultipleSignatures  && index.txps[0]">
    <h4 class="title m0" translate>Spend proposals</h4>
    <div class="last-transactions pr" ng-repeat="tx in index.txps"
      ng-include="'views/includes/transaction.html'">
    </div>

    <div class="text-gray text-center size-12 p10t"
      ng-show="index.lockedBalance && !index.updatingStatus">
      <span translate>Total Locked Balance</span>:
      <b>{{index.lockedBalance}} {{index.unitName}} </b>
      <span> {{index.lockedBalanceAlternative}}
        {{index.alternativeIsoCode}} </span>
    </div>

    <div class="pr" ng-if="!index.txps[0]">
      <p translate>No pending spend proposals at the moment.</p>
    </div>
  </div>

  <div ng-if="!index.requiresMultipleSignatures && index.txps[0]">
    <h4 class="title m0" translate>Unsent transactions</h4>
    <div class="last-transactions pr" ng-repeat="tx in index.txps"
      ng-include="'views/includes/transaction.html'">
    </div><commit_msg>Clear proposals when changing wallets<commit_after><div ng-controller="walletHomeController as home">

  <div class="row columns m20tp" ng-show="index.noFocusedWallet">
    <div class="text-center text-warning m20b">
      <i class="fi-alert"></i> <span translate>You do not have any wallet</span>
    </div>
    <button class="button black expand" ng-click="$root.go('add')" translate>Create</button>
  </div>

  <div class="onGoingProcess" ng-show="index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':'#222'}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    <span translate>Reconnecting to Wallet Service...</span>
    </div>
  </div>

  <div class="onGoingProcess" ng-show="index.anyOnGoingProcess && !index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    <span translate ng-show="
      index.onGoingProcessName == 'openingWallet'
      || index.onGoingProcessName == 'updatingStatus'
      || index.onGoingProcessName == 'updatingBalance'
      "> Updating Wallet... </span>
    <span translate ng-show="index.onGoingProcessName == 'scanning'">Scanning Wallet funds...</span>
    <span translate ng-show="index.onGoingProcessName == 'recreating'">Recreating Wallet...</span>
    </div>
  </div>

  <div class="onGoingProcess" ng-show="home.onGoingProcess && !index.anyOnGoingProces && !index.isOffline">
    <div class="onGoingProcess-content" ng-style="{'background-color':index.backgroundColor}">
    <div class="spinner">
      <div class="rect1"></div>
      <div class="rect2"></div>
      <div class="rect3"></div>
      <div class="rect4"></div>
      <div class="rect5"></div>
    </div>
    {{home.onGoingProcess|translate}}...
    </div>
  </div>

  <div class="oh" ng-show="!index.noFocusedWallet">

<div id="walletHome" class="walletHome tab-view tab-in">
  <div class="oh">
  <div class="amount" ng-style="{'background-color':index.backgroundColor}">
    <div ng-if="!index.anyOnGoingProcess && !index.notAuthorized">
      <div ng-show="index.updateError" ng-click='index.openWallet()'>
        <span translate>Could not update Wallet</span>
        <br><span translate>Tap to retry</span>
      </div>

      <div ng-show="index.walletScanStatus == 'error'" ng-click='index.retryScan()'>
        <span translate>Scan status finished with error</span>
        <br><span translate>Tap to retry</span>
      </div>

      <div ng-show="!index.updateError && index.walletScanStatus != 'error'">
        <strong class="size-36">{{index.totalBalanceStr}}</strong>
        <div class="size-14"
          ng-if="index.totalBalanceAlternative">
          {{index.totalBalanceAlternative}} {{index.alternativeIsoCode}}
        </div>
      </div>
    </div>

    <div ng-if="index.anyOnGoingProcess">
      <div class="size-36">
        <strong>...</strong>
      </div>
    </div>
  </div> <!-- amount -->

  <div class="pr columns line-b">
    <div class="avatar-wallet left"
      ng-style="{'background-color':index.backgroundColor}">{{index.walletName | limitTo: 1}}
    </div>
    <div class="right">
      <a ng-click="$root.go('preferences')" class="button outline light-gray tiny m0">
        <i class="fi-widget size-18 vm"></i>
        <span class="show-for-medium-up" translate>Preferences</span>
      </a>
    </div>
    <div class="wallet-info" ng-click="openCopayersModal(index.copayers, index.copayerId)">
      <p class="m0">
      {{index.m}} <span translate>of</span>  {{index.n}}
      </p>
      <div class="size-12 text-gray">
        <span ng-if="index.n > 1" translate>Multisignature wallet </span>
        <span ng-if="index.n == 1" translate>Personal Wallet</span>
        <span ng-if="index.network != 'livenet'"> - Testnet</span>
      </div>
    </div>
  </div>
  </div> <!-- oh -->


  <div class="m20t" ng-show="index.notAuthorized && ! index.anyOnGoingProcess">
    <div class="text-center text-warning">
      <i class="fi-alert"></i>
      <span translate>
        WARNING: Wallet not registered
      </span>
    </div>
    <div class="text-center text-gray m15r m15l" translate>
      This wallet is not registered at the given Bitcore Wallet Service (BWS). You can recreate it from the local information.
    </div>
    <div class="text-center m10t ">
      <span class="button outline dark-gray tiny"
        ng-click="index.recreate()">
        <span translate>Recreate</span>
      </span>
    </div>
  </div>

  <div ng-if="index.txps[0]">
    <div ng-show="index.requiresMultipleSignatures">
      <h4 class="title m0" translate>Spend proposals</h4>
      <div class="last-transactions pr" ng-repeat="tx in index.txps"
        ng-include="'views/includes/transaction.html'">
      </div>

      <div class="text-gray text-center size-12 p10t"
        ng-show="index.lockedBalance && !index.updatingStatus">
        <span translate>Total Locked Balance</span>:
        <b>{{index.lockedBalance}} {{index.unitName}} </b>
        <span> {{index.lockedBalanceAlternative}}
          {{index.alternativeIsoCode}} </span>
      </div>
    </div>

    <div ng-show="!index.requiresMultipleSignatures">
      <h4 class="title m0" translate>Unsent transactions</h4>
      <div class="last-transactions pr" ng-repeat="tx in index.txps"
        ng-include="'views/includes/transaction.html'">
      </div>
    </div>
{'fraction_non_alphanumeric': 0.18170721074200016, 'fraction_numerical': 0.009939837823698667, 'mean_word_length': 3.2324723247232474, 'pattern_counts': {'":': 0, '<': 337, '<?xml version=': 0, '>': 339, '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': '4012126', 'n_tokens_mistral': 3826, 'n_tokens_neox': 3718, 'n_words': 746}