<commit_before>class ProfileView extends JView
  constructor:->

    super

    memberData = @getData()

    @avatar = new AvatarStaticView
      size     :
        width  : 90
        height : 90
      click    : =>
        pos =
          top  : @avatar.getBounds().y - 8
          left : @avatar.getBounds().x - 8
        modal = new KDModalView
          width    : 400
          fx       : yes
          overlay  : yes
          draggable: yes
          position : pos
        modal.addSubView new AvatarStaticView
          size     :
            width  : 400
            height : 400
        , memberData
    , memberData

    defaultState = if memberData.followee is yes then "Unfollow" else "Follow"

    @followButton = new MemberFollowToggleButton
      style           : "kdwhitebtn profilefollowbtn"
    , memberData

    @skillTags = @putSkillTags()

    {nickname} = memberData.profile
    @followers = new KDView
      tagName     : 'a'
      attributes  :
        href      : '#'
      pistachio   : "<cite/>{{#(counts.followers)}} <span>Followers</span>"
      click       : (event)->
        event.preventDefault()
        return if memberData.counts.followers is 0
        KD.getSingleton('router').handleRoute "/#{nickname}/Followers", {state:memberData}
    , memberData

    @following = new KDView
      tagName     : 'a'
      attributes  :
        href      : '#'
      pistachio   : "<cite/>{{#(counts.following)}} <span>Following</span>"
      click       : (event)->
        event.preventDefault()
        return if memberData.counts.following is 0
        KD.getSingleton('router').handleRoute "/#{nickname}/Following", {state:memberData}
    , memberData

    @likes = new KDView<commit_msg>hide follow / unfollow button for guests<commit_after>class ProfileView extends JView
  constructor:->

    super

    memberData = @getData()

    @avatar = new AvatarStaticView
      size     :
        width  : 90
        height : 90
      click    : =>
        pos =
          top  : @avatar.getBounds().y - 8
          left : @avatar.getBounds().x - 8
        modal = new KDModalView
          width    : 400
          fx       : yes
          overlay  : yes
          draggable: yes
          position : pos
        modal.addSubView new AvatarStaticView
          size     :
            width  : 400
            height : 400
        , memberData
    , memberData

    defaultState = if memberData.followee is yes then "Unfollow" else "Follow"

    if memberData.profile.nickname is KD.whoami().profile.nickname or KD.whoami().type is 'unregistered'
      @followButton = new KDView
    else
      @followButton MemberFollowToggleButton
        style      : "kdwhitebtn profilefollowbtn"
      , memberData

    @skillTags = @putSkillTags()

    {nickname} = memberData.profile
    @followers = new KDView
      tagName     : 'a'
      attributes  :
        href      : '#'
      pistachio   : "<cite/>{{#(counts.followers)}} <span>Followers</span>"
      click       : (event)->
        event.preventDefault()
        return if memberData.counts.followers is 0
        KD.getSingleton('router').handleRoute "/#{nickname}/Followers", {state:memberData}
    , memberData

    @following = new KDView
      tagName     : 'a'
      attributes  :
        href      : '#'
      pistachio   : "<cite/>{{#(counts.following)}} <span>Following</span>"
      click       : (event)->
        event.preventDefault()
        return if memberData.counts.following is 0
        KD.getSingleton('router').handleRoute "/#{nickname}/Following", {state:memberData}
    , memberData

    @likes = new KDView
{'fraction_non_alphanumeric': 0.10489897592028785, 'fraction_numerical': 0.00941046221976197, 'mean_word_length': 1.8705321683876093, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 23, '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': '3113023', 'n_tokens_mistral': 1097, 'n_tokens_neox': 1031, 'n_words': 243}