<commit_before># For sharing functionality between FacebookContent and TwitterContent
require 'active_support/concern'

module ContentBase
  extend ActiveSupport::Concern

  included do
    belongs_to :link
    belongs_to :user

    has_many :posts, as: :content

    validates :body, presence: true

    attr_accessible :body
  end
end
<commit_msg>Make link_id mass-assignable on contents<commit_after># For sharing functionality between FacebookContent and TwitterContent
require 'active_support/concern'

module ContentBase
  extend ActiveSupport::Concern

  included do
    belongs_to :link
    belongs_to :user

    has_many :posts, as: :content

    validates :body, presence: true

    attr_accessible :body, :link_id
  end
end

{'fraction_non_alphanumeric': 0.055782312925170066, 'fraction_numerical': 0.0, 'mean_word_length': 4.451851851851852, 'pattern_counts': {'":': 0, '<': 3, '<?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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7118613', 'n_tokens_mistral': 215, 'n_tokens_neox': 206, 'n_words': 69}