<commit_before>"use strict";

var Backbone = require('../backbone')
  , Scan = require('../models/scan')

module.exports = Backbone.Collection.extend({
  model: Scan,
  initialize: function (models, options) {
    if (!options.document) {
      throw "Scan collection must be passed a document in its options."
    }
    this.dokument = options.document;
  },
  url: function () { return this.dokument.url() + 'scans/'; }
});<commit_msg>Make scan collection extend OrderedCollection<commit_after>"use strict";

var OrderedCollection = require('./ordered_collection')
  , Scan = require('../models/scan')

module.exports = OrderedCollection.extend({
  model: Scan,
  initialize: function (models, options) {
    if (!options.document) {
      throw "Scan collection must be passed a document in its options."
    }
    this.dokument = options.document;

    OrderedCollection.prototype.initialize.apply(this, arguments);
  },
  url: function () { return this.dokument.url() + 'scans/'; }
});
{'fraction_non_alphanumeric': 0.14444444444444443, 'fraction_numerical': 0.0, 'mean_word_length': 3.8817733990147785, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1269113', 'n_tokens_mistral': 292, 'n_tokens_neox': 286, 'n_words': 76}