<commit_before>class FollowBucketItemView extends KDView

  cssClassMap = ->
    JTag      : "topic"
    JAccount  : "account"

  constructor:(options,data)->
    options = $.extend options,
      cssClass : "follow bucket #{cssClassMap()[data.sourceName]}"
    super options,data

    @anchor = new ProfileLinkView {
      origin: data.anchor
    }

    @group = new LinkGroup {
      group         : data.group
      itemsToShow   : 3
      subItemClass  : options.subItemLinkClass
    }

    #@getData().on 'ItemWasAdded', -> log 'heres the event, sinan', arguments

  pistachio:->
    """
    <span class='icon'></span>
    {{> @anchor}}
    <span class='action'>followed</span>
    {{> @group}}
    """

  render:->

  addCommentBox:->

  viewAppended:->
    @setTemplate @pistachio()
    @template.update()


class NewMemberBucketItemView extends KDView

  constructor:(options,data)->
    options = $.extend options,
      cssClass : "new-member"
    super options,data

    @anchor = new ProfileLinkView origin: data.anchor

  render:->

  addCommentBox:->

  viewAppended:->
    @setTemplate @pistachio()
    @template.update()

  pistachio:->
    """
    <span class='icon'></span>
    {{> @anchor}}
    <span class='action'>became a member.</span>
    """


class AccountFollowBucketItemView extends FollowBucketItemView

  constructor:(options, data)->
    options.subItemLinkClass or= ProfileLinkView
    options.subItemCssClass or= 'profile'
    super

class TagFollowBucketItemView extends FollowBucketItemView

  constructor:(options, data)->
    options.subItemLinkClass or= TagLinkView
    options.subItemCssClass or= 'topic'
    super<commit_msg>Add Application Follow Bucket Item<commit_after>class FollowBucketItemView extends KDView

  cssClassMap = ->
    JTag      : "topic"
    JAccount  : "account"

  constructor:(options,data)->
    options = $.extend options,
      cssClass : "follow bucket #{cssClassMap()[data.sourceName]}"
    super options,data

    @anchor = new ProfileLinkView {
      origin: data.anchor
    }

    @group = new LinkGroup {
      group         : data.group
      itemsToShow   : 3
      subItemClass  : options.subItemLinkClass
    }

    #@getData().on 'ItemWasAdded', -> log 'heres the event, sinan', arguments

  pistachio:->
    """
    <span class='icon'></span>
    {{> @anchor}}
    <span class='action'>followed</span>
    {{> @group}}
    """

  render:->

  addCommentBox:->

  viewAppended:->
    @setTemplate @pistachio()
    @template.update()


class NewMemberBucketItemView extends KDView

  constructor:(options,data)->
    options = $.extend options,
      cssClass : "new-member"
    super options,data

    @anchor = new ProfileLinkView origin: data.anchor

  render:->

  addCommentBox:->

  viewAppended:->
    @setTemplate @pistachio()
    @template.update()

  pistachio:->
    """
    <span class='icon'></span>
    {{> @anchor}}
    <span class='action'>became a member.</span>
    """

class AccountFollowBucketItemView extends FollowBucketItemView

  constructor:(options, data)->
    options.subItemLinkClass or= ProfileLinkView
    options.subItemCssClass or= 'profile'
    super

class TagFollowBucketItemView extends FollowBucketItemView

  constructor:(options, data)->
    options.subItemLinkClass or= TagLinkView
    options.subItemCssClass or= 'topic'
    super

class AppFollowBucketItemView extends FollowBucketItemView

  constructor:(options, data)->
    options.subItemLinkClass or= AppLinkView
    options.subItemCssClass or= 'profile'
    super
{'fraction_non_alphanumeric': 0.12146892655367232, 'fraction_numerical': 0.0005649717514124294, 'mean_word_length': 3.205463182897862, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 54, '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': '5111772', 'n_tokens_mistral': 1104, 'n_tokens_neox': 1054, 'n_words': 238}