<commit_before>class Project < ActiveRecord::Base
  KINDS = %w( internal global none )

  has_many :commits
  has_many :permissions
  has_many :tokens, as: :tokenable

  validates :name,  uniqueness: true, presence: true
  validates :url,   uniqueness: true
  validates :token, uniqueness: true
  validates :trade_details, inclusion: { in: KINDS }, allow_nil: true

  after_create :create_token

  def deadline
    first_commit.expires_at
  end
<commit_msg>validation no longer needed [#67739206]<commit_after>class Project < ActiveRecord::Base
  KINDS = %w( internal global none )

  has_many :commits
  has_many :permissions
  has_many :tokens, as: :tokenable

  validates :name,  uniqueness: true, presence: true
  validates :url,   uniqueness: true
  validates :trade_details, inclusion: { in: KINDS }, allow_nil: true

  after_create :create_token

  def deadline
    first_commit.expires_at
  end

{'fraction_non_alphanumeric': 0.08194905869324474, 'fraction_numerical': 0.008859357696566999, 'mean_word_length': 4.54601226993865, 'pattern_counts': {'":': 0, '<': 5, '<?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': '1317680', 'n_tokens_mistral': 301, 'n_tokens_neox': 291, 'n_words': 86}