<commit_before>class Account::PaymentsController < Account::BaseController
  def index
    @payments = Payment.where(user_id: session[:user_id]).order(created_at: :desc).page(params[:page])
  end

  def show
    @payment = Payment.find_by(user_id: session[:user_id], id: params[:id])
  end
end<commit_msg>account/payments controller<commit_after>class Account::PaymentsController < Account::BaseController
  def index
    @payments = Payment.where(user_id: session[:user_id], customer: false).order(created_at: :desc).page(params[:page])
    if params[:t] == "1"
      @payments = @payments.where("amount > 0.0")
    elsif params[:t]  == "0"
      @payments = @payments.where("amount < 0.0")
    end
  end

  def show
    @payment = Payment.find_by(user_id: session[:user_id], id: params[:id])
  end
end
{'fraction_non_alphanumeric': 0.1506849315068493, 'fraction_numerical': 0.007471980074719801, 'mean_word_length': 4.868613138686132, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '1879026', 'n_tokens_mistral': 270, 'n_tokens_neox': 265, 'n_words': 53}