<commit_before>class window.FactRelation extends Backbone.Model
  setOpinion: (type) ->
    $.ajax
      url: @url() + "/opinion/" + type
      success: (data) =>
        mp_track "Evidence: opinionate",
          type: type
          evidence_id: @id

        @set data

      type: "post"

  believe: -> @setOpinion "believes"
  disbelieve: -> @setOpinion "disbelieves"

  url: ->
    evidence_type = "weakening_evidence"
    evidence_type = "supporting_evidence" if @get("fact_relation_type") is "supporting"
    url = @collection.fact.url() + "/" + evidence_type
    url += "/" + @id if @id?
    url

  creator: -> new User(@get('created_by'))<commit_msg>removed erroneous url function<commit_after>class window.FactRelation extends Backbone.Model
  setOpinion: (type) ->
    $.ajax
      url: @url() + "/opinion/" + type
      success: (data) =>
        mp_track "Evidence: opinionate",
          type: type
          evidence_id: @id

        @set data

      type: "post"

  believe: -> @setOpinion "believes"
  disbelieve: -> @setOpinion "disbelieves"

  creator: -> new User(@get('created_by'))
{'fraction_non_alphanumeric': 0.1414324569356301, 'fraction_numerical': 0.0, 'mean_word_length': 2.7423728813559323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '6951144', 'n_tokens_mistral': 378, 'n_tokens_neox': 349, 'n_words': 85}