<commit_before><div class="row">

    <div class="col-sm-22 col-sm-offset-1">
        <h1>Pedidos <span ng-bind="filteredOrders.length"></span></h1>
        
        <form class="form-inline text-right">
            <div class="form-group">
        		<input class="form-control input-xs" id="orderQuery" name="orderQuery" ng-model="orderQuery" type="text" placeholder="Buscar pedido">
            </div>
        	<div class="form-group">
                <select class="form-control" id="order" ng-model="selectedOrder">
                    <option value="updated" selected>Data</option>
                    <option value="customer.email">Cliente</option>
                    <option value="district">Bairro</option>
                    <option value="city">Cidade</option>
                    <option value="deliveryOption">Entrega</option>
                    <option value="products">Produto</option>
                    <option value="payment_status">Pagamento</option>
                    <option value="invalid">Inválido</option>
                </select>
        	</div>
        </form>
        
        <br>
        
        <table class="table table-condensed table-stripped table-hover small">
            <thead>
                <tr>
                    <td class="click" ng-click="orderByField='_id'; reverseSort = !reverseSort">Ref</td>
                    <td class="click" ng-click="orderByField='customer.name'; reverseSort = !reverseSort">Cliente</td>
                    <td class="click" ng-click="orderByField='shipping.phone'; reverseSort = !reverseSort">Fone</td>
                    <td class="click" ng-click="orderByField='shipping.district'; reverseSort = !reverseSort">Bairro</td>
                    <td class="click" ng-click="orderByField='shipping.city'; reverseSort = !reverseSort">Cidade</td>
                    <td class="click" ng-click="orderByField='products.length'; reverseSort = !reverseSort">Produtos</td>
                    <td class="click" ng-click="orderByField='updated'; reverseSort = !reverseSort">Compra</td>
                    <td class="click" ng-click="orderByField='payment_date'; reverseSort = !reverseSort">Pagamento</td>
                    <td class="click" ng-click="orderByField='shipping.deliveryOption'; reverseSort = !reverseSort">Entrega</td>
                    <td class="click" ng-click="orderByField='status'; reverseSort = !reverseSort">Status</td>
                    <td class="click" ng-click="orderByField='total'; reverseSort = !reverseSort">valor</td>
                    <td>Ações</td>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="order in filteredOrders = (orders | filter: orderQuery | orderBy: orderByField:reverseSort)">
                    <td><a href="/pedido/{{order._id}}" ng-bind="order._id"></a></td>
                    <td><a href="/usuario/{{order.customer._id}}" ng-bind="order.customer.name || order.customer.email"></a></td>
                    <td ng-bind="order.shipping.phone"></td>
                    <td ng-bind="order.shipping.district"></td>
                    <td ng-bind="order.shipping.city"></td>
                    <td ng-bind="order.products.length"></td>
                    <td ng-bind="order.updated | date:'dd/MM/yyyy'"></td>
                    <td ng-bind="order.payment_date"></td>
                    <td ng-bind="order.shipping.deliveryOption"></td>
                    <td ng-switch="order.status" title="{{statuses[order.status].name}} - {{statuses[order.status].desc}}">
                        <i ng-switch-when="0" class="fa fa-fw fa-money text-info"></i>
                        <i ng-switch-when="1" class="fa fa-fw fa-truck fa-flip-horizontal text-warning"></i>
                        <i ng-switch-when="2" class="fa fa-fw fa-check text-success"></i>
                        <i ng-switch-when="3" class="fa fa-fw fa-close text-danger"></i>
                        <i ng-switch-when="4" class="fa fa-fw fa-exclamation text-danger"></i>
                        <i ng-switch-when="5" class="fa fa-fw fa-ban text-danger"></i>
                    </td>
                    <td ng-bind="order.total | currency:'R$':2"></td>
                    <td><a ng-click="dropOrder(order)" href="javascrip:void(0)">x</a></td>
                </tr>
            </tbody>
        </table>
    </div>
</div><commit_msg>ordenando pedidos por data<commit_after><div class="row">

    <div class="col-sm-22 col-sm-offset-1">
        <h1>Pedidos <span ng-bind="filteredOrders.length"></span></h1>
        
        <form class="form-inline text-right">
            <div class="form-group">
        		<input class="form-control input-xs" id="orderQuery" name="orderQuery" ng-model="orderQuery" type="text" placeholder="Buscar pedido">
            </div>
        	<div class="form-group">
                <select class="form-control" id="order" ng-model="selectedOrder">
                    <option value="updated" selected>Data</option>
                    <option value="customer.email">Cliente</option>
                    <option value="district">Bairro</option>
                    <option value="city">Cidade</option>
                    <option value="deliveryOption">Entrega</option>
                    <option value="products">Produto</option>
                    <option value="payment_status">Pagamento</option>
                    <option value="invalid">Inválido</option>
                </select>
        	</div>
        </form>
        
        <br>
        
        <table class="table table-condensed table-stripped table-hover small">
            <thead>
                <tr>
                    <td class="click" ng-click="orderByField='_id'; reverseSort = !reverseSort">Ref</td>
                    <td class="click" ng-click="orderByField='customer.name'; reverseSort = !reverseSort">Cliente</td>
                    <td class="click" ng-click="orderByField='shipping.phone'; reverseSort = !reverseSort">Fone</td>
                    <td class="click" ng-click="orderByField='shipping.city'; reverseSort = !reverseSort">Cidade</td>
                    <td class="click" ng-click="orderByField='shipping.district'; reverseSort = !reverseSort">Bairro</td>
                    <td class="click" ng-click="orderByField='products.length'; reverseSort = !reverseSort">Produtos</td>
                    <td class="click" ng-click="orderByField='updated'; reverseSort = !reverseSort">Compra</td>
                    <td class="click" ng-click="orderByField='payment_date'; reverseSort = !reverseSort">Pagamento</td>
                    <td class="click" ng-click="orderByField='shipping.deliveryOption'; reverseSort = !reverseSort">Entrega</td>
                    <td class="click" ng-click="orderByField='status'; reverseSort = !reverseSort">Status</td>
                    <td class="click" ng-click="orderByField='total'; reverseSort = !reverseSort">valor</td>
                    <td>Ações</td>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="order in filteredOrders = (orders | filter: orderQuery | orderBy: orderByField:reverseSort)">
                    <td><a href="/pedido/{{order._id}}" ng-bind="order._id"></a></td>
                    <td><a href="/usuario/{{order.customer._id}}" ng-bind="order.customer.name || order.customer.email"></a></td>
                    <td ng-bind="order.shipping.phone"></td>
                    <td ng-bind="order.shipping.city"></td>
                    <td ng-bind="order.shipping.district"></td>
                    <td ng-bind="order.products.length"></td>
                    <td ng-bind="order.updated | date:'dd/MM/yyyy'"></td>
                    <td ng-bind="order.payment_date"></td>
                    <td ng-bind="order.shipping.deliveryOption"></td>
                    <td ng-switch="order.status" title="{{statuses[order.status].name}} - {{statuses[order.status].desc}}">
                        <i ng-switch-when="0" class="fa fa-fw fa-money text-info"></i>
                        <i ng-switch-when="1" class="fa fa-fw fa-truck fa-flip-horizontal text-warning"></i>
                        <i ng-switch-when="2" class="fa fa-fw fa-check text-success"></i>
                        <i ng-switch-when="3" class="fa fa-fw fa-close text-danger"></i>
                        <i ng-switch-when="4" class="fa fa-fw fa-exclamation text-danger"></i>
                        <i ng-switch-when="5" class="fa fa-fw fa-ban text-danger"></i>
                    </td>
                    <td ng-bind="order.total | currency:'R$':2"></td>
                    <td><a ng-click="dropOrder(order)" href="javascrip:void(0)">x</a></td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
{'fraction_non_alphanumeric': 0.16619107407830155, 'fraction_numerical': 0.0029676977513982423, 'mean_word_length': 1.9742023082145281, 'pattern_counts': {'":': 0, '<': 223, '<?xml version=': 0, '>': 223, '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': '5739257', 'n_tokens_mistral': 2573, 'n_tokens_neox': 2450, 'n_words': 404}