<commit_before>class ActivityListItemView extends KDListItemView

  getActivityChildConstructors = ->
    # CStatusActivity     : StatusActivityItemView
    JStatusUpdate       : StatusActivityItemView
    # CCodeSnipActivity   : CodesnipActivityItemView
    JCodeSnip           : CodesnipActivityItemView
    JQuestionActivity   : QuestionActivityItemView
    JDiscussionActivity : DiscussionActivityItemView
    JLinkActivity       : LinkActivityItemView

  getActivityChildCssClass = ->

    CFollowerBucket           : "system-message"
    CFolloweeBucket           : "system-message"
    CNewMemberBucket          : "system-message"
    CFollowerBucketActivity   : "system-message"
    CFolloweeBucketActivity   : "system-message"
    CNewMemberBucketActivity  : "system-message"

  getBucketMap =->
    JAccount  : AccountFollowBucketItemView
    JTag      : TagFollowBucketItemView

  constructor:(options = {},data)->

    options.type = "activity"

    super options, data

    data = @getData()

    {constructorName} = data.bongo_
    @setClass getActivityChildCssClass()[constructorName]

    unless options.isHidden
      if 'function' is typeof data.fetchTeaser
        data.fetchTeaser? (err, teaser)=>
          @addChildView teaser
      else
        @addChildView data

    data.on 'ContentMarkedAsLowQuality', =>
      @hide() unless KD.checkFlag 'exempt'
    data.on 'ContentUnmarkedAsLowQuality', => @show()

  addChildView:(data, callback)->

    {constructorName} = data.bongo_

    childConstructor =<commit_msg>Use AppFollowBucketItemView for JApp<commit_after>class ActivityListItemView extends KDListItemView

  getActivityChildConstructors = ->
    # CStatusActivity     : StatusActivityItemView
    JStatusUpdate       : StatusActivityItemView
    # CCodeSnipActivity   : CodesnipActivityItemView
    JCodeSnip           : CodesnipActivityItemView
    JQuestionActivity   : QuestionActivityItemView
    JDiscussionActivity : DiscussionActivityItemView
    JLinkActivity       : LinkActivityItemView

  getActivityChildCssClass = ->

    CFollowerBucket           : "system-message"
    CFolloweeBucket           : "system-message"
    CNewMemberBucket          : "system-message"
    CFollowerBucketActivity   : "system-message"
    CFolloweeBucketActivity   : "system-message"
    CNewMemberBucketActivity  : "system-message"

  getBucketMap =->
    JAccount  : AccountFollowBucketItemView
    JTag      : TagFollowBucketItemView
    JApp      : AppFollowBucketItemView

  constructor:(options = {},data)->

    options.type = "activity"

    super options, data

    data = @getData()

    {constructorName} = data.bongo_
    @setClass getActivityChildCssClass()[constructorName]

    unless options.isHidden
      if 'function' is typeof data.fetchTeaser
        data.fetchTeaser? (err, teaser)=>
          @addChildView teaser
      else
        @addChildView data

    data.on 'ContentMarkedAsLowQuality', =>
      @hide() unless KD.checkFlag 'exempt'
    data.on 'ContentUnmarkedAsLowQuality', => @show()

  addChildView:(data, callback)->

    {constructorName} = data.bongo_

    childConstructor =
{'fraction_non_alphanumeric': 0.07623604465709728, 'fraction_numerical': 0.0, 'mean_word_length': 3.192513368983957, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 19, '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': '3320659', 'n_tokens_mistral': 900, 'n_tokens_neox': 851, 'n_words': 163}