<commit_before>class DiscussionNote < Note
  NOTEABLE_TYPES = %w(MergeRequest).freeze

  validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }

  def discussion_class(*)
    SimpleDiscussion
  end
end<commit_msg>Enable discussions on issues, commits and snippets<commit_after>class DiscussionNote < Note
  NOTEABLE_TYPES = %w(MergeRequest Issue Commit Snippet).freeze

  validates :noteable_type, inclusion: { in: NOTEABLE_TYPES }

  def discussion_class(*)
    SimpleDiscussion
  end
end
{'fraction_non_alphanumeric': 0.07489878542510121, 'fraction_numerical': 0.0, 'mean_word_length': 5.5131578947368425, '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': '6692385', 'n_tokens_mistral': 157, 'n_tokens_neox': 150, 'n_words': 38}