<commit_before>class User::ProfilesController < ApplicationController
  before_filter :load_user
  filter_access_to :edit, :create, :update, attribute_check: true, model: User
  filter_access_to :all

  def show
    @user = UserDecorator.decorate(@user)

    involved_threads = ThreadList.public_recent_involved_with(@user, 10)
    @involved_threads = ThreadListDecorator.decorate(involved_threads)
<commit_msg>Preload the group for the recent threads on the user profile page.<commit_after>class User::ProfilesController < ApplicationController
  before_filter :load_user
  filter_access_to :edit, :create, :update, attribute_check: true, model: User
  filter_access_to :all

  def show
    @user = UserDecorator.decorate(@user)

    involved_threads = ThreadList.public_recent_involved_with(@user, 10).includes(:group)
    @involved_threads = ThreadListDecorator.decorate(involved_threads)

{'fraction_non_alphanumeric': 0.08183856502242152, 'fraction_numerical': 0.004484304932735426, 'mean_word_length': 6.441666666666666, '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': '2390720', 'n_tokens_mistral': 281, 'n_tokens_neox': 266, 'n_words': 59}