<commit_before>class WelcomeController < ApplicationController
  def index
    # @items = Item.all.order("updated_at DESC").page(params[:page]).per(30)
    @items = Item.all.order(:asin).page(params[:page]).per(32)
  end
end<commit_msg>update welcome page query<commit_after>class WelcomeController < ApplicationController
  def index
    # @items = Item.all.order("updated_at DESC").page(params[:page]).per(30)
    @items = Item.all.joins('LEFT OUTER JOIN ownerships ON items.id = ownerships.item_id').group('items.id').order(:asin).page(params[:page]).per(32)
  end
end
{'fraction_non_alphanumeric': 0.15761821366024517, 'fraction_numerical': 0.014010507880910683, 'mean_word_length': 5.651162790697675, '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': '4424161', 'n_tokens_mistral': 186, 'n_tokens_neox': 180, 'n_words': 32}