<commit_before>class Fleet < ActiveRecord::Base
  has_many :participations

  def participating?(eve_charid)
    participations.find_by(eve_charid: eve_charid).present?
  end

  def expired?
    #expired if the fleet was created more than 20mins ago
    created_at + (60 * 20) < Time.now
  end
end<commit_msg>improved expired?<commit_after>class Fleet < ActiveRecord::Base
  has_many :participations

  def participating?(eve_charid)
    participations.find_by(eve_charid: eve_charid).present?
  end

  def expired?
    created_at > 20.minutes.ago
  end
end
{'fraction_non_alphanumeric': 0.0807899461400359, 'fraction_numerical': 0.01436265709156194, 'mean_word_length': 4.524752475247524, 'pattern_counts': {'":': 0, '<': 6, '<?xml version=': 0, '>': 4, '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': '7616396', 'n_tokens_mistral': 200, 'n_tokens_neox': 181, 'n_words': 44}