<commit_before>class RankingController < ApplicationController
    def have
        @items = Have.select("item_id, count(1) as have_count,items.*").group("item_id").order("have_count DESC").joins("LEFT OUTER JOIN items ON items.id = ownerships.item_id").limit(10)
    end
    
    def want
       @items = Want.select("item_id, count(1) as want_count,items.*").group("item_id").order("want_count DESC").joins("LEFT OUTER JOIN items ON items.id = ownerships.item_id").limit(10)
    end
end<commit_msg>ranking channged<commit_after>class RankingController < ApplicationController
    def have
        @items = Have.select("item_id, count(1) as have_count,items.*").group("ownerships.item_id").order("have_count DESC").joins("LEFT OUTER JOIN items ON items.id = ownerships.item_id").limit(10)
    end
    
    def want
       @items = Want.select("item_id, count(1) as want_count,items.*").group("ownerships.item_id").order("want_count DESC").joins("LEFT OUTER JOIN items ON items.id = ownerships.item_id").limit(10)
    end
end
{'fraction_non_alphanumeric': 0.1424390243902439, 'fraction_numerical': 0.011707317073170732, 'mean_word_length': 4.576086956521739, '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': '5984998', 'n_tokens_mistral': 340, 'n_tokens_neox': 329, 'n_words': 68}