<commit_before>class TopFactEvidenceLayoutView extends Backbone.Marionette.Layout
  template:
    text: """
        {{#is_unsure}}
          <div class="evidence-unsure-right-spacer"></div>
          <div class="evidence-unsure-left-spacer"></div>
        {{/is_unsure}}
        <div class="evidence-{{opinion_type_css}}-impact">
          <div class="shadow"></div>
        </div>
        <div class="evidence-{{opinion_type_css}}-box">
          <div class="shadow"></div>
          Blah.
        </div>
      """

  templateHelpers:
    opinion_type_css: ->
      switch @opinion_type
        when 'believe' then 'supporting'
        when 'disbelieve' then 'weakening'
        when 'doubt' then 'unsure'

    is_unsure: -> @opinion_type == 'doubt'

class window.TopFactEvidenceView extends Backbone.Marionette.CollectionView
  className: 'top-fact-evidence'
  itemView: TopFactEvidenceLayoutView

  constructor: ->
    @collection = new Backbone.Collection [
      new Backbone.Model(impact: 30, opinion_type: 'believe')
      new Backbone.Model(impact: 20, opinion_type: 'doubt')
      new Backbone.Model(impact: 10, opinion_type: 'disbelieve')
    ]
    super<commit_msg>Added terminator and impact numbers<commit_after>class TopFactEvidenceLayoutView extends Backbone.Marionette.Layout
  template:
    text: """
        {{#is_unsure}}
          <div class="evidence-unsure-right-spacer"></div>
          <div class="evidence-unsure-left-spacer"></div>
        {{/is_unsure}}
        <div class="evidence-{{opinion_type_css}}-impact">
          <div class="shadow"></div>
          {{impact}}
        </div>
        <div class="evidence-{{opinion_type_css}}-box">
          <div class="shadow"></div>
          Impact: {{impact}}
        </div>
      """

  templateHelpers:
    opinion_type_css: ->
      switch @opinion_type
        when 'believe' then 'supporting'
        when 'disbelieve' then 'weakening'
        when 'doubt' then 'unsure'

    is_unsure: -> @opinion_type == 'doubt'

class window.TopFactEvidenceView extends Backbone.Marionette.CompositeView
  className: 'top-fact-evidence'
  template:
    text: """
      <div class="js-evidence-item-view-container"></div>
      <div class="evidence-terminator"></div>
    """

  itemView: TopFactEvidenceLayoutView
  itemViewContainer: '.js-evidence-item-view-container'

  constructor: ->
    @collection = new Backbone.Collection [
      new Backbone.Model(impact: 30, opinion_type: 'believe')
      new Backbone.Model(impact: 20, opinion_type: 'doubt')
      new Backbone.Model(impact: 10, opinion_type: 'disbelieve')
    ]
    super
{'fraction_non_alphanumeric': 0.1372021521906226, 'fraction_numerical': 0.004611837048424289, 'mean_word_length': 2.9260935143288083, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 37, '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': '3434720', 'n_tokens_mistral': 856, 'n_tokens_neox': 782, 'n_words': 153}