<commit_before>class Post
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Slug
  
  attr_protected :_id, :slug
  
  references_many :comments
  
  field :title
  slug :title
  field :body
  field :published_at, :type => Time
  field :post_type, :type => Array
  field :tags, :type => Array
  field :private, :type => Boolean, :default => false
  field :draft, :type => Boolean, :default => true<commit_msg>Slugs shouldn't change on update<commit_after>class Post
  include Mongoid::Document
  include Mongoid::Timestamps
  include Mongoid::Slug
  
  attr_protected :_id, :slug
  
  references_many :comments
  
  field :title
  slug :title, :permanent => true
  field :body
  field :published_at, :type => Time
  field :post_type, :type => Array
  field :tags, :type => Array
  field :private, :type => Boolean, :default => false
  field :draft, :type => Boolean, :default => true
{'fraction_non_alphanumeric': 0.11331133113311331, 'fraction_numerical': 0.0, 'mean_word_length': 4.170454545454546, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '3886900', 'n_tokens_mistral': 291, 'n_tokens_neox': 293, 'n_words': 91}