<commit_before>class Event < ActiveRecord::Base
  attr_accessible :dtend, :dtstart, :description, :slug, :title

  has_many :slots, :dependent => :destroy
  has_many :rooms, :dependent => :destroy
  has_many :workshops, :dependent => :destroy
  has_many :remote_media, :dependent => :destroy

  validates :slug, :format => { :with => /^[a-z0-9]{5}[a-z0-9]*$/ }
end<commit_msg>models/events: Added length validation to title.<commit_after>class Event < ActiveRecord::Base
  attr_accessible :dtend, :dtstart, :description, :slug, :title

  has_many :slots, :dependent => :destroy
  has_many :rooms, :dependent => :destroy
  has_many :workshops, :dependent => :destroy
  has_many :remote_media, :dependent => :destroy

  validates :slug, :format => { :with => /^[a-z0-9]+$/ },
	  :length => { :minimum => 6 }
  validates :title, :length => { :minimum => 6 }
  # FIXME: validate dtend > dtstart
end
{'fraction_non_alphanumeric': 0.1644295302013423, 'fraction_numerical': 0.010067114093959731, 'mean_word_length': 4.849673202614379, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 20, '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': '5173677', 'n_tokens_mistral': 310, 'n_tokens_neox': 298, 'n_words': 78}