<commit_before>class BalanceController < ApplicationController

  def index
    redirect_to :action => 'show'
  end

  def show
    # Client
    unless @client = Client.find(:first)
      redirect_to :controller => 'clients', :action => 'new'
      return
    end
    
    @date = params[:balance][:date] unless params[:balance].nil?
    # use current date if not specified otherwise
    @date ||= Date.today
    render :action => :show
  end
end<commit_msg>Removed unnessesary line.<commit_after>class BalanceController < ApplicationController

  def index
    redirect_to :action => 'show'
  end

  def show
    # Client
    unless @client = Client.find(:first)
      redirect_to :controller => 'clients', :action => 'new'
      return
    end

    @date = params[:balance][:date] unless params[:balance].nil?
    # use current date if not specified otherwise
    @date ||= Date.today
  end
end
{'fraction_non_alphanumeric': 0.10825892857142858, 'fraction_numerical': 0.0, 'mean_word_length': 3.191588785046729, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 10, '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': '7643221', 'n_tokens_mistral': 264, 'n_tokens_neox': 254, 'n_words': 78}