<commit_before>class WelcomeController < ApplicationController
  def index
    if current_user
      @discussions = Discussion.of_articles(current_user.articles)
      @number_of_articles_without_discussions = current_user.articles.count - @discussions.count
    end
  end
end
<commit_msg>Welcome uses signed_in? instead of current_user<commit_after>class WelcomeController < ApplicationController
  def index
    if signed_in?
      @discussions = Discussion.of_articles(current_user.articles)
      @number_of_articles_without_discussions = current_user.articles.count - @discussions.count
    end
  end
end

{'fraction_non_alphanumeric': 0.05901639344262295, 'fraction_numerical': 0.0, 'mean_word_length': 4.875, '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': '2961216', 'n_tokens_mistral': 185, 'n_tokens_neox': 167, 'n_words': 35}