<commit_before>module CherryTomato
  class EntryRepository < ROM::Repository[:entries]
    commands :create

    def [](id)
      entries.where(id: id).one
    end

    def by_user_id(user_id)
      entries.where(user_id: user_id).one
    end

    def all
      entries.to_a<commit_msg>Reverse query order in EntryRepository#by_user_id<commit_after>module CherryTomato
  class EntryRepository < ROM::Repository[:entries]
    commands :create

    def [](id)
      entries.where(id: id).one
    end

    def by_user_id(user_id)
      entries.where(user_id: user_id).order(:created_at).reverse
    end

    def all
      entries
{'fraction_non_alphanumeric': 0.0926517571884984, 'fraction_numerical': 0.0, 'mean_word_length': 3.208053691275168, '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': '6954413', 'n_tokens_mistral': 210, 'n_tokens_neox': 198, 'n_words': 43}