<commit_before># avatar popup box Status Update Form
class AvatarPopupShareStatus extends AvatarPopup

  viewAppended:->
    super()

    @loader = new KDLoaderView
      cssClass      : "avatar-popup-status-loader"
      size          :
        width       : 30
      loaderOptions :
        color       : "#ff9200"
        shape       : "spiral"
        diameter    : 30
        density     : 30
        range       : 0.4
        speed       : 1
        FPS         : 24

    @avatarPopupContent.addSubView @loader

    name = KD.utils.getFullnameFromAccount KD.whoami(), yes
    @avatarPopupContent.addSubView @statusField = new KDHitEnterInputView
      type          : "textarea"
      validate      :
        rules       :
          required  : yes
      placeholder   : "What's new, #{name}?"
      callback      : (status)=> @updateStatus status

  updateStatus:(status)->

    @loader.show()
    KD.remote.api.JStatusUpdate.create body : status, (err,reply)=>
      unless err
        KD.getSingleton("appManager").tell 'Activity', 'ownActivityArrived', reply
        new KDNotificationView
          type     : 'growl'
          cssClass : 'mini'
          title    : 'Message posted!'
          duration : 2000
        @statusField.setValue ""

        @loader.hide()
        # @statusField.setPlaceHolder reply.body
        @hide()

      else
        new KDNotificationView type : "mini", title : "There was an error, try again later!"
        @loader.hide()
        @hide()<commit_msg>Activity: Fixes Duplicate post bug<commit_after># avatar popup box Status Update Form
class AvatarPopupShareStatus extends AvatarPopup

  viewAppended:->
    super()

    @loader = new KDLoaderView
      cssClass      : "avatar-popup-status-loader"
      size          :
        width       : 30
      loaderOptions :
        color       : "#ff9200"
        shape       : "spiral"
        diameter    : 30
        density     : 30
        range       : 0.4
        speed       : 1
        FPS         : 24

    @avatarPopupContent.addSubView @loader

    name = KD.utils.getFullnameFromAccount KD.whoami(), yes
    @avatarPopupContent.addSubView @statusField = new KDHitEnterInputView
      type          : "textarea"
      validate      :
        rules       :
          required  : yes
      placeholder   : "What's new, #{name}?"
      callback      : (status)=> @updateStatus status

  updateStatus:(status)->

    @loader.show()
    KD.remote.api.JStatusUpdate.create body : status, (err,reply)=>
      unless err
        new KDNotificationView
          type     : 'growl'
          cssClass : 'mini'
          title    : 'Message posted!'
          duration : 2000
        @statusField.setValue ""

        @loader.hide()
        # @statusField.setPlaceHolder reply.body
        @hide()

      else
        new KDNotificationView type : "mini", title : "There was an error, try again later!"
        @loader.hide()
        @hide()
{'fraction_non_alphanumeric': 0.09298365122615804, 'fraction_numerical': 0.012942779291553134, 'mean_word_length': 1.7629350893697084, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '976989', 'n_tokens_mistral': 876, 'n_tokens_neox': 815, 'n_words': 205}