<commit_before>class window.SubCommentsListView extends Backbone.Marionette.CompositeView
  className: 'evidence-sub-comments-list'

  itemView: SubCommentView
  itemViewContainer: '.js-region-sub-comments-collection'

  template: 'sub_comments/sub_comments_list'

  addView: SubCommentsAddView

  initialize: ->
    @collection.fetch update: true # only fires 'add' and 'remove' events

  onShow: ->
    if Factlink.Global.signed_in
      @_subCommentsAddView ?= new @addView(addToCollection: @collection)
      @$('.js-region-sub-comments-form').html @_subCommentsAddView.render().el

  onClose: ->
    @_subCommentsAddView?.close()

class window.NDPSubCommentsListView extends SubCommentsListView
  itemView: NDPSubCommentView
  addView: NDPSubCommentsAddView<commit_msg>Bare styling<commit_after>class window.SubCommentsListView extends Backbone.Marionette.CompositeView
  className: 'evidence-sub-comments-list'

  itemView: SubCommentView
  itemViewContainer: '.js-region-sub-comments-collection'

  template: 'sub_comments/sub_comments_list'

  addView: SubCommentsAddView

  initialize: ->
    @collection.fetch update: true # only fires 'add' and 'remove' events

  onShow: ->
    if Factlink.Global.signed_in
      @_subCommentsAddView ?= new @addView(addToCollection: @collection)
      @$('.js-region-sub-comments-form').html @_subCommentsAddView.render().el

  onClose: ->
    @_subCommentsAddView?.close()

class window.NDPSubCommentsListView extends SubCommentsListView
  itemView: NDPSubCommentView
  addView: NDPSubCommentsAddView

  className: ''

  template:
    text: """
      <div class="js-region-sub-comments-collection"></div>
      <div class="js-region-sub-comments-form"></div>
    """
{'fraction_non_alphanumeric': 0.11150029188558085, 'fraction_numerical': 0.0, 'mean_word_length': 4.713333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 13, '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': '3872406', 'n_tokens_mistral': 555, 'n_tokens_neox': 513, 'n_words': 93}