<commit_before>class Account < ActiveRecord::Base
  # attributes: id, name, updated_at, created_at
  not_sharded

  has_many :tickets
  has_many :account_things
  has_and_belongs_to_many :people, :join_table => 'account_people'
end

class AccountThing < ActiveRecord::Base
  not_sharded

  if respond_to?(:where)
    scope :enabled, where(:enabled => true)
  else
    named_scope :enabled, :conditions => {:enabled => true}
  end
end

class Email < ActiveRecord::Base
  not_sharded
  establish_connection_override :alternative
end

class AccountInherited < Account
end

class Ticket < ActiveRecord::Base
  # attributes: id, title, account_id, updated_at, created_at
  belongs_to :account
end

class Person < ActiveRecord::Base
  not_sharded
end

class User < Person
end


<commit_msg>Use lambda for scope<commit_after>class Account < ActiveRecord::Base
  # attributes: id, name, updated_at, created_at
  not_sharded

  has_many :tickets
  has_many :account_things
  has_and_belongs_to_many :people, :join_table => 'account_people'
end

class AccountThing < ActiveRecord::Base
  not_sharded

  if respond_to?(:where)
    scope :enabled, -> { where(:enabled => true) }
  else
    named_scope :enabled, :conditions => {:enabled => true}
  end
end

class Email < ActiveRecord::Base
  not_sharded
  establish_connection_override :alternative
end

class AccountInherited < Account
end

class Ticket < ActiveRecord::Base
  # attributes: id, title, account_id, updated_at, created_at
  belongs_to :account
end

class Person < ActiveRecord::Base
  not_sharded
end

class User < Person
end



{'fraction_non_alphanumeric': 0.08217446270543616, 'fraction_numerical': 0.0, 'mean_word_length': 5.041984732824427, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 12, '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': '4352030', 'n_tokens_mistral': 513, 'n_tokens_neox': 503, 'n_words': 139}