<commit_before>class TopicMessagePane extends MessagePane

  bindChannelEvents: ->

    super

    KD.singletons.socialapi
      .on 'MessageAdded', @bound 'addMessage'
      .on 'MessageRemoved', @bound 'removeMessage'


  addMessage: (message) ->

    {name} = @getData()
    return  unless message.body.match ///##{name}///

    super message


  removeMessage: (message) ->

    {name} = @getData()
    return  unless message.body.match ///##{name}///

    super message<commit_msg>Activity: fixed topic pane message addition order<commit_after>class TopicMessagePane extends MessagePane

  bindChannelEvents: ->

    super

    KD.singletons.socialapi
      .on 'MessageAdded',   @bound 'prependMessage'
      .on 'MessageRemoved', @bound 'removeMessage'


  prependMessage: (message) ->

    {name} = @getData()
    return  unless message.body.match ///##{name}///

    super message


  removeMessage: (message) ->

    {name} = @getData()
    return  unless message.body.match ///##{name}///

    super message
{'fraction_non_alphanumeric': 0.13457760314341846, 'fraction_numerical': 0.0, 'mean_word_length': 2.9343629343629343, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, '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': '2646790', 'n_tokens_mistral': 318, 'n_tokens_neox': 294, 'n_words': 75}