<commit_before>- url_params = {:controller => 'accounts', :action => 'show', :id => params[:account_id] || params[:id]}

%table.table.table-striped.bookings.collection
  %thead
    = render 'accounts/booking_list_header'
  %tbody
    = render 'accounts/carry_booking' unless @saldo == 0

    - for @booking in @bookings
      - amount = @booking.amount
      - amount = -(amount) if @account.liability_account?
      - @saldo += amount if @booking.debit_account == @account
      - @saldo -= amount if @booking.credit_account == @account
      = render 'accounts/booking_item'
  %tfoot
    = render 'accounts/booking_list_footer' unless @bookings.empty?<commit_msg>Add pagination to account booking view.<commit_after>- url_params = {:controller => 'accounts', :action => 'show', :id => params[:account_id] || params[:id]}

= paginate @bookings

%table.table.table-striped.bookings.collection
  %thead
    = render 'accounts/booking_list_header'
  %tbody
    = render 'accounts/carry_booking' unless @saldo == 0

    - for @booking in @bookings
      - amount = @booking.amount
      - amount = -(amount) if @account.liability_account?
      - @saldo += amount if @booking.debit_account == @account
      - @saldo -= amount if @booking.credit_account == @account
      = render 'accounts/booking_item'
  %tfoot
    = render 'accounts/booking_list_footer' unless @bookings.empty?

= paginate @bookings
{'fraction_non_alphanumeric': 0.13785714285714284, 'fraction_numerical': 0.0014285714285714286, 'mean_word_length': 3.68561872909699, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '6428475', 'n_tokens_mistral': 467, 'n_tokens_neox': 452, 'n_words': 100}