<commit_before><template>
   <div class='row'>
      <div class='col-md-12'>
         <h3>Recent Orders</h3>
      </div>
      <div class='col-md-12'>
        <div class="table-responsive">
          <table class='recent-orders table table-hover'>
             <thead>
                <tr>
                   <th>Stock</th>
                   <th>State</th>
                   <th>Order Side</th>
                   <th>Order Type</th>
                   <th>Quantity</th>
                   <th>Average Price</th>
                   <th>Order Age</th>
                   <th>Options</th>
                </tr>
             </thead>
             <tbody v-if="orders.length > 0">
                <recent-order v-for="(order, index) in orders" :row="order" :key="index"></recent-order>
             </tbody>
          </table>
        </div>
         <nav aria-label="Page navigation example">
           <ul class="pagination">
             <li v-if="previousOrder != null" @click="previousPage" class="page-item"><a class="page-link">Previous</a></li>
             <li v-if="nextOrder != null" @click="nextPage" class="page-item"><a class="page-link">Next</a></li>
           </ul>
         </nav>
      </div>
   </div>
</template>
<script>
import robinhood from '@/api/robinhood';
import state from '@/state';
import Order from '@/components/RecentOrders/Order';

export default {
   name: 'recent-orders',
   created(){
      this.getRecentOrders();
   },
   data(){
     return {
       recentOrderTimer: null
     }
   },
   beforeDestroy(){
     clearTimeout(recentOrderTimer);
   },
   methods: {
      nextPage: function(){
         robinhood.getRecentOrders(self.nextOrder);
      },
      previousPage: function(){
         robinhood.getRecentOrders(self.previousOrder);
      },
      getRecentOrders(){
        robinhood.getRecentOrders();

        this.recentOrderTimer = setTimeout(this.getRecentOrders, 10000);
      }<commit_msg>fix bug<commit_after><template>
   <div class='row'>
      <div class='col-md-12'>
         <h3>Recent Orders</h3>
      </div>
      <div class='col-md-12'>
        <div class="table-responsive">
          <table class='recent-orders table table-hover'>
             <thead>
                <tr>
                   <th>Stock</th>
                   <th>State</th>
                   <th>Order Side</th>
                   <th>Order Type</th>
                   <th>Quantity</th>
                   <th>Average Price</th>
                   <th>Order Age</th>
                   <th>Options</th>
                </tr>
             </thead>
             <tbody v-if="orders.length > 0">
                <recent-order v-for="(order, index) in orders" :row="order" :key="index"></recent-order>
             </tbody>
          </table>
        </div>
         <nav aria-label="Page navigation example">
           <ul class="pagination">
             <li v-if="previousOrder != null" @click="previousPage" class="page-item"><a class="page-link">Previous</a></li>
             <li v-if="nextOrder != null" @click="nextPage" class="page-item"><a class="page-link">Next</a></li>
           </ul>
         </nav>
      </div>
   </div>
</template>
<script>
import robinhood from '@/api/robinhood';
import state from '@/state';
import Order from '@/components/RecentOrders/Order';

export default {
   name: 'recent-orders',
   created(){
      this.getRecentOrders();
   },
   data(){
     return {
       recentOrderTimer: null
     }
   },
   beforeDestroy(){
     clearTimeout(this.recentOrderTimer);
   },
   methods: {
      nextPage: function(){
         robinhood.getRecentOrders(self.nextOrder);
      },
      previousPage: function(){
         robinhood.getRecentOrders(self.previousOrder);
      },
      getRecentOrders(){
        robinhood.getRecentOrders();

        this.recentOrderTimer = setTimeout(this.getRecentOrders, 10000);
      }
{'fraction_non_alphanumeric': 0.15754304805962477, 'fraction_numerical': 0.006168080185042405, 'mean_word_length': 1.7979870596693026, 'pattern_counts': {'":': 0, '<': 105, '<?xml version=': 0, '>': 107, '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': '2352409', 'n_tokens_mistral': 1218, 'n_tokens_neox': 1136, 'n_words': 211}