<commit_before>class window.ActivityItemView extends Backbone.Marionette.ItemView
  template: "activities/generic_activity"
  append: (model) -> false

  @classForModel: (model) ->
    switch model.get("action")
      when "added_supporting_evidence", "added_weakening_evidence"
        AddedEvidenceView
      when "created_comment", "created_sub_comment"
        CreatedCommentView
      when "created_channel"
        CreatedChannelView
      when "added_subchannel"
        AddedSubchannelView
      when "believes", "doubts", "disbelieves"
        AddedOpinionView
      when "added_fact_to_channel"
        AddedFactToChannelGroupView
      when "added_first_factlink"
        AddedFirstFactlinkView
      else
        ActivityItemView

class CreatedChannelView extends ActivityItemView
  template: "activities/created_channel"

class AddedSubchannelView extends ActivityItemView
  template: "activities/added_subchannel"

class AddedEvidenceView extends ActivityItemView
  template: "activities/added_evidence"

class CreatedCommentView extends ActivityItemView
  template: "activities/created_comment"

class AddedOpinionView extends ActivityItemView
  template: "activities/added_opinion"

class AddedFactToChannelView extends Backbone.Marionette.ItemView
  tagName: 'span'
  className: 'separator-list-item'
  template: 'activities/added_fact_to_channel'

class AddedFactToChannelGroupView extends Backbone.Marionette.CompositeView
  template: 'activities/added_fact_to_channel_group'
  itemView: AddedFactToChannelView
  itemViewContainer: '.js-region-channels'

  initialize: ->
    @collection = new Backbone.Collection [@model]

  initialEvents: ->
    @bindTo @collection, "add remove reset", @render, @

  append: (model) ->
    if correct_action = model.get('action') == "added_fact_to_channel"
      @collection.add model
      true
    else false

class AddedFirstFactlinkView extends ActivityItemView
  template: "activities/added_first_factlink"<commit_msg>Cleaned up AddedFactToChannelGroupView.<commit_after>class window.ActivityItemView extends Backbone.Marionette.ItemView
  template: "activities/generic_activity"
  append: (model) -> false

  @classForModel: (model) ->
    switch model.get("action")
      when "added_supporting_evidence", "added_weakening_evidence"
        AddedEvidenceView
      when "created_comment", "created_sub_comment"
        CreatedCommentView
      when "created_channel"
        CreatedChannelView
      when "added_subchannel"
        AddedSubchannelView
      when "believes", "doubts", "disbelieves"
        AddedOpinionView
      when "added_fact_to_channel"
        AddedFactToChannelGroupView
      when "added_first_factlink"
        AddedFirstFactlinkView
      else
        ActivityItemView

class CreatedChannelView extends ActivityItemView
  template: "activities/created_channel"

class AddedSubchannelView extends ActivityItemView
  template: "activities/added_subchannel"

class AddedEvidenceView extends ActivityItemView
  template: "activities/added_evidence"

class CreatedCommentView extends ActivityItemView
  template: "activities/created_comment"

class AddedOpinionView extends ActivityItemView
  template: "activities/added_opinion"

class AddedFactToChannelView extends ActivityItemView
  tagName: 'span'
  className: 'separator-list-item'
  template: 'activities/added_fact_to_channel'

class AddedFactToChannelGroupView extends UserActivitiesGroupView
  template: 'activities/added_fact_to_channel_group'
  className: ''
  itemView: AddedFactToChannelView
  itemViewContainer: '.js-region-channels'

  actions: -> ["added_fact_to_channel"]

  initialEvents: ->
    @bindTo @collection, "add remove reset", @render, @

class AddedFirstFactlinkView extends ActivityItemView
  template: "activities/added_first_factlink"
{'fraction_non_alphanumeric': 0.06919231781110234, 'fraction_numerical': 0.0, 'mean_word_length': 4.822358346094946, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 12, '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': '7485679', 'n_tokens_mistral': 1107, 'n_tokens_neox': 1047, 'n_words': 226}