<commit_before>class Video < ActiveRecord::Base
  def vimeo_id
    vimeo_url[/vimeo.com\/(\d+)/, 1]
  end
end
<commit_msg>Setting the video slug automatically<commit_after>class Video < ActiveRecord::Base
  before_save :set_slug

  def vimeo_id
    vimeo_url[/vimeo.com\/(\d+)/, 1]
  end

  private

  def set_slug
    self.slug = title.parameterize if slug.blank?
  end
end

{'fraction_non_alphanumeric': 0.112, 'fraction_numerical': 0.005333333333333333, 'mean_word_length': 3.5853658536585367, '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': '4780591', 'n_tokens_mistral': 150, 'n_tokens_neox': 143, 'n_words': 32}