<commit_before>class Events::DiscussionEdited < Event
  def self.publish!(discussion, editor)
    version = discussion.versions.last
    create(kind: "discussion_edited",
           eventable: discussion,
           user: editor,
           parent: discussion.created_event,
           custom_fields: {version_id: version.id, changed_keys: version.object_changes.keys},
           discussion: discussion,<commit_msg>dont add discussion edited records to the activity fede<commit_after>class Events::DiscussionEdited < Event
  def self.publish!(discussion, editor)
    version = discussion.versions.last
    create(kind: "discussion_edited",
           eventable: discussion,
           user: editor,
           custom_fields: {version_id: version.id, changed_keys: version.object_changes.keys},
{'fraction_non_alphanumeric': 0.08942065491183879, 'fraction_numerical': 0.0, 'mean_word_length': 3.5689655172413794, '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': '6597997', 'n_tokens_mistral': 209, 'n_tokens_neox': 200, 'n_words': 49}