<commit_before>Association = Struct.new(:klass, :name, :macro, :scope, :options)

Column = Struct.new(:name, :type, :limit) do
end

Relation = Struct.new(:records) do
  delegate :each, to: :records

  def where(conditions = nil)
    self.class.new conditions ? records.first : records
  end

  def order(conditions = nil)
    self.class.new conditions ? records.last : records
  end<commit_msg>Fix mock of Relation#where<commit_after>Association = Struct.new(:klass, :name, :macro, :scope, :options)

Column = Struct.new(:name, :type, :limit) do
end

Relation = Struct.new(:records) do
  delegate :each, to: :records

  def where(conditions = nil)
    self.class.new conditions ? [records.first] : records
  end

  def order(conditions = nil)
    self.class.new conditions ? records.last : records
  end
{'fraction_non_alphanumeric': 0.12826899128268993, 'fraction_numerical': 0.0, 'mean_word_length': 4.2894736842105265, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5180302', 'n_tokens_mistral': 259, 'n_tokens_neox': 252, 'n_words': 72}