<commit_before>class window.TopChannelItemView extends Backbone.Marionette.Layout
  template: 'channels/topchannel'
  className: 'top-channels-channel'

  regions:
    add_to_channel_button_region: '.js-add-to-channel-button-region'

  templateHelpers: =>
    position: @options.position

  onRender: ->
    suggested_topics        = new SuggestedTopics([@model.topic()])

    add_back_button = new AddChannelToChannelsButtonView
                                model: @model
                                suggested_topics: suggested_topics

    @add_to_channel_button_region.show add_back_button<commit_msg>Don't show the add back button on your own topchannels<commit_after>class window.TopChannelItemView extends Backbone.Marionette.Layout
  template: 'channels/topchannel'
  className: 'top-channels-channel'

  regions:
    add_to_channel_button_region: '.js-add-to-channel-button-region'

  templateHelpers: =>
    position: @options.position

  onRender: ->
    @renderAddBackButton() unless @model.user().is_current_user()

  renderAddBackButton: ->
    suggested_topics = new SuggestedTopics([@model.topic()])
    add_back_button  = new AddChannelToChannelsButtonView
                                model: @model
                                suggested_topics: suggested_topics

    @add_to_channel_button_region.show add_back_button
{'fraction_non_alphanumeric': 0.08314773570898293, 'fraction_numerical': 0.0, 'mean_word_length': 3.186335403726708, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 8, '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': '2359767', 'n_tokens_mistral': 393, 'n_tokens_neox': 383, 'n_words': 66}