<commit_before>section.col-xs-12.content(ng-controller="TrustCtrl")

  //- Disconnected

  group.disconnected(ng-hide="connected")
    p.literal(l10n) You have to be online to see this screen

  group.disconnected(ng-hide="!connected || loadState.lines")
    p.literal(l10n) Loading...

  //- Connected

  group(ng-show="connected && loadState.lines")
    div(ng-show="'web' === client && !loadingAccount && !account.Balance && loadState.account && connected")
      include banner/unfunded

    //- N1. Trust form
    .row
      .col-sm-12
        //- N5. Notifications for connect new account
        group.mode-granted.wide(ng-show='mode=="granted" && account.Balance')
          group.pending(ng-show='tx_result=="pending"')
            h2.tx-status(l10n) Connecting a gateway to your Ripple account...
          group.result-success(ng-show='tx_result=="cleared"')
            h2.tx-status(l10n) Gateway connected.
          group.result-error(ng-show='tx_result=="error"')
            h2.tx-status(l10n) Gateway could not be connected!
            p(l10n) There was a problem connecting the gateway. Please try again later.
          group.result-malformed(ng-show='tx_result=="malformed"')
            h2.tx-status(l10n) There was a problem connecting the gateway. Please try again later.
            p(l10n) Your request is invalid, reason: {{engine_result}} - {{engine_result_message}}
          group.result-failed(ng-show='tx_result=="failed"')
            h2.tx-status(l10n) Gateway connection failed!
            p(ng-switch on="engine_result")
              span(ng-switch-when="terNO_LINE", l10n) You have no gateway connected in this currency.
              span(ng-switch-when="tecINSUF_RESERVE_LINE", l10n) Insufficient reserve to connect gateway.
              span(ng-switch-when="tecNO_LINE_INSUF_RESERVE", l10n) You must have at
                |  least {{account.reserve_to_add_trust | rpamount:0}} XRP to connect a gateway.&#32;
                a(href="http://ripple.com/help/#reserve", l10n) Read more.
              span(ng-switch-default, l10n) Gateway connection failed to clear,
                |  reason: {{engine_result_message}}
          group.result-failed(ng-show='tx_result=="local"')
            h2.tx-status(l10n) Transaction failed!
            p(ng-switch on="engine_result")
              span(ng-switch-when="telINSUF_FEE_P", l10n)
                | The particular server you sent the transaction to was too busy to forward or process
                |  your transaction at the fee you included in it.
      .col-sm-12
        //- N5. Notifications for edit account
        group.mode-granted.wide(ng-show='trust.notif !== "clear" && account.Balance')
          group(ng-switch on="trust.notif")          
            group.pending(ng-switch-when="loading")
              h2.tx-status(l10n) Saving changes...
            group.result-success(ng-switch-when="success")
              h2.tx-status(l10n) Changes saved!
            group.result-error(ng-switch-when="error")
              h2.tx-status(l10n) There was an error while saving your changes.&#32;
              p(l10n) Please try again later.

      .col-sm-12          
        //- N5. Notifications for removing account
        group.mode-granted.wide(ng-show='trust.notif !== "clear"')
          group(ng-switch on="trust.notif")          
            group.pending(ng-switch-when="remove_gateway")
              h2.tx-status(l10n) Removing gateway...
            group.result-success(ng-switch-when="gateway_removed")
              h2.tx-status(l10n) Gateway removed!
            group.result-error(ng-switch-when="error")
              h2.tx-status(l10n) There was an error while saving your changes.&#32;
              p(l10n) Please try again later.
      .col-sm-12(ng-show='addform_visible && !can_add_trust')
        .alert.alert-warning(l10n) You must have at least
          strong  {{account.reserve_to_add_trust | rpamount:0}} XRP
          |  to add a new trust line.&#32;
          a(href="https://ripple.com/wiki/Reserves", target="_blank") More information
    .row(ng-show='connected')

      .col-sm-3
        include fund/menu
      .col-sm-9.trust-menu
        .row.row-padding-small.head(ng-hide='true')
          .col-sm-5(l10n) Name / Address
          .col-sm-2
            a(href="", ng-click="sorting.predicate = 'currency'; sorting.reverse=!sorting.reverse", l10n) Currency
          .col-sm-2
            a(href="", ng-click="sorting.predicate = 'balance'; sorting.reverse=!sorting.reverse", l10n) Balance
          .col-sm-2(l10n) Trust Limit
        .row
          .col-xs-12
            form.row-padding-small(name='trustForm', id='trustForm',
              ng-show='mode=="main" && (addform_visible && can_add_trust)')
              .row<commit_msg>[FIX] Trustline: Fix notifications when deleting trustline<commit_after>section.col-xs-12.content(ng-controller="TrustCtrl")

  //- Disconnected

  group.disconnected(ng-hide="connected")
    p.literal(l10n) You have to be online to see this screen

  group.disconnected(ng-hide="!connected || loadState.lines")
    p.literal(l10n) Loading...

  //- Connected

  group(ng-show="connected && loadState.lines")
    div(ng-show="'web' === client && !loadingAccount && !account.Balance && loadState.account && connected")
      include banner/unfunded

    //- N1. Trust form
    .row
      .col-sm-12
        //- N5. Notifications for connect new account
        group.mode-granted.wide(ng-show='mode=="granted" && account.Balance')
          group.pending(ng-show='tx_result=="pending"')
            h2.tx-status(l10n) Connecting a gateway to your Ripple account...
          group.result-success(ng-show='tx_result=="cleared"')
            h2.tx-status(l10n) Gateway connected.
          group.result-error(ng-show='tx_result=="error"')
            h2.tx-status(l10n) Gateway could not be connected!
            p(l10n) There was a problem connecting the gateway. Please try again later.
          group.result-malformed(ng-show='tx_result=="malformed"')
            h2.tx-status(l10n) There was a problem connecting the gateway. Please try again later.
            p(l10n) Your request is invalid, reason: {{engine_result}} - {{engine_result_message}}
          group.result-failed(ng-show='tx_result=="failed"')
            h2.tx-status(l10n) Gateway connection failed!
            p(ng-switch on="engine_result")
              span(ng-switch-when="terNO_LINE", l10n) You have no gateway connected in this currency.
              span(ng-switch-when="tecINSUF_RESERVE_LINE", l10n) Insufficient reserve to connect gateway.
              span(ng-switch-when="tecNO_LINE_INSUF_RESERVE", l10n) You must have at
                |  least {{account.reserve_to_add_trust | rpamount:0}} XRP to connect a gateway.&#32;
                a(href="http://ripple.com/help/#reserve", l10n) Read more.
              span(ng-switch-default, l10n) Gateway connection failed to clear,
                |  reason: {{engine_result_message}}
          group.result-failed(ng-show='tx_result=="local"')
            h2.tx-status(l10n) Transaction failed!
            p(ng-switch on="engine_result")
              span(ng-switch-when="telINSUF_FEE_P", l10n)
                | The particular server you sent the transaction to was too busy to forward or process
                |  your transaction at the fee you included in it.
      .col-sm-12
        //- N5. Notifications for edit account
        group.mode-granted.wide(ng-show='notif !== "clear"')
          group(ng-switch on="notif")          
            group.pending(ng-switch-when="loading")
              h2.tx-status(l10n) Saving changes...
            group.result-success(ng-switch-when="success")
              h2.tx-status(l10n) Changes saved!
            group.result-error(ng-switch-when="error")
              h2.tx-status(l10n) There was an error while saving your changes.&#32;
              p(l10n) Please try again later.

      .col-sm-12          
        //- N5. Notifications for removing account
        group.mode-granted.wide(ng-show='notif !== "clear"')
          group(ng-switch on="notif")          
            group.pending(ng-switch-when="remove_gateway")
              h2.tx-status(l10n) Removing gateway...
            group.result-success(ng-switch-when="gateway_removed")
              h2.tx-status(l10n) Gateway removed!
            group.result-error(ng-switch-when="error")
              h2.tx-status(l10n) There was an error while saving your changes.&#32;
              p(l10n) Please try again later.
      .col-sm-12(ng-show='addform_visible && !can_add_trust')
        .alert.alert-warning(l10n) You must have at least
          strong  {{account.reserve_to_add_trust | rpamount:0}} XRP
          |  to add a new trust line.&#32;
          a(href="https://ripple.com/wiki/Reserves", target="_blank") More information
    .row(ng-show='connected')

      .col-sm-3
        include fund/menu
      .col-sm-9.trust-menu
        .row.row-padding-small.head(ng-hide='true')
          .col-sm-5(l10n) Name / Address
          .col-sm-2
            a(href="", ng-click="sorting.predicate = 'currency'; sorting.reverse=!sorting.reverse", l10n) Currency
          .col-sm-2
            a(href="", ng-click="sorting.predicate = 'balance'; sorting.reverse=!sorting.reverse", l10n) Balance
          .col-sm-2(l10n) Trust Limit
        .row
          .col-xs-12
            form.row-padding-small(name='trustForm', id='trustForm',
              ng-show='mode=="main" && (addform_visible && can_add_trust)')
              .row
{'fraction_non_alphanumeric': 0.13210702341137123, 'fraction_numerical': 0.021321070234113712, 'mean_word_length': 2.3087828492392806, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '323855', 'n_tokens_mistral': 3108, 'n_tokens_neox': 2935, 'n_words': 604}