<commit_before>class Bookmark < ApplicationRecord
  has_many :bookmark_tags
  has_many :tags, through: :bookmark_tags

  enum source_type: { "Post" => 0, "Publication" => 1, "Video" => 2, "Thread" => 3, "Other" => 4}
end
<commit_msg>Add enum to Bookmark model for source_types<commit_after>class Bookmark < ApplicationRecord
  has_many :bookmark_tags
  has_many :tags, through: :bookmark_tags

  # NOTE: possible name changes (post or blog)
  enum source_type: { "Blog/Post" => 0, "Video" => 1, "Conversation Thread" => 2, "Book/Publication" => 3, "Other" => 4}
end

{'fraction_non_alphanumeric': 0.13780918727915195, 'fraction_numerical': 0.0176678445229682, 'mean_word_length': 5.163043478260869, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, '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': '6306319', 'n_tokens_mistral': 204, 'n_tokens_neox': 190, 'n_words': 58}