<commit_before><template name="newallowance">
  <div class="modal fade" id="allowanceModal{{token._id}}" tabindex="-1" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content modal-order">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">
            My Allowance
          </h4>
        </div>
        <div class="modal-body">
          <div class="my-allowance-instructions">
            <div class="my-allowance row">
              <div class="col-xs-1 nplr"><img src="myallowance-personal.svg"></div>
              <div class="col-xs-11 npr"><p>You need to first grant access to withdraw from your personal account by setting the allowance</p></div>

              <div class="col-xs-1 nplr"><img src="myallowance-maximum.svg"></div>
              <div class="col-xs-11 npr"><p>Specify the maximum that can be withdrawn. It will decrease each time you place or fill and order</p></div>

              <div class="col-xs-1 nplr"><img src="myallowance-disable.svg"></div>
              <div class="col-xs-11 npr"><p>Disable it by setting the allowance to 0</p></div>
            </div>
          </div>
          <form>
            <div>
              <table>
                <tbody>
                  <tr>
                    <th>
                      Allowance
                    </th>
                    <td>
                      {{{formatBalance token.allowance 5 '' true}}} <span class="allowance-currency">{{token._id}}</span>
                    </td>
                  </tr>
                  <tr>
                    <th>
                      Available
                    </th>
                    <td>
                      <span class="set-total-allowance" {{b "click: setTotalAllowance"}}>{{{formatBalance token.balance 5 '' true}}}</span> <span class="allowance-currency">{{token._id}}</span>
                    </td>
                  </tr>
                  <tr class="row-input-line set-allowance">
                    <th>
                      Set
                    </th>
                    <td>
                      <input class="input" type="number" min="0" step="any" placeholder={{fromWei token.allowance}} {{b "value: value"}}><span class="allowance-currency">{{token._id}}</span>
                    </td>
                  </tr>
                </tbody>
                <tfoot>
                  {{#unless equals lastError ''}}
                    <tr>
                      <td colspan="2">
                        {{lastError}}
                      </td>
                    </tr>
                  {{/unless}}
                  {{#each pending}}
                  <tr>
                    <td colspan="2">
                      Pending: {{this.value}} {{this.token}}
                    </td>
                  </tr>
                  {{/each}}
                </tfoot>
              </table>
            </div>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-allowance-modal btn-default btn-submit-order-allowance btn-placement-right" {{b "enable: canChange, click: change"}}>Change</button>
          <button type="button" class="btn btn-default btn-placement-left btn-submit-order-cancel" data-dismiss="modal">Cancel</button>
        </div>
      </div>
    </div>
  </div>
  <!--
  -->
</template><commit_msg>Wording in 'My Allowance' popup changed<commit_after><template name="newallowance">
  <div class="modal fade" id="allowanceModal{{token._id}}" tabindex="-1" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content modal-order">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
            aria-hidden="true">&times;</span></button>
          <h4 class="modal-title">
            My Allowance
          </h4>
        </div>
        <div class="modal-body">
          <div class="my-allowance-instructions">
            <div class="my-allowance row">
              <div class="col-xs-1 nplr"><img src="myallowance-personal.svg"></div>
              <div class="col-xs-11 npr"><p>You need to first grant access to withdraw from your personal account by
                setting the allowance</p></div>

              <div class="col-xs-1 nplr"><img src="myallowance-maximum.svg"></div>
              <div class="col-xs-11 npr"><p>Specify the maximum that can be withdrawn. It will decrease each time you
                place {{#if not isMatchingEnabled}} or fill {{/if}} an order</p></div>

              <div class="col-xs-1 nplr"><img src="myallowance-disable.svg"></div>
              <div class="col-xs-11 npr"><p>Disable it by setting the allowance to 0</p></div>
            </div>
          </div>
          <form>
            <div>
              <table>
                <tbody>
                <tr>
                  <th>
                    Allowance
                  </th>
                  <td>
                    {{{formatBalance token.allowance 5 '' true}}} <span class="allowance-currency">{{token._id}}</span>
                  </td>
                </tr>
                <tr>
                  <th>
                    Available
                  </th>
                  <td>
                    <span class="set-total-allowance" {{b "click: setTotalAllowance"}}>{{{formatBalance token.balance 5
                                                                                                        ''
                                                                                                        true}}}</span>
                    <span class="allowance-currency">{{token._id}}</span>
                  </td>
                </tr>
                <tr class="row-input-line set-allowance">
                  <th>
                    Set
                  </th>
                  <td>
                    <input class="input" type="number" min="0" step="any" placeholder={{fromWei token.allowance}} {{b
                      "value: value"}}><span class="allowance-currency">{{token._id}}</span>
                  </td>
                </tr>
                </tbody>
                <tfoot>
                {{#unless equals lastError ''}}
                  <tr>
                    <td colspan="2">
                      {{lastError}}
                    </td>
                  </tr>
                {{/unless}}
                {{#each pending}}
                  <tr>
                    <td colspan="2">
                      Pending: {{this.value}} {{this.token}}
                    </td>
                  </tr>
                {{/each}}
                </tfoot>
              </table>
            </div>
          </form>
        </div>
        <div class="modal-footer">
          <button type="button"
                  class="btn btn-allowance-modal btn-default btn-submit-order-allowance btn-placement-right" {{b
            "enable: canChange, click: change"}}>Change
          </button>
          <button type="button" class="btn btn-default btn-placement-left btn-submit-order-cancel" data-dismiss="modal">
            Cancel
          </button>
        </div>
      </div>
    </div>
  </div>
  <!--
  -->
</template>
{'fraction_non_alphanumeric': 0.14685885232526516, 'fraction_numerical': 0.004895295077508839, 'mean_word_length': 1.2451159951159951, 'pattern_counts': {'":': 0, '<': 193, '<?xml version=': 0, '>': 193, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4550150', 'n_tokens_mistral': 1997, 'n_tokens_neox': 1867, 'n_words': 419}