<commit_before>class Course < ActiveRecord::Base
  
  has_many :courses_users
  has_many :users, :through => :courses_users, :conditions => "courses_users.status = 'confirmed'"
  acts_as_indexed :fields => [:title, :description],
    :index_file => [Rails.root.to_s, "tmp", "index"]

  named_scope :active, :conditions => {:active => true}

  validates_presence_of :title
  validates_uniqueness_of :title

  def registered?(user)
    self.users.exists? user
  end

  def free?
    fee == 0
  end

  def negotiable?
    negotiable
  end

end<commit_msg>added fixed for negotiable<commit_after>class Course < ActiveRecord::Base
  
  has_many :courses_users
  has_many :users, :through => :courses_users, :conditions => "courses_users.status = 'confirmed'"
  acts_as_indexed :fields => [:title, :description],
    :index_file => [Rails.root.to_s, "tmp", "index"]

  named_scope :active, :conditions => {:active => true}

  validates_presence_of :title
  validates_uniqueness_of :title

  def registered?(user)
    self.users.exists? user
  end

  def free?
    fee == 0
  end

  def negotiable?
    negotiable || false
  end

end
{'fraction_non_alphanumeric': 0.12078152753108348, 'fraction_numerical': 0.0017761989342806395, 'mean_word_length': 4.169724770642202, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 15, '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': '5757564', 'n_tokens_mistral': 400, 'n_tokens_neox': 380, 'n_words': 91}