<commit_before><div class="row">
  <div class="large-2 columns panel">
    <ul class="side-nav">
      <li>Pockets on my wallet</li>
      <li ng-class="{true:'active', false:''}[selectedPocket===undefined]" class="active" ng-click="selectPocket()"><a>All</a></li>
      <li ng-class="{true:'active', false:''}[$index==selectedPocket]" ng-repeat="pocketName in identity.wallet.pockets" ng-click="selectPocket(pocketName, $index)" ><a>{{pocketName}}</a></li>
      <li><input type="text" ng-model="newPocketName" placeholder="Name your pocket..." /></li>
      <li><a class="button small expand" ng-click="createPocket()">{{newPocketName?'Ok':'New Pocket'}}</a></li>
      <li class="divider"></li>
      <li>My multisig funds</li>
      <li><a href="">Unsystem</a></li>
      <li><a href="">Multisig 3</a></li>
      <li><a class="button small expand">New Multisig fund</a></li>
      <li class="divider"></li>
      <li>Watch-only pockets</li>
      <li><a href="">My smartphone</a></li>
      <li><a href="">My cold wallet</a></li>
      <li><a class="button small expand">Add watch-only pocket</a></li>
    </ul>
  </div>
  <div class="large-10 columns">
    <h4>{{pocket.name}} <small>{{((balance===undefined)?totalBalance:balance)/100000000}} BTC</small></h4>
      
      
    <tabset>
      <tab heading="History">
        <table class="expand">
          <thead>
            <tr>
              <th>Name</th>
              <th>Amount</th>
              <th class="text-right">Balance</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="row in history">
              <td class="icon"><a class="button square fa fa-info"></a>{{row.address}}</td>
              <td>{{(row.myOutValue-row.myInValue)/100000000}}</td>
              <td class="text-right">{{row.balance/100000000}}</td>
            </tr>
          </tbody>
        </table>
      </tab>
      <tab heading="Addresses">
        <div class="row collapse" ng-hide="isAll">
          <div class="medium-2 columns">
            <span class="prefix radius">Stealth Address</span>
          </div>
          <div class="medium-6 columns">
            <input type="text" disabled="true" value="{{pocket.stealth}}" />
          </div>
          <div class="medium-2 columns">
            <button ng-click="copyClipboard(pocket.stealth)" class="button postfix fa fa-clipboard">Copy</button>
          </div>
          <div class="medium-2 columns">
            <button class="button postfix radius fa fa-qrcode">QR</button>
          </div>
        </div>
        <div class="row collapse" ng-hide="isAll">
          <div class="medium-2 columns">
            <span class="prefix radius">Master Address</span>
          </div>
          <div class="medium-6 columns">
            <input type="text" disabled="true" value="{{pocket.mpk}}" />
          </div>
          <div class="medium-2 columns">
            <button ng-click="copyClipboard(pocket.mpk)" class="button postfix fa fa-clipboard">Copy</button>
          </div>
          <div class="medium-2 columns">
            <button class="button postfix radius fa fa-qrcode">QR</button>
          </div>
        </div>         
        <table class="expand">
          <thead>
          <th>Name</th>
          <th>Address</th>
          <th>Balance</th>
          <th class="text-right">QR Code / Copy</th>
          </thead>
          <tbody>
          <tr ng-repeat="address in pocket.addresses track by $index" ng-show="address.nOutputs == 0">
            <td class="icon"><a class="button square fa fa-pencil-square"></a>{{address.label}}</td>
            <td>{{address.address}}</td>
            <td>0</td>
            <td class="icon text-right"><a class="button square fa fa-qrcode"></a><a class="button square fa fa-clipboard"></a></td>
          </tr>
          <tr ng-repeat="address in pocket.addresses track by $index" ng-show="address.nOutputs != 0">
            <td class="icon"><a class="button square fa fa-pencil-square"></a>{{address.label}}</td>
            <td>{{address.address}} ({{address.balance/100000000}})</td>
            <th>0</th>
            <td class="icon text-right"><a class="button square fa fa-qrcode"></a><a class="button square fa fa-clipboard"></a></td>
          </tr>
        </tbody>
        </table>
        <a class="button small" ng-click="generateAddress(pocket.index)">New address</a>
      </tab>
      <tab heading="Actions" ng-hide="isAll">
        <div class="row">
          <div class="large-6 columns">
            <a href="" class="fa button postfix fa-share">Move funds to another pocket</a>
            <a href="" class="fa button postfix fa-check-square-o">Automatically mix funds on this pocket with CoinJoin</a>
          </div>
          <div class="large-6 columns">
            <a href="#" class="fa button postfix fa-reply-all">Move funds to another identity</a><commit_msg>show address balance in its right place.<commit_after><div class="row">
  <div class="large-2 columns panel">
    <ul class="side-nav">
      <li>Pockets on my wallet</li>
      <li ng-class="{true:'active', false:''}[selectedPocket===undefined]" class="active" ng-click="selectPocket()"><a>All</a></li>
      <li ng-class="{true:'active', false:''}[$index==selectedPocket]" ng-repeat="pocketName in identity.wallet.pockets" ng-click="selectPocket(pocketName, $index)" ><a>{{pocketName}}</a></li>
      <li><input type="text" ng-model="newPocketName" placeholder="Name your pocket..." /></li>
      <li><a class="button small expand" ng-click="createPocket()">{{newPocketName?'Ok':'New Pocket'}}</a></li>
      <li class="divider"></li>
      <li>My multisig funds</li>
      <li><a href="">Unsystem</a></li>
      <li><a href="">Multisig 3</a></li>
      <li><a class="button small expand">New Multisig fund</a></li>
      <li class="divider"></li>
      <li>Watch-only pockets</li>
      <li><a href="">My smartphone</a></li>
      <li><a href="">My cold wallet</a></li>
      <li><a class="button small expand">Add watch-only pocket</a></li>
    </ul>
  </div>
  <div class="large-10 columns">
    <h4>{{pocket.name}} <small>{{((balance===undefined)?totalBalance:balance)/100000000}} BTC</small></h4>
      
      
    <tabset>
      <tab heading="History">
        <table class="expand">
          <thead>
            <tr>
              <th>Name</th>
              <th>Amount</th>
              <th class="text-right">Balance</th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="row in history">
              <td class="icon"><a class="button square fa fa-info"></a>{{row.address}}</td>
              <td>{{(row.myOutValue-row.myInValue)/100000000}}</td>
              <td class="text-right">{{row.balance/100000000}}</td>
            </tr>
          </tbody>
        </table>
      </tab>
      <tab heading="Addresses">
        <div class="row collapse" ng-hide="isAll">
          <div class="medium-2 columns">
            <span class="prefix radius">Stealth Address</span>
          </div>
          <div class="medium-6 columns">
            <input type="text" disabled="true" value="{{pocket.stealth}}" />
          </div>
          <div class="medium-2 columns">
            <button ng-click="copyClipboard(pocket.stealth)" class="button postfix fa fa-clipboard">Copy</button>
          </div>
          <div class="medium-2 columns">
            <button class="button postfix radius fa fa-qrcode">QR</button>
          </div>
        </div>
        <div class="row collapse" ng-hide="isAll">
          <div class="medium-2 columns">
            <span class="prefix radius">Master Address</span>
          </div>
          <div class="medium-6 columns">
            <input type="text" disabled="true" value="{{pocket.mpk}}" />
          </div>
          <div class="medium-2 columns">
            <button ng-click="copyClipboard(pocket.mpk)" class="button postfix fa fa-clipboard">Copy</button>
          </div>
          <div class="medium-2 columns">
            <button class="button postfix radius fa fa-qrcode">QR</button>
          </div>
        </div>         
        <table class="expand">
          <thead>
          <th>Name</th>
          <th>Address</th>
          <th>Balance</th>
          <th class="text-right">QR Code / Copy</th>
          </thead>
          <tbody>
          <tr ng-repeat="address in pocket.addresses track by $index" ng-show="address.nOutputs == 0">
            <td class="icon"><a class="button square fa fa-pencil-square"></a>{{address.label}}</td>
            <td>{{address.address}}</td>
            <td>0</td>
            <td class="icon text-right"><a class="button square fa fa-qrcode"></a><a class="button square fa fa-clipboard"></a></td>
          </tr>
          <tr ng-repeat="address in pocket.addresses track by $index" ng-show="address.nOutputs != 0">
            <td class="icon"><a class="button square fa fa-pencil-square"></a>{{address.label}}</td>
            <td>{{address.address}}</td>
            <td>{{address.balance/100000000}}</td>
            <td class="icon text-right"><a class="button square fa fa-qrcode"></a><a class="button square fa fa-clipboard"></a></td>
          </tr>
        </tbody>
        </table>
        <a class="button small" ng-click="generateAddress(pocket.index)">New address</a>
      </tab>
      <tab heading="Actions" ng-hide="isAll">
        <div class="row">
          <div class="large-6 columns">
            <a href="" class="fa button postfix fa-share">Move funds to another pocket</a>
            <a href="" class="fa button postfix fa-check-square-o">Automatically mix funds on this pocket with CoinJoin</a>
          </div>
          <div class="large-6 columns">
            <a href="#" class="fa button postfix fa-reply-all">Move funds to another identity</a>
{'fraction_non_alphanumeric': 0.18828451882845187, 'fraction_numerical': 0.011327686498622308, 'mean_word_length': 2.3665407076605978, 'pattern_counts': {'":': 0, '<': 365, '<?xml version=': 0, '>': 365, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 8, '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': '7358834', 'n_tokens_mistral': 3100, 'n_tokens_neox': 2936, 'n_words': 642}