<commit_before>class MessagePane extends KDTabPaneView

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

    options.type    or= ''
    options.cssClass  = "message-pane #{options.type}"

    super options, data

    channel           = @getData()
    {itemClass, type} = @getOptions()

    @listController = new ActivityListController
      itemClass     : itemClass
      lastToFirst   : yes  if type is 'message'

    @listView = @listController.getView()
    @input    = new ActivityInputWidget {channel}

    @input.on "Submit", (activity) =>

      @listController.addItem activity


  viewAppended: ->

    @addSubView @input
    @addSubView @listView
    @populate()


  populate: ->

    @fetch (err, items) =>

      return KD.showError err  if err

      console.time('populate')
      @listController.hideLazyLoader()
      @listController.listActivities items
      console.timeEnd('populate')


  fetch: (callback)->

    {appManager}            = KD.singletons
    {name, type, channelId} = @getOptions()
    data                    = @getData()<commit_msg>Activity: removed inputwidget on single post tabs<commit_after>class MessagePane extends KDTabPaneView

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

    options.type    or= ''
    options.cssClass  = "message-pane #{options.type}"

    super options, data

    channel           = @getData()
    {itemClass, type} = @getOptions()

    @listController = new ActivityListController
      itemClass     : itemClass
      lastToFirst   : yes  if type is 'message'

    @listView = @listController.getView()

    unless type in ['post', 'message']
      @input = new ActivityInputWidget {channel}
      @input.on 'Submit', @listController.bound 'addItem'


  viewAppended: ->

    @addSubView @input  if @input
    @addSubView @listView
    @populate()


  populate: ->

    @fetch (err, items) =>

      return KD.showError err  if err

      console.time('populate')
      @listController.hideLazyLoader()
      @listController.listActivities items
      console.timeEnd('populate')


  fetch: (callback)->

    {appManager}            = KD.singletons
    {name, type, channelId} = @getOptions()
    data                    = @getData()
{'fraction_non_alphanumeric': 0.11364673664993154, 'fraction_numerical': 0.0, 'mean_word_length': 2.5758564437194127, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '920219', 'n_tokens_mistral': 669, 'n_tokens_neox': 624, 'n_words': 155}