<commit_before><div ng-controller="CashoutCtrl" class="row">
        <div class="columns large-12" ng-show="page=='screen1'">
            <div ng-show="!send.connected" class="row collapse">
                <label>Banking endpoint</label>
                <div class="columns small-9">
                    <input id="server" class="server" type="text" ng-model=send.server></input>
                </div>
                <div class="columns small-3">
                    <a ng-disabled="send.server.indexOf('api/')===-1" ng-click="connectService()" class="button small">{{'Connect'|_}}</a>
                </div>
            </div>
            <div ng-show="send.connected" class="row collapse">
                <div class="columns small-9">
                    <h3>{{serviceTitle}}
                </div>
                <div class="columns small-3">
                    <a ng-click="clearServer()">x</a></h3>
                </div>

            </div>
            <div class="row">
                <form ng-if="send.connected && legal">
                    <label>Phone</label><br /> <input id="phone" class="phone" type="number" ng-model=send.phone></input>
                    <label>Amount</label><br /> <input class="amount" type="number" step="10" min="10" max="{{dailyLimit}}" required ng-model="send.amount"></input><br />
                    <div ng-if="status" class="alert alert-warning">{{status}}</div>
                    <div><em>service bound by the <a ng-click="showLegal()">{{serviceTitle}} terms</a></em></div>
                    <a class="button" ng-click="nextPage()">Next</a>
                    <a class="button" ng-click="toggleSettings()">Settings</a>
                    <a class="button" ng-show="allTickets.length" ng-click="toggleTickets()">Tickets</a>
                </form>
            </div>
        </div>
        <div ng-cloak ng-if="page=='screen2'">
            <em>{{status}}</em>
            <div ng-show="['expired', 'cancelled', 'ok', 'sent'].indexOf(currentTicket.status)===-1">
                <h2>Pay {{currentTicket.btcamount/100000000}} btc</h2>
                <p>to <a ng-click="payTicket()">{{currentTicket.address}}</a></p>
                <div class="row">
                    <div class="medium-12 columns">
                        Please note down the following PIN:
                    </div>
                </div>
                <div class="row">
                    <div class="medium-12 columns">
                        <h3>{{pin}}</h3>
                    </div>
                </div>
            </div>
            <div ng-show="['expired', 'cancelled', 'sent', 'ok'].indexOf(currentTicket.status)>-1">
                <div class="row">{{currentTicket.status}}</div>
                <div class="row">PIN: {{currentTicket.pin}}</div>
                <div class="row" ng-show="currentTicket.status=='ok'">
                Wait for transaction to get 2 confirmations.
                Current confirmations: {{currentTicket.confirmations}}
                </div>
                <div class="row" ng-show="currentTicket.status=='sent'">
                Ticket sent: {{currentTicket.ticketId}}
                </div><commit_msg>Only enable next when form is ready.<commit_after><div ng-controller="CashoutCtrl" class="row">
        <div class="columns large-12" ng-show="page=='screen1'">
            <div ng-show="!send.connected" class="row collapse">
                <label>Banking endpoint</label>
                <div class="columns small-9">
                    <input id="server" class="server" type="text" ng-model=send.server></input>
                </div>
                <div class="columns small-3">
                    <a ng-disabled="send.server.indexOf('api/')===-1" ng-click="connectService()" class="button small">{{'Connect'|_}}</a>
                </div>
            </div>
            <div ng-show="send.connected" class="row collapse">
                <div class="columns small-9">
                    <h3>{{serviceTitle}}
                </div>
                <div class="columns small-3">
                    <a ng-click="clearServer()">x</a></h3>
                </div>

            </div>
            <div class="row">
                <form ng-if="send.connected && legal">
                    <label>Phone</label><br /> <input id="phone" class="phone" type="number" ng-model=send.phone></input>
                    <label>Amount</label><br /> <input class="amount" type="number" step="10" min="10" max="{{dailyLimit}}" required ng-model="send.amount"></input><br />
                    <div ng-if="status" class="alert alert-warning">{{status}}</div>
                    <div><em>service bound by the <a ng-click="showLegal()">{{serviceTitle}} terms</a></em></div>
                    <a class="button" ng-disabled="!send.phone||send.phone<99999999" ng-click="nextPage()">Next</a>
                    <a class="button" ng-click="toggleSettings()">Settings</a>
                    <a class="button" ng-show="allTickets.length" ng-click="toggleTickets()">Tickets</a>
                </form>
            </div>
        </div>
        <div ng-cloak ng-if="page=='screen2'">
            <em>{{status}}</em>
            <div ng-show="['expired', 'cancelled', 'ok', 'sent'].indexOf(currentTicket.status)===-1">
                <h2>Pay {{currentTicket.btcamount/100000000}} btc</h2>
                <p>to <a ng-click="payTicket()">{{currentTicket.address}}</a></p>
                <div class="row">
                    <div class="medium-12 columns">
                        Please note down the following PIN:
                    </div>
                </div>
                <div class="row">
                    <div class="medium-12 columns">
                        <h3>{{pin}}</h3>
                    </div>
                </div>
            </div>
            <div ng-show="['expired', 'cancelled', 'sent', 'ok'].indexOf(currentTicket.status)>-1">
                <div class="row">{{currentTicket.status}}</div>
                <div class="row">PIN: {{currentTicket.pin}}</div>
                <div class="row" ng-show="currentTicket.status=='ok'">
                Wait for transaction to get 2 confirmations.
                Current confirmations: {{currentTicket.confirmations}}
                </div>
                <div class="row" ng-show="currentTicket.status=='sent'">
                Ticket sent: {{currentTicket.ticketId}}
                </div>
{'fraction_non_alphanumeric': 0.1783607575287178, 'fraction_numerical': 0.012108040981061783, 'mean_word_length': 1.7324003392705682, 'pattern_counts': {'":': 0, '<': 172, '<?xml version=': 0, '>': 173, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 3, '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': '2332627', 'n_tokens_mistral': 1912, 'n_tokens_neox': 1728, 'n_words': 326}