<commit_before>section.col-xs-12.content(ng-controller="AdvancedCtrl")
  div(ng-show="'web' === client && !loadingAccount && !account.Balance && loadState.account && connected")
    include banner/unfunded
  .row(ng-show='connected')
    .col-sm-3
      include settings/navbar
    .col-sm-9.list
      section.content(id="servers")
        h4(l10n) Settings
        form(name="blobForm", ng-submit="saveBlob()")
          .descriptor(ng-show="'web' === client", l10n) Blob vault
          .row.advanced-form-row(ng-hide="editBlob")
            .col-xs-9.col-sm-8.col-md-5
              .description {{options.blobvault}}
            .col-xs-1
            .col-xs-3.col-sm-3.col-md-2
              a.btn.btn-block.btn-cancel(href="", ng-click="editBlob = true", l10n) edit
          .row.row-padding-small.field-edit-row(ng-show="editBlob")
            .col-xs-12.col-sm-9.col-md-6
              input.form-control.blobIp(
              name='blobIp', id="blobIp", type='text'
              ng-model='options.blobvault')
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id = 'saveBlob', type='submit', ng-disabled='blobForm.$invalid', l10n) Save
            .col-xs-3.col-sm-3.col-md-2
              button.btn.btn-block.btn-danger.btn-xs.submit(id="deleteBlob", type="button", ng-click="deleteBlob()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
              a(href="", ng-click="cancelEditBlob()", class="btn btn-cancel btn-block", l10n) cancel
        form(name="bridgeForm", ng-submit="saveBridge()")
          .descriptor(l10n) Bitcoin bridge
          .row.advanced-form-row(ng-hide="editBridge")
            .col-xs-9.col-sm-8.col-md-5
              .description {{options.bridge.out.bitcoin}}
            .col-xs-1
            .col-xs-3.col-sm-3.col-md-2
              a.btn.btn-block.btn-cancel(href="", ng-click="editBridge = true", l10n) edit
          .row.row-padding-small.field-edit-row(ng-show="editBridge")
            .col-xs-12.col-sm-9.col-md-6
              input.form-control.btcDomain(
              name='btcDomain', id="btcDomain", type='text'
              ng-model='options.bridge.out.bitcoin')
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id = 'saveBridge', type='submit', ng-disabled='bridgeForm.$invalid', l10n) Save
            .col-xs-3.col-sm-3.col-md-2
              button.btn.btn-block.btn-danger.btn-xs.submit(id="deleteBridge", type="button", ng-click="deleteBridge()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
              a(href="", ng-click="cancelEditBridge()", class="btn btn-cancel btn-block", l10n) cancel
        form.trust-line-form(name="accountsAdvForm", ng-submit="saveAcctOptions()")
          .descriptor(ng-show="'web' === client", l10n) Trust line
          .row.advanced-form-row(ng-hide="editAcctOptions")
            .col-xs-6.col-sm-5.col-md-3
              .description Advanced settings
            .col-xs-3.col-sm-4.col-md-3
              .description(ng-show="advanced_feature_switch", l10n) Show
              .description(ng-hide="advanced_feature_switch", l10n) Hide
            .col-xs-3.col-sm-3.col-md-2
              a(href="", ng-click="editAcctOptions = true", class="btn btn-block btn-cancel",l10n) edit
          .row.row-padding-small.edit-trust-line(ng-show="editAcctOptions")
            .col-xs-6.col-sm-5.col-md-3
              .description Advanced settings
            .col-xs-4.col-sm-4.col-md-3
              div.helperInput
                label
                  input(type="checkbox", name="acct_adv", ng-model='options.advanced_feature_switch')
                  span(l10n) Show
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id='save', type='submit'
              ng-disabled='serverForm.$invalid', l10n) Save
            .col-xs-3(ng-show="hasRemove()")
              button.btn.btn-block.btn-danger.btn-xs.submit(id="delete", type="button", ng-click="remove()", ng-show="hasRemove()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-2.text-center(id="cancel")
              a(href="", ng-click="cancelEditAcctOptions()", class="btn btn-cancel btn-block", l10n) cancel
        h4(id="serverSettings", l10n) Server settings
        form.server-row-form(ng-controller="ServerRowCtrl", ng-repeat="(index, server) in options.server.servers", ng-submit="save()")
          ng-form(name="serverForm")
            .row
              .col-xs-6.col-sm-5.col-md-3
                .descriptor(l10n) WebSocket host name
              .port.col-xs-4.col-sm-7.col-md-9
                .descriptor.portNumber(l10n) Port number
            .row.row-padding-small(ng-show="editing")
              .col-xs-6.col-sm-5.col-md-3.hostname-wrapper
                input.form-control.host(name='host', type='text', ng-model='server.host', rp-hostname)
                .errorGroup
                  div(rp-errors='host')
                    .error(rp-error-on='rpHostname', l10n) Socket ip or hostname is invalid.
                  div(rp-errors='port')
                    .error(rp-error-on='rpPortNumber', l10n) Port number is invalid.
              .col-xs-3.col-sm-2.col-md-2
                input.form-control.socketPort(name='port', type='text', ng-model='server.port', rp-port-number)
              .col-xs-3.col-md-1.col-sm-2.editable(id="secureSocket")
                div.helperInput
                  label
                    input(type="checkbox", name="secure", ng-model='server.secure')
                    span(l10n) Secure
              .col-xs-6.col-sm-6.col-md-3
                button.btn.btn-block.btn-success.btn-xs.submit(id='save', type='submit'
                ng-disabled='serverForm.$invalid', l10n) Save
              .col-xs-3.col-sm-3.col-md-2(ng-show="hasRemove()")
                button.btn.btn-block.btn-danger.btn-xs.submit(id="delete", type="button", ng-click="remove()", ng-show="hasRemove()", l10n) Delete
              .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
                a(href="", ng-click="cancel()", ng-hide="noCancel()",class="btn btn-cancel btn-block" ,l10n) cancel
            .row.advanced-form-row(ng-hide="editing")
              .col-xs-6.col-sm-5.col-md-3
                .description {{server.host}}
              .col-xs-3.col-sm-3.col-md-2.port-wrapper
                .description {{server.port}}
              .col-xs-3.col-sm-2.col-md-1(id="secureSocket")
                .description(ng-show="server.secure", l10n) Secure
                .description(ng-hide="server.secure", l10n) Not Secure
              .col-xs-3.col-sm-2.col-md-4
                a(href="", ng-click="editing = true", class="btn btn-cancel btn-block" ,l10n) edit

        .row
          .col-xs-12.col-sm-6.col-md-3
            button.btn.btn-block.btn-primary(type="button", id="newServer", ng-click="addServer()", l10n) Add new server<commit_msg>[TASK] RT-2465 UI: Align 'edit' buttons<commit_after>section.col-xs-12.content(ng-controller="AdvancedCtrl")
  div(ng-show="'web' === client && !loadingAccount && !account.Balance && loadState.account && connected")
    include banner/unfunded
  .row(ng-show='connected')
    .col-sm-3
      include settings/navbar
    .col-sm-9.list
      section.content(id="servers")
        h4(l10n) Settings
        form(name="blobForm", ng-submit="saveBlob()")
          .descriptor(ng-show="'web' === client", l10n) Blob vault
          .row.advanced-form-row(ng-hide="editBlob")
            .col-xs-9.col-sm-8.col-md-6
              .description {{options.blobvault}}
            .col-xs-1
            .col-xs-3.col-sm-3.col-md-2
              a.btn.btn-block.btn-cancel(href="", ng-click="editBlob = true", l10n) edit
          .row.row-padding-small.field-edit-row(ng-show="editBlob")
            .col-xs-12.col-sm-9.col-md-6
              input.form-control.blobIp(
              name='blobIp', id="blobIp", type='text'
              ng-model='options.blobvault')
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id = 'saveBlob', type='submit', ng-disabled='blobForm.$invalid', l10n) Save
            .col-xs-3.col-sm-3.col-md-2
              button.btn.btn-block.btn-danger.btn-xs.submit(id="deleteBlob", type="button", ng-click="deleteBlob()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
              a(href="", ng-click="cancelEditBlob()", class="btn btn-cancel btn-block", l10n) cancel
        form(name="bridgeForm", ng-submit="saveBridge()")
          .descriptor(l10n) Bitcoin bridge
          .row.advanced-form-row(ng-hide="editBridge")
            .col-xs-9.col-sm-8.col-md-6
              .description {{options.bridge.out.bitcoin}}
            .col-xs-1
            .col-xs-3.col-sm-3.col-md-2
              a.btn.btn-block.btn-cancel(href="", ng-click="editBridge = true", l10n) edit
          .row.row-padding-small.field-edit-row(ng-show="editBridge")
            .col-xs-12.col-sm-9.col-md-6
              input.form-control.btcDomain(
              name='btcDomain', id="btcDomain", type='text'
              ng-model='options.bridge.out.bitcoin')
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id = 'saveBridge', type='submit', ng-disabled='bridgeForm.$invalid', l10n) Save
            .col-xs-3.col-sm-3.col-md-2
              button.btn.btn-block.btn-danger.btn-xs.submit(id="deleteBridge", type="button", ng-click="deleteBridge()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
              a(href="", ng-click="cancelEditBridge()", class="btn btn-cancel btn-block", l10n) cancel
        form.trust-line-form(name="accountsAdvForm", ng-submit="saveAcctOptions()")
          .descriptor(ng-show="'web' === client", l10n) Trust line
          .row.advanced-form-row(ng-hide="editAcctOptions")
            .col-xs-6.col-sm-5.col-md-3
              .description Advanced settings
            .col-xs-3.col-sm-4.col-md-4
              .description(ng-show="advanced_feature_switch", l10n) Show
              .description(ng-hide="advanced_feature_switch", l10n) Hide
            .col-xs-3.col-sm-3.col-md-2
              a(href="", ng-click="editAcctOptions = true", class="btn btn-block btn-cancel",l10n) edit
          .row.row-padding-small.edit-trust-line(ng-show="editAcctOptions")
            .col-xs-6.col-sm-5.col-md-3
              .description Advanced settings
            .col-xs-4.col-sm-4.col-md-3
              div.helperInput
                label
                  input(type="checkbox", name="acct_adv", ng-model='options.advanced_feature_switch')
                  span(l10n) Show
            .col-xs-6.col-sm-6.col-md-3
              button.btn.btn-block.btn-success.btn-xs.submit(id='save', type='submit'
              ng-disabled='serverForm.$invalid', l10n) Save
            .col-xs-3(ng-show="hasRemove()")
              button.btn.btn-block.btn-danger.btn-xs.submit(id="delete", type="button", ng-click="remove()", ng-show="hasRemove()", l10n) Delete
            .col-xs-3.col-sm-3.col-md-2.text-center(id="cancel")
              a(href="", ng-click="cancelEditAcctOptions()", class="btn btn-cancel btn-block", l10n) cancel
        h4(id="serverSettings", l10n) Server settings
        form.server-row-form(ng-controller="ServerRowCtrl", ng-repeat="(index, server) in options.server.servers", ng-submit="save()")
          ng-form(name="serverForm")
            .row
              .col-xs-6.col-sm-5.col-md-3
                .descriptor(l10n) WebSocket host name
              .port.col-xs-4.col-sm-7.col-md-9
                .descriptor.portNumber(l10n) Port number
            .row.row-padding-small(ng-show="editing")
              .col-xs-6.col-sm-5.col-md-3.hostname-wrapper
                input.form-control.host(name='host', type='text', ng-model='server.host', rp-hostname)
                .errorGroup
                  div(rp-errors='host')
                    .error(rp-error-on='rpHostname', l10n) Socket ip or hostname is invalid.
                  div(rp-errors='port')
                    .error(rp-error-on='rpPortNumber', l10n) Port number is invalid.
              .col-xs-3.col-sm-2.col-md-2
                input.form-control.socketPort(name='port', type='text', ng-model='server.port', rp-port-number)
              .col-xs-3.col-md-1.col-sm-2.editable(id="secureSocket")
                div.helperInput
                  label
                    input(type="checkbox", name="secure", ng-model='server.secure')
                    span(l10n) Secure
              .col-xs-6.col-sm-6.col-md-3
                button.btn.btn-block.btn-success.btn-xs.submit(id='save', type='submit'
                ng-disabled='serverForm.$invalid', l10n) Save
              .col-xs-3.col-sm-3.col-md-2(ng-show="hasRemove()")
                button.btn.btn-block.btn-danger.btn-xs.submit(id="delete", type="button", ng-click="remove()", ng-show="hasRemove()", l10n) Delete
              .col-xs-3.col-sm-3.col-md-1.text-center(id="cancel")
                a(href="", ng-click="cancel()", ng-hide="noCancel()",class="btn btn-cancel btn-block" ,l10n) cancel
            .row.advanced-form-row(ng-hide="editing")
              .col-xs-6.col-sm-5.col-md-3
                .description {{server.host}}
              .col-xs-3.col-sm-3.col-md-2.port-wrapper
                .description {{server.port}}
              .col-xs-3.col-sm-2.col-md-2(id="secureSocket")
                .description(ng-show="server.secure", l10n) Secure
                .description(ng-hide="server.secure", l10n) Not Secure
              .col-xs-3.col-sm-2.col-md-2
                a(href="", ng-click="editing = true", class="btn btn-cancel btn-block" ,l10n) edit

        .row
          .col-xs-12.col-sm-6.col-md-3
            button.btn.btn-block.btn-primary(type="button", id="newServer", ng-click="addServer()", l10n) Add new server
{'fraction_non_alphanumeric': 0.17506063632472535, 'fraction_numerical': 0.024825224711085746, 'mean_word_length': 1.988488595182264, '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': '4982643', 'n_tokens_mistral': 4878, 'n_tokens_neox': 4696, 'n_words': 562}