<commit_before>class UsersController < ApplicationController
  def show
    find_user
    @repositories = @user.github_repositories.order('stargazers_count DESC').limit(10)
    @contributions = @user.github_contributions.with_repo
                          .includes(:github_repository)
                          .order('count DESC').limit(10)
  end

  def repositories
    find_user
    @repositories = @user.github_repositories.order('stargazers_count DESC').paginate(page: params[:page])
  end

  def contributions
    find_user
    @contributions = @user.github_contributions.with_repo
                          .includes(:github_repository)
                          .order('count DESC').paginate(page: params[:page])
  end

  private
<commit_msg>Don’t show owned repos in contibutions<commit_after>class UsersController < ApplicationController
  def show
    find_user
    @repositories = @user.github_repositories.order('stargazers_count DESC').limit(10)
    @contributions = @user.github_contributions.with_repo
                          .joins(:github_repository)
                          .where('github_repositories.owner_id != ?', @user.github_id.to_s)
                          .includes(:github_repository)
                          .order('count DESC').limit(10)
  end

  def repositories
    find_user
    @repositories = @user.github_repositories.order('stargazers_count DESC').paginate(page: params[:page])
  end

  def contributions
    find_user
    @contributions = @user.github_contributions.with_repo
                          .joins(:github_repository)
                          .where('github_repositories.owner_id != ?', @user.github_id.to_s)
                          .includes(:github_repository)
                          .order('count DESC').paginate(page: params[:page])
  end

  private

{'fraction_non_alphanumeric': 0.09620670698185817, 'fraction_numerical': 0.0043980208905992305, 'mean_word_length': 2.382899628252788, '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': '7640904', 'n_tokens_mistral': 530, 'n_tokens_neox': 495, 'n_words': 79}