<commit_before><div class="send" ng-controller="SendController" ng-init="init()">

  <div class="row">
    <div class="large-12 medium-12 small-12 columns">
      <h1 class="hide-for-large-up">{{$root.title}}</h1>
    </div>
  </div>

  <div class="row" ng-show="fetchingURL">
    <div class="large-12 columns">
      <div class="panel">
        <div class="box-notification">
          <div class="box-icon secondary">
            <i class="fi-bitcoin-circle icon-rotate spinner size-24"></i>
          </div>
          <span class="text-secondary size-14">
              Fetching Payment Information...
            </span>
        </div>
      </div>
    </div>
  </div>

  <div class="row" ng-show="!fetchingURL">
    <div class="large-12 columns">
      <form name="sendForm" ng-submit="submitForm(sendForm)" novalidate>
        <div class="panel">
          <div class="box-notification" ng-show="error">
            <div class="box-icon error">
              <i class="fi-x size-24"></i>
            </div>
            <span class="text-warning size-14">
              {{error|translate}}
            </span>
            <a class="close-notification  text-warning" ng-click="error=null">&#215;</a>
          </div>
          <div class="box-notification" ng-show="success">
            <div class="box-icon success">
              <i class="fi-check size-24"></i>
            </div>
            <span class="text-success size-14">
              {{success|translate}}
            </span>
            <a class="close-notification text-success" ng-click="success=null">&#215;</a>
          </div>

          <div ng-if="!_merchantData">
            <div class="row collapse">

              <label for="address" class="left">
                <span translate>To (*)</span> 
              </label>

              <span ng-hide="sendForm.address.$pristine">
              <span translate class="has-error right size-12" ng-show="sendForm.address.$invalid && _address">
              <span class="icon-input">
                <i class="fi-x"></i>
              </span>
              Not valid
              </span>
              <small class="icon-input right" ng-show="!sendForm.address.$invalid">
                <i class="fi-check"></i>
              </small>
              </span>
            </div>

            <div class="input">
              <input type="text" id="address" name="address" ng-disabled="loading || lockAddress" placeholder="{{'Bitcoin address'|translate}}" ng-model="_address" valid-address required>
              <i class="fi-address-book"></i> 
              <div ng-hide="showScanner || disableScanner">
                <a class="postfix button black" ng-click="openScanner()"><i class="fi-camera size-24"></i></a>
              </div>
              <div ng-show="showScanner">
                <a translate class="postfix button warning" ng-click="cancelScanner()"><i class="fi-x size-18"></i></a>
              </div>
            </div>
            <div id="scanner" class="row" ng-if="showScanner" ng-include="'views/includes/scanner.html'">
            </div>
          </div>
          <div ng-show="_merchantData">
            <div class="row collapse" ng-click="openPPModal(_merchantData)">

              <label for="domain">
                <span translate>Payment to</span> 
              </label>

              <div class="input">
                <input type="text" id="domain" name="domain" ng-model="_domain" ng-disabled="1">
                <i class="fi-lock color-greeni"></i> 
              </div>
            </div>
          </div>

          <div class="row" ng-init="showAlternative = false">
            <div class="large-12 medium-12 columns">
              <div class="m5b right" ng-hide="sendForm.amount.$pristine">
                <span translate class="has-error right size-12" ng-show="sendForm.amount.$invalid">
                  <span class="icon-input"><i class="fi-x"></i></span>
                Not valid
                </span>
                <small class="icon-input right" ng-show="!sendForm.amount.$invalid">
                    <i class="fi-check"></i>
                </small>
              </div>
              <div ng-show="!showAlternative">
                <div class="row collapse">

                  <label for="amount">
                    <span translate>Amount (*)</span>
                  </label>

                  <div class="small-9 columns">
                    <div class="input">
                      <input type="number" id="amount" ng-disabled="loading || lockAmount" name="amount" placeholder="{{'Amount'|translate}}" ng-minlength="0.00000001" ng-maxlength="10000000000" ng-model="_amount" valid-amount required autocomplete="off">
                      <i class="icon-bitcoin"></i>
                    </div>
                  </div>
                  <div class="small-3 columns pointer" ng-click="showAlternative = true">
                    <span class="postfix">{{$root.wallet.settings.unitName}}</span>
                  </div>
                </div>
              </div>
              <div ng-show="showAlternative">
                <div class="row collapse">
                  <label for="alternative"><span translate>Amount in</span> {{ alternativeName }} (*)
                  </label>
                  <div class="small-9 columns">
                    <div class="input">
                      <input type="number" id="alternative" ng-disabled="loading || !isRateAvailable || lockAmount" name="alternative" placeholder="{{'Amount'|translate}}" ng-model="_alternative" requiredautocomplete="off">
                      <i class="icon-usd"></i>
                    </div>
                  </div>
                  <div class="small-3 columns pointer" ng-click="showAlternative = false">
                    <span class="postfix">{{alternativeIsoCode}}</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="large-12 columns">
              <label for="comment"><span translate>Note</span>
                <small translate ng-hide="!sendForm.comment.$pristine">optional</small>
                <small translate class="has-error" ng-show="sendForm.comment.$invalid && !sendForm.comment.$pristine">too long!</small>
              </label>
              <div class="input">
                <textarea id="comment" ng-disabled="loading" name="comment" placeholder="{{($root.wallet.isShared() ? 'Leave a private message to your copayers' : 'Add a private comment to identify the transaction')}}" ng-maxlength="100" ng-model="_comment"></textarea>
                <i class="icon-compose"></i>
              </div>
            </div>
          </div>

          <div class="row">
            <div class="large-6 medium-6 small-6 columns text-left">
              <a class="button tiny secondary m0 radius" title="Address book" ng-hide="_merchantData || lockAddress" ng-click="openAddressBook()">
                <i class="fi-address-book size-14 m5r vm"></i> Address book
              </a>
              <a ng-click="resetForm()" class="button warning m0" ng-show="_merchantData || lockAddress" ng-disabled="loading">
                  Cancel
                </a>
            </div>
            <div class="large-4 medium-4 small-6 columns text-right">
              <button type="submit" class="button primary m0 expand" ng-disabled="sendForm.$invalid || loading">
                <i class="fi-bitcoin-circle icon-rotate spinner" ng-show="loading"></i> Send
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
  <!--  end of row -->

  <div class="row m20b" ng-show="$root.wallet.balanceInfo.alternativeConversionRate > 0">
    <div class="large-12 columns size-12">
      <i class="fi-bitcoin-circle"></i> 1 BTC = {{$root.wallet.balanceInfo.alternativeConversionRate}} {{alternativeIsoCode}}
    </div>
  </div>
</div>

<commit_msg>removed (*) from required fields<commit_after><div class="send" ng-controller="SendController" ng-init="init()">

  <div class="row">
    <div class="large-12 medium-12 small-12 columns">
      <h1 class="hide-for-large-up">{{$root.title}}</h1>
    </div>
  </div>

  <div class="row" ng-show="fetchingURL">
    <div class="large-12 columns">
      <div class="panel">
        <div class="box-notification">
          <div class="box-icon secondary">
            <i class="fi-bitcoin-circle icon-rotate spinner size-24"></i>
          </div>
          <span class="text-secondary size-14">
              Fetching Payment Information...
            </span>
        </div>
      </div>
    </div>
  </div>

  <div class="row" ng-show="!fetchingURL">
    <div class="large-12 columns">
      <form name="sendForm" ng-submit="submitForm(sendForm)" novalidate>
        <div class="panel">
          <div class="box-notification" ng-show="error">
            <div class="box-icon error">
              <i class="fi-x size-24"></i>
            </div>
            <span class="text-warning size-14">
              {{error|translate}}
            </span>
            <a class="close-notification  text-warning" ng-click="error=null">&#215;</a>
          </div>
          <div class="box-notification" ng-show="success">
            <div class="box-icon success">
              <i class="fi-check size-24"></i>
            </div>
            <span class="text-success size-14">
              {{success|translate}}
            </span>
            <a class="close-notification text-success" ng-click="success=null">&#215;</a>
          </div>

          <div ng-if="!_merchantData">
            <div class="row collapse">

              <label for="address" class="left">
                <span translate>To</span> 
              </label>

              <span ng-hide="sendForm.address.$pristine">
              <span translate class="has-error right size-12" ng-show="sendForm.address.$invalid && _address">
              <span class="icon-input">
                <i class="fi-x"></i>
              </span>
              Not valid
              </span>
              <small class="icon-input right" ng-show="!sendForm.address.$invalid">
                <i class="fi-check"></i>
              </small>
              </span>
            </div>

            <div class="input">
              <input type="text" id="address" name="address" ng-disabled="loading || lockAddress" placeholder="{{'Bitcoin address'|translate}}" ng-model="_address" valid-address required>
              <i class="fi-address-book"></i> 
              <div ng-hide="showScanner || disableScanner">
                <a class="postfix button black" ng-click="openScanner()"><i class="fi-camera size-24"></i></a>
              </div>
              <div ng-show="showScanner">
                <a translate class="postfix button warning" ng-click="cancelScanner()"><i class="fi-x size-18"></i></a>
              </div>
            </div>
            <div id="scanner" class="row" ng-if="showScanner" ng-include="'views/includes/scanner.html'">
            </div>
          </div>
          <div ng-show="_merchantData">
            <div class="row collapse" ng-click="openPPModal(_merchantData)">

              <label for="domain">
                <span translate>Payment to</span> 
              </label>

              <div class="input">
                <input type="text" id="domain" name="domain" ng-model="_domain" ng-disabled="1">
                <i class="fi-lock color-greeni"></i> 
              </div>
            </div>
          </div>

          <div class="row" ng-init="showAlternative = false">
            <div class="large-12 medium-12 columns">
              <div class="m5b right" ng-hide="sendForm.amount.$pristine">
                <span translate class="has-error right size-12" ng-show="sendForm.amount.$invalid">
                  <span class="icon-input"><i class="fi-x"></i></span>
                Not valid
                </span>
                <small class="icon-input right" ng-show="!sendForm.amount.$invalid">
                    <i class="fi-check"></i>
                </small>
              </div>
              <div ng-show="!showAlternative">
                <div class="row collapse">

                  <label for="amount">
                    <span translate>Amount</span>
                  </label>

                  <div class="small-9 columns">
                    <div class="input">
                      <input type="number" id="amount" ng-disabled="loading || lockAmount" name="amount" placeholder="{{'Amount'|translate}}" ng-minlength="0.00000001" ng-maxlength="10000000000" ng-model="_amount" valid-amount required autocomplete="off">
                      <i class="icon-bitcoin"></i>
                    </div>
                  </div>
                  <div class="small-3 columns pointer" ng-click="showAlternative = true">
                    <span class="postfix">{{$root.wallet.settings.unitName}}</span>
                  </div>
                </div>
              </div>
              <div ng-show="showAlternative">
                <div class="row collapse">
                  <label for="alternative"><span translate>Amount in</span> {{ alternativeName }}
                  </label>
                  <div class="small-9 columns">
                    <div class="input">
                      <input type="number" id="alternative" ng-disabled="loading || !isRateAvailable || lockAmount" name="alternative" placeholder="{{'Amount'|translate}}" ng-model="_alternative" requiredautocomplete="off">
                      <i class="icon-usd"></i>
                    </div>
                  </div>
                  <div class="small-3 columns pointer" ng-click="showAlternative = false">
                    <span class="postfix">{{alternativeIsoCode}}</span>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="row">
            <div class="large-12 columns">
              <label for="comment"><span translate>Note</span>
                <small translate ng-hide="!sendForm.comment.$pristine">optional</small>
                <small translate class="has-error" ng-show="sendForm.comment.$invalid && !sendForm.comment.$pristine">too long!</small>
              </label>
              <div class="input">
                <textarea id="comment" ng-disabled="loading" name="comment" placeholder="{{($root.wallet.isShared() ? 'Leave a private message to your copayers' : 'Add a private comment to identify the transaction')}}" ng-maxlength="100" ng-model="_comment"></textarea>
                <i class="icon-compose"></i>
              </div>
            </div>
          </div>

          <div class="row">
            <div class="large-6 medium-6 small-6 columns text-left">
              <a class="button tiny secondary m0 radius" title="Address book" ng-hide="_merchantData || lockAddress" ng-click="openAddressBook()">
                <i class="fi-address-book size-14 m5r vm"></i> Address book
              </a>
              <a ng-click="resetForm()" class="button warning m0" ng-show="_merchantData || lockAddress" ng-disabled="loading">
                  Cancel
                </a>
            </div>
            <div class="large-4 medium-4 small-6 columns text-right">
              <button type="submit" class="button primary m0 expand" ng-disabled="sendForm.$invalid || loading">
                <i class="fi-bitcoin-circle icon-rotate spinner" ng-show="loading"></i> Send
              </button>
            </div>
          </div>
        </div>
      </form>
    </div>
  </div>
  <!--  end of row -->

  <div class="row m20b" ng-show="$root.wallet.balanceInfo.alternativeConversionRate > 0">
    <div class="large-12 columns size-12">
      <i class="fi-bitcoin-circle"></i> 1 BTC = {{$root.wallet.balanceInfo.alternativeConversionRate}} {{alternativeIsoCode}}
    </div>
  </div>
</div>


{'fraction_non_alphanumeric': 0.16173619363312278, 'fraction_numerical': 0.011632997685909063, 'mean_word_length': 1.7983899194959747, 'pattern_counts': {'":': 0, '<': 397, '<?xml version=': 0, '>': 399, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 4, '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': '3776923', 'n_tokens_mistral': 4580, 'n_tokens_neox': 4307, 'n_words': 917}