<commit_before>require "cases/helper"
require 'models/post'
require 'models/topic'
require 'models/reply'
require 'models/author'
require 'models/entrant'
require 'models/developer'
require 'models/company'

class RealtionTest < ActiveRecord::TestCase
  fixtures :authors, :topics, :entrants, :developers, :companies, :developers_projects, :accounts, :categories, :categorizations, :posts

  def test_finding_with_conditions
    assert_equal Author.find(:all, :conditions => "name = 'David'"), Author.all.conditions!("name = 'David'").to_a
  end

  def test_finding_with_order<commit_msg>Fix typo in test classname.<commit_after>require "cases/helper"
require 'models/post'
require 'models/topic'
require 'models/reply'
require 'models/author'
require 'models/entrant'
require 'models/developer'
require 'models/company'

class RelationTest < ActiveRecord::TestCase
  fixtures :authors, :topics, :entrants, :developers, :companies, :developers_projects, :accounts, :categories, :categorizations, :posts

  def test_finding_with_conditions
    assert_equal Author.find(:all, :conditions => "name = 'David'"), Author.all.conditions!("name = 'David'").to_a
  end

  def test_finding_with_order
{'fraction_non_alphanumeric': 0.12521008403361344, 'fraction_numerical': 0.0, 'mean_word_length': 6.94, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '7647073', 'n_tokens_mistral': 376, 'n_tokens_neox': 365, 'n_words': 87}