<commit_before>#= require ../facts/fact_base_view

class window.FactRelationView extends Backbone.Marionette.Layout
  className: 'fact-relation-body'
  template:  'fact_relations/fact_relation'

  regions:
    factBaseView: '.fact-base-region'

  templateHelpers: =>
    creator: @model.creator().toJSON()

  onRender: ->
    @factBaseView.show @_factBaseView()

  _factBaseView: ->
    fact = @model.getFact()

    fbv = new FactBaseView
      model: fact
      clickable_body: Factlink.Global.signed_in

    @listenTo fact.getFactWheel(), 'sync', ->
      @model.fetch()

    if Factlink.Global.signed_in
      @listenTo fbv, 'click:body', (e) ->
        @defaultClickHandler e, @model.getFact().get("url")

    fbv

class window.FactRelationEvidenceView extends EvidenceBaseView
  mainView: FactRelationView
  voteView: VoteUpDownView
  delete_message: 'Remove this Factlink as evidence'<commit_msg>Removed FactRelationEvidenceView<commit_after>#= require ../facts/fact_base_view

class window.FactRelationView extends Backbone.Marionette.Layout
  className: 'fact-relation-body'
  template:  'fact_relations/fact_relation'

  regions:
    factBaseView: '.fact-base-region'

  templateHelpers: =>
    creator: @model.creator().toJSON()

  onRender: ->
    @factBaseView.show @_factBaseView()

  _factBaseView: ->
    fact = @model.getFact()

    fbv = new FactBaseView
      model: fact
      clickable_body: Factlink.Global.signed_in

    @listenTo fact.getFactWheel(), 'sync', ->
      @model.fetch()

    if Factlink.Global.signed_in
      @listenTo fbv, 'click:body', (e) ->
        @defaultClickHandler e, @model.getFact().get("url")

    fbv
{'fraction_non_alphanumeric': 0.12121212121212122, 'fraction_numerical': 0.0, 'mean_word_length': 3.6638418079096047, 'pattern_counts': {'":': 0, '<': 3, '<?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': '6815699', 'n_tokens_mistral': 570, 'n_tokens_neox': 532, 'n_words': 102}