<commit_before>class ActivityLikeCount extends CustomLinkView

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

    options.cssClass = KD.utils.curry "like-count", options.cssClass

    super options, data

    data
      .on 'LikeAdded', @bound 'update'
      .on 'LikeRemoved', @bound 'update'


  click: (event) ->

    KD.utils.stopDOMEvent event

    data = @getData()
    {isInteracted, actorsPreview} = data.interactions.like

    return  unless isInteracted

    @fetchAccounts (err, accounts) =>

      return KD.showError err  if err

      new ShowMoreDataModalView title: "", accounts


  mouseEnter: ->

    {actorsCount, actorsPreview} = @getData().interactions.like

    return @unsetClass "liked"  if actorsCount is 0

    @getTooltip().update title: "Loading..."

    @fetchAccounts (err, accounts) =>

      return KD.showError err  if err

      return  unless accounts

      names = []

      strong = (x) -> "<strong>#{x}</strong>"

      for account in accounts
        name = KD.utils.getFullnameFromAccount account
        names.push "#{strong name}"

      @updateTooltip names
<commit_msg>activity: remove some empty lines<commit_after>class ActivityLikeCount extends CustomLinkView

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

    options.cssClass = KD.utils.curry "like-count", options.cssClass

    super options, data

    data
      .on 'LikeAdded', @bound 'update'
      .on 'LikeRemoved', @bound 'update'


  click: (event) ->

    KD.utils.stopDOMEvent event

    data = @getData()
    {isInteracted, actorsPreview} = data.interactions.like

    return  unless isInteracted

    @fetchAccounts (err, accounts) =>

      return KD.showError err  if err
      new ShowMoreDataModalView title: "", accounts


  mouseEnter: ->

    {actorsCount, actorsPreview} = @getData().interactions.like

    return @unsetClass "liked"  if actorsCount is 0

    @getTooltip().update title: "Loading..."

    @fetchAccounts (err, accounts) =>

      return KD.showError err  if err
      return  unless accounts

      names  = []
      strong = (x) -> "<strong>#{x}</strong>"

      for account in accounts
        name = KD.utils.getFullnameFromAccount account
        names.push "#{strong name}"

      @updateTooltip names

{'fraction_non_alphanumeric': 0.11155913978494623, 'fraction_numerical': 0.0008960573476702509, 'mean_word_length': 2.8170940170940173, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5517248', 'n_tokens_mistral': 690, 'n_tokens_neox': 632, 'n_words': 180}