<commit_before>class window.EvidenceCollection extends Backbone.Collection

  parse: (data) ->
    results = []
    _.each data, (item) =>
      switch item.evidence_type
        when 'FactRelation'
          results.push new FactRelation(item)
        when 'Comment'
          results.push new Comment(item)
        else
          console.info "Evidence type not supported: #{item.evidence_type}"
    results

  initialize: (models, opts) ->
    @type = opts.type
    @fact = opts.fact

  url: -> "/facts/#{@fact.id}/#{@type}_evidence/combined"
<commit_msg>Moved initialize to top of file<commit_after>class window.EvidenceCollection extends Backbone.Collection

  initialize: (models, opts) ->
    @type = opts.type
    @fact = opts.fact

  parse: (data) ->
    results = []
    _.each data, (item) =>
      switch item.evidence_type
        when 'FactRelation'
          results.push new FactRelation(item)
        when 'Comment'
          results.push new Comment(item)
        else
          console.info "Evidence type not supported: #{item.evidence_type}"
    results

  url: -> "/facts/#{@fact.id}/#{@type}_evidence/combined"

{'fraction_non_alphanumeric': 0.11992945326278659, 'fraction_numerical': 0.0, 'mean_word_length': 2.6146496815286624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '5758980', 'n_tokens_mistral': 345, 'n_tokens_neox': 326, 'n_words': 83}