<commit_before>
<div class="container text-center">

    <div class="col-md-3 col-sm-3 col-xs-3 text-left account-menu">
        <ul class="">
            <li><h2>Welcome</h2></li>
            <li><h4><a href="#/account" ng-class="setActive('account')">Account Settings</a></h4></li>
            <li><h4><a href="#/account/shopping-cart" ng-class="setActive('shopping-cart')">My Shopping Cart</a></h4></li>
            <li><h4><a href="#/account/purchased" ng-class="setActive('purchased')">My Orders</a></h4></li>
        </ul>
    </div>

    <div class="col-md-9 col-sm-9 col-xs-9 text-left act-list">
        <h1>Orders :<span ng-if="purchased.length" ng-bind="purchased.length">0</span></h1>
        <h4 class="text-right"><a href="#/sheetmusic">Continue Shopping</a></h4>

        <p class="loader" ng-show="loading"></p>

        <table class="table table-striped table-hover fade" ng-class="{in:purchased.length}">
            <thead>
            <tr>
                <th class="col-md-3">
                    <a ng-click="orderProp = 'total'; reverse=!reverse">Price</a>
                </th>
                <th class="col-md-3">Detail</th>
                <th class="col-md-3">
                    <a  ng-click="orderProp = 'updatedAt'; reverse=!reverse">Date</a>
                </th>
                <th class="col-md-3">Actions</th>
            </tr>
            </thead>
            <tbody ng-repeat="order in purchased | orderBy:orderProp:reverse">
            <tr>
                <td>{{order.total | currency:'£'}}</td>
                <td>Order</td>
                <td><small>{{order.updatedAt | date : 'yyyy-MM-dd'}}</small></td>
                <td><a ng-class="order.showdetail ? 'active' : ''" type="button" ng-click="showorder(order.id)" class="btn btn-primary btn-xs">Details</a></td>
            </tr>
            <tr class="info" ng-repeat="score in orderdetails" ng-if="order.showdetail">
                <td>{{score.price | currency:'£'}}</td>
                <td colspan="2"><a href="#/sheetmusic/{{score.shortname}}" ng-bind="score.title"></a></td>
                <!--
                <td><a type="button" ng-click="showscore(score.fileurl)" class="btn btn-warning btn-xs">Request</a></td>
                -->
                
                <td><a class="btn-default btn btn-xs" ng-click="showlinks(score.id)">Links</a></td>
            </tr>
            <tr class="warning" ng-repeat="link in orderlinks">
                <td></td>
                <td colspan="2">{{link.desc}}</td>
                <!--
                <td><a type="button" ng-click="showscore(score.fileurl)" class="btn btn-warning btn-xs">Request</a></td>
                -->
                <td><a class="btn-warning btn btn-xs" href="#/view-order/{{score.id}}/{{link.id}}" target="_blank">View Order</a></td>
            </tr>
            </tbody>
        </table>

        <h2 ng-if="purchased.length == 0 && loading == false">Your Orders is Empty</h2>
    </div>

</div>
<commit_msg>updated link<commit_after>
<div class="container text-center">

    <div class="col-md-3 col-sm-3 col-xs-3 text-left account-menu">
        <ul class="">
            <li><h2>Welcome</h2></li>
            <li><h4><a href="#/account" ng-class="setActive('account')">Account Settings</a></h4></li>
            <li><h4><a href="#/account/shopping-cart" ng-class="setActive('shopping-cart')">My Shopping Cart</a></h4></li>
            <li><h4><a href="#/account/purchased" ng-class="setActive('purchased')">My Orders</a></h4></li>
        </ul>
    </div>

    <div class="col-md-9 col-sm-9 col-xs-9 text-left act-list">
        <h1>Orders :<span ng-if="purchased.length" ng-bind="purchased.length">0</span></h1>
        <h4 class="text-right"><a href="#/sheetmusic">Continue Shopping</a></h4>

        <p class="loader" ng-show="loading"></p>

        <table class="table table-striped table-hover fade" ng-class="{in:purchased.length}">
            <thead>
            <tr>
                <th class="col-md-3">
                    <a ng-click="orderProp = 'total'; reverse=!reverse">Price</a>
                </th>
                <th class="col-md-3">Detail</th>
                <th class="col-md-3">
                    <a  ng-click="orderProp = 'updatedAt'; reverse=!reverse">Date</a>
                </th>
                <th class="col-md-3">Actions</th>
            </tr>
            </thead>
            <tbody ng-repeat="order in purchased | orderBy:orderProp:reverse">
            <tr>
                <td>{{order.total | currency:'£'}}</td>
                <td>Order</td>
                <td><small>{{order.updatedAt | date : 'yyyy-MM-dd'}}</small></td>
                <td><a ng-class="order.showdetail ? 'active' : ''" type="button" ng-click="showorder(order.id)" class="btn btn-primary btn-xs">Details</a></td>
            </tr>
            <tr class="info" ng-repeat="score in orderdetails" ng-if="order.showdetail">
                <td>{{score.price | currency:'£'}}</td>
                <td colspan="2"><a href="#/sheetmusic/{{score.shortname}}" ng-bind="score.title"></a></td>
                <!--
                <td><a type="button" ng-click="showscore(score.fileurl)" class="btn btn-warning btn-xs">Request</a></td>
                -->
                
                <td><a class="btn-default btn btn-xs btn-nolink" ng-click="">Email Sent</a></td>
            </tr>
            <tr class="warning" ng-repeat="link in orderlinks" ng-show="0">
                <td></td>
                <td colspan="2">{{link.desc}}</td>
                <!--
                <td><a type="button" ng-click="showscore(score.fileurl)" class="btn btn-warning btn-xs">Request</a></td>
                -->
                <td><a class="btn-warning btn btn-xs" href="#/view-order/{{score.id}}/{{link.id}}" target="_blank">View Order</a></td>
            </tr>
            </tbody>
        </table>

        <h2 ng-if="purchased.length == 0 && loading == false">Your Orders is Empty</h2>
    </div>

</div>

{'fraction_non_alphanumeric': 0.2082777036048064, 'fraction_numerical': 0.009512683578104138, 'mean_word_length': 1.958045409674235, 'pattern_counts': {'":': 0, '<': 219, '<?xml version=': 0, '>': 219, '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': '6632292', 'n_tokens_mistral': 2000, 'n_tokens_neox': 1895, 'n_words': 308}