<commit_before>section.panel.content(ng-controller="TrustCtrl")

  //- Account is unfunded

  .unfunded(ng-hide='account.Balance')
    p.literal You have to be funded before you can grant a trust
    p: a.btn(href="#balance") Back to balance

  //- Account is funded

  //- N1. Trust form

  table.table(ng-show='mode=="main" && account.Balance')
    thead
      tr
        th.account Name/Address
        th.currency Currency
        th.trust Trust Limit
        th.action
          a.btn.btn-success.sign(ng-click='toggle_form()')
            span(ng-hide='addform_visible') +
            span(ng-show='addform_visible') −
    tbody
      tr(ng-show='addform_visible')
        td(colspan=4)
          form(name='trustForm', id='trustForm', ng-submit='grant()')
            label(for='trust_amount') Amount
            .amount
              //- TODO I don't like the idea of dividing amount to get what I need
              input.value#trust_amount(name='trust_amount', type='number', step='any', ng-model='amount'
                ng-pattern='/^[0-9.]+$/', required
                rp-autofill='urlParams.amount.to_number()/1000000', rp-autofill-on='addform_visible = true')
              input.currency-field#trust_amount_currency(name='trust_amount_currency', type='text'
                ng-model='currency', rp-combobox="currency_query", rp-combobox-select
                rp-autofill='urlParams.amount.currency().to_json()', rp-autofill-on='addform_visible = true')
            label(for='trust_counterparty') User
            input#trust_counterparty(name='trust_counterparty', type='text', ng-model='counterparty'
              rp-combobox="counterparty_query", placeholder='Contact name or Ripple address',
              rp-destination, rp-not-me, required
              rp-autofill='urlParams.to', rp-autofill-on='addform_visible = true')
            .errorGroup(rp-errors='trust_counterparty')
              .success(rp-error-valid ng-show='counterparty != counterparty_address && counterparty_name')
                | {{counterparty_address}}
              .error(rp-error-on='required')
                | Please enter a User.
              .error(rp-error-on='rpNotMe')
                | You've entered your address.
              .error(rp-error-on='rpDestination')
                | User should be either a name from your contact list or Ripple address.
            .submitsection
              button.btn.btn-info.submit(type='submit', ng-disabled='trustForm.$invalid') Grant Trust

      tr(ng-repeat='(key, line) in lines')<commit_msg>Change the field order on the Trust tab.<commit_after>section.panel.content(ng-controller="TrustCtrl")

  //- Account is unfunded

  .unfunded(ng-hide='account.Balance')
    p.literal You have to be funded before you can grant a trust
    p: a.btn(href="#balance") Back to balance

  //- Account is funded

  //- N1. Trust form

  table.table(ng-show='mode=="main" && account.Balance')
    thead
      tr
        th.account Name/Address
        th.currency Currency
        th.trust Trust Limit
        th.action
          a.btn.btn-success.sign(ng-click='toggle_form()')
            span(ng-hide='addform_visible') +
            span(ng-show='addform_visible') −
    tbody
      tr(ng-show='addform_visible')
        td(colspan=4)
          form(name='trustForm', id='trustForm', ng-submit='grant()')
            label(for='trust_counterparty') User
            input#trust_counterparty(name='trust_counterparty', type='text', ng-model='counterparty'
              rp-combobox="counterparty_query", placeholder='Contact name or Ripple address',
              rp-destination, rp-not-me, required
              rp-autofill='urlParams.to', rp-autofill-on='addform_visible = true')
            .errorGroup(rp-errors='trust_counterparty')
              .success(rp-error-valid ng-show='counterparty != counterparty_address && counterparty_name')
                | {{counterparty_address}}
              .error(rp-error-on='required')
                | Please enter a User.
              .error(rp-error-on='rpNotMe')
                | You've entered your address.
              .error(rp-error-on='rpDestination')
                | User should be either a name from your contact list or Ripple address.
            label(for='trust_amount') Amount
            .amount
              //- TODO I don't like the idea of dividing amount to get what I need
              input.value#trust_amount(name='trust_amount', type='number', step='any', ng-model='amount'
                ng-pattern='/^[0-9.]+$/', required
                rp-autofill='urlParams.amount.to_number()/1000000', rp-autofill-on='addform_visible = true')
              input.currency-field#trust_amount_currency(name='trust_amount_currency', type='text'
                ng-model='currency', rp-combobox="currency_query", rp-combobox-select
                rp-autofill='urlParams.amount.currency().to_json()', rp-autofill-on='addform_visible = true')
            .submitsection
              button.btn.btn-info.submit(type='submit', ng-disabled='trustForm.$invalid') Grant Trust

      tr(ng-repeat='(key, line) in lines')
{'fraction_non_alphanumeric': 0.1319430910153966, 'fraction_numerical': 0.004287663223543169, 'mean_word_length': 2.4419852448021464, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '780220', 'n_tokens_mistral': 1560, 'n_tokens_neox': 1459, 'n_words': 286}