<commit_before><div ng-controller="ExchangeBuyController">
  <div class="row om-row">
    <div class="col-xs-12">
      <h3 class="text-left om-title" >{{ EXCHANGE.BUY.TITLE | translate}}</h3>
      <div ng-show="showErrors" class="alert alert-danger">
        {{error}}
      </div>
    </div>
  </div>
  <div class="row" ng-hide="hasBitcoins">
    <div class="col-sm-12"> 
      {{ EXCHANGE.BUY.NOFUNDS | translate}}
      <br />
      {{ EXCHANGE.BUY.SENDSOME | translate}} <a class="" href="/wallet/addresses"> {{ NAVIGATION.ADDRESSES | translate }} </a> {{ EXCHANGE.BUY.ORADD | translate}}
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12"> 
      <form name="buyForm" ng-submit="confirm()" ng-show="hasBitcoins">
        <div class="panel panel-form">
          <div class="panel-body">
            <div class="col-sm-6">
              <label for="chooseAddress" >{{ EXCHANGE.BUY.ADDRESS | translate}}:</label>
              <div class="btn-group send-address-dropdown">
                <button class="btn btn-clear dropdown-toggle" type="button" id="chooseAddress" data-toggle="dropdown" aria-expanded="true">
                  {{selectedAddress.hash}} 
                  <span class="caret pull-right"></span>
                </button>
                <ul class="dropdown-menu" role="menu" aria-labelledby="chooseAddress">
                  <li role="presentation" ng-repeat="address in bitcoinAddresses">
                    <a role="menuitem" tabindex="-1" href="#" ng-click="setAddress(address)">{{address.hash}} </a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-sm-6">
              <div class="form-group">
                <label>{{ EXCHANGE.BUY.SELLER | translate }}: </label>
                <span class="form-control" >
                  {{global['buyOffer'].from_address}}
                </span>
              </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group" tooltip="{{ EXCHANGE.BUY.OFFERTOOLTIP | translate }}">
              <label>{{ EXCHANGE.BUY.OFFER | translate }}:</label>
              <a href="/explorer/inspector?view={{buySaleID}}" target="_blank">
                <span class="form-control" ng-init="buySaleID=global['buyOffer'].tx_hash">{{buySaleID}}</span>
              </a>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label>{{ EXCHANGE.SALE.PRICE | translate }}: </label>
              <span class="form-control">{{ global['buyOffer'].formatted_price_per_coin }} BTC </span>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ EXCHANGE.BUY.FEE | translate }}: </label>
              <span class="form-control">
                {{ global['buyOffer'].formatted_fee_required }} BTC
              </span>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label > {{ EXCHANGE.BUY.TIMEFRAME | translate }}: <a href=""
                tooltip="{{ EXCHANGE.BUY.TIMEFRAMETOOLTIP | translate }}"
                tooltip-append-to-body="true"
                tooltip-placement="top"> <strong>(?)</strong> </a> </label>
              <span class="form-control">
                {{ EXCHANGE.BUY.TIMEFRAMEDESCRIPTION | translate }}
              </span>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ EXCHANGE.BUY.AMOUNT | translate }} ({{ displayedAbbreviation }}): </label>
              <input name="amount" type="number" ng-model="buyAmount" class="form-control"
              placeholder="{{ EXCHANGE.BUY.AMOUNTPLACEHOLDER | translate }}" step="{{ sendPlaceholderStep }}" min="{{ sendPlaceholderMin }}" 
              max="{{ global['buyOffer'].formatted_amount_available }}" required>
              <p class="help-block">
                {{ EXCHANGE.BUY.AMOUNTAVAILABLE | translate }} 
              </p>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ EXCHANGE.BUY.COST | translate }} : <a href=""
                tooltip="{{ EXCHANGE.BUY.COSTTOOLTIP | translate }}"
                tooltip-append-to-body="true"
                tooltip-placement="top"> <strong>(?)</strong> </a> </label>
              <span class="form-control">
                {{ ( global['buyOffer'].formatted_price_per_coin * buyAmount ) | number:8 }} BTC
              </span>
            </div>
          </div>
        </div>
        <p>
          {{ 'WALLET.SEND.COST' | translate}}: {{ minersFee.plus(protocolFee).valueOf()}} BTC <button type="button" class="btn btn-xs"><span class="glyphicon glyphicon-pencil small"></span></button>
        </p>
        <button type="submit" class="btn btn-main pull-right">{{ 'COMMON.NEXT' | translate}}</button>
      </form>  
    </div>
  </div>
</div>
<commit_msg>Fix i18n calls to display values correctly<commit_after><div ng-controller="ExchangeBuyController">
  <div class="row om-row">
    <div class="col-xs-12">
      <h3 class="text-left om-title" >{{ 'EXCHANGE.BUY.TITLE' | translate}}</h3>
      <div ng-show="showErrors" class="alert alert-danger">
        {{error}}
      </div>
    </div>
  </div>
  <div class="row" ng-hide="hasBitcoins">
    <div class="col-sm-12"> 
      {{ 'EXCHANGE.BUY.NOFUNDS' | translate}}
      <br />
      {{ 'EXCHANGE.BUY.SENDSOME' | translate}} <a class="" href="/wallet/addresses"> {{ 'NAVIGATION.ADDRESSES' | translate }} </a> {{ 'EXCHANGE.BUY.ORADD' | translate}}
    </div>
  </div>
  <div class="row">
    <div class="col-sm-12"> 
      <form name="buyForm" ng-submit="confirm()" ng-show="hasBitcoins">
        <div class="panel panel-form">
          <div class="panel-body">
            <div class="col-sm-6">
              <label for="chooseAddress" >{{ 'EXCHANGE.BUY.ADDRESS' | translate}}:</label>
              <div class="btn-group send-address-dropdown">
                <button class="btn btn-clear dropdown-toggle" type="button" id="chooseAddress" data-toggle="dropdown" aria-expanded="true">
                  {{selectedAddress.hash}} 
                  <span class="caret pull-right"></span>
                </button>
                <ul class="dropdown-menu" role="menu" aria-labelledby="chooseAddress">
                  <li role="presentation" ng-repeat="address in bitcoinAddresses">
                    <a role="menuitem" tabindex="-1" href="#" ng-click="setAddress(address)">{{address.hash}} </a>
                  </li>
                </ul>
              </div>
            </div>
            <div class="col-sm-6">
              <div class="form-group">
                <label>{{ 'EXCHANGE.BUY.SELLER' | translate }}: </label>
                <span class="form-control" >
                  {{global['buyOffer'].from_address}}
                </span>
              </div>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group" tooltip="{{ 'EXCHANGE.BUY.OFFERTOOLTIP' | translate }}">
              <label>{{ 'EXCHANGE.BUY.OFFER' | translate }}:</label>
              <a href="/explorer/inspector?view={{buySaleID}}" target="_blank">
                <span class="form-control" ng-init="buySaleID=global['buyOffer'].tx_hash">{{buySaleID}}</span>
              </a>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label>{{ 'EXCHANGE.SALE.PRICE' | translate }}: </label>
              <span class="form-control">{{ global['buyOffer'].formatted_price_per_coin }} BTC </span>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ 'EXCHANGE.BUY.FEE' | translate }}: </label>
              <span class="form-control">
                {{ global['buyOffer'].formatted_fee_required }} BTC
              </span>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label > {{ 'EXCHANGE.BUY.TIMEFRAME' | translate }}: <a href=""
                tooltip="{{ 'EXCHANGE.BUY.TIMEFRAMETOOLTIP' | translate }}"
                tooltip-append-to-body="true"
                tooltip-placement="top"> <strong>(?)</strong> </a> </label>
              <span class="form-control">
                {{ 'EXCHANGE.BUY.TIMEFRAMEDESCRIPTION' | translate }}
              </span>
            </div>
          </div>
        </div>
        <div class="row">
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ 'EXCHANGE.BUY.AMOUNT' | translate }} ({{ displayedAbbreviation }}): </label>
              <input name="amount" type="number" ng-model="buyAmount" class="form-control"
              placeholder="{{ 'EXCHANGE.BUY.AMOUNTPLACEHOLDER' | translate }}" step="{{ sendPlaceholderStep }}" min="{{ sendPlaceholderMin }}" 
              max="{{ global['buyOffer'].formatted_amount_available }}" required>
              <p class="help-block">
                {{ 'EXCHANGE.BUY.AMOUNTAVAILABLE' | translate }} 
              </p>
            </div>
          </div>
          <div class="col-sm-6">
            <div class="form-group">
              <label> {{ 'EXCHANGE.BUY.COST' | translate }} : <a href=""
                tooltip="{{ 'EXCHANGE.BUY.COSTTOOLTIP' | translate }}"
                tooltip-append-to-body="true"
                tooltip-placement="top"> <strong>(?)</strong> </a> </label>
              <span class="form-control">
                {{ ( global['buyOffer'].formatted_price_per_coin * buyAmount ) | number:8 }} BTC
              </span>
            </div>
          </div>
        </div>
        <p>
          {{ 'WALLET.SEND.COST' | translate}}: {{ minersFee.plus(protocolFee).valueOf()}} BTC <button type="button" class="btn btn-xs"><span class="glyphicon glyphicon-pencil small"></span></button>
        </p>
        <button type="submit" class="btn btn-main pull-right">{{ 'COMMON.NEXT' | translate}}</button>
      </form>  
    </div>
  </div>
</div>

{'fraction_non_alphanumeric': 0.1802476245321048, 'fraction_numerical': 0.003647183031001056, 'mean_word_length': 1.876069555616892, 'pattern_counts': {'":': 0, '<': 251, '<?xml version=': 0, '>': 251, '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': '7303737', 'n_tokens_mistral': 3242, 'n_tokens_neox': 3113, 'n_words': 554}