<commit_before>class ShopController < ApplicationController
  def index
    session[:language_id] = Language.first.id
    @languages = Language.all
    @topcategories = Category.all.where(parent_id: nil)
    @items = Item.all
  end

  def set_lang
    session[:language_id] = Language.where(language: params[:lang]).first.id
    render nothing: true
  end

end
<commit_msg>added mailer with pdf<commit_after>class ShopController < ApplicationController
  def index
    if(session[:language_id].nil?)
      session[:language_id] = Language.first.id
    end
    @languages = Language.all
    @topcategories = Category.all.where(parent_id: nil)
    @items = Item.all
  end

  def set_lang
    session[:language_id] = Language.where(language: params[:lang]).first.id
    render nothing: true
  end

end

{'fraction_non_alphanumeric': 0.10137672090112641, 'fraction_numerical': 0.0, 'mean_word_length': 3.8484848484848486, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '6940092', 'n_tokens_mistral': 244, 'n_tokens_neox': 241, 'n_words': 55}