<commit_before>(function (factory) {
  if (typeof define === 'function' && define.amd) {
    define(
      'backbone/collection', 
      ['underscore', 'jquery', 'backbone/events', 'backbone/extend', 'backbone/sync', 'backbone/model'],
      factory
    );
  } else {
    factory(_, $, Backbone.Events, Backbone.extend, Backbone.sync, Backbone.Model, Backbone);
  }
}(function (_, $, Events, extend, sync, Model, global) {
  
  // Backbone.Collection
  // -------------------

  // Create local references to array methods we'll want to use later.
  var array = [];
  var push = array.push;
  var slice = array.slice;
  var splice = array.splice;
  
  // If models tend to represent a single row of data, a Backbone Collection is
  // more analagous to a table full of data ... or a small slice or page of that
  // table, or a collection of rows that belong together for a particular reason
  // -- all of the messages in this particular folder, all of the documents
  // belonging to this particular author, and so on. Collections maintain
  // indexes of their models, both in order, and for lookup by `id`.

  // Create a new **Collection**, perhaps to contain a specific type of `model`.
  // If a `comparator` is specified, the Collection will maintain
  // its models in sort order, as they're added and removed.
  var Collection = function(models, options) {
    options || (options = {});
    if (options.model) this.model = options.model;
    if (options.comparator !== void 0) this.comparator = options.comparator;
    this._reset();
    this.initialize.apply(this, arguments);
    if (models) this.reset(models, _.extend({silent: true}, options));
  };
  
  // Default options for `Collection#set`.
  var setOptions = {add: true, remove: true, merge: true};
  var addOptions = {add: true, remove: false};

  // Define the Collection's inheritable methods.
  var pp = _.extend(Collection.prototype, Events, {

    // The default model for a collection is just a **Backbone.Model**.
    // This should be overridden in most cases.
    model: Model,<commit_msg>Collection code cleanup<commit_after>(function (factory) {
  if (typeof define === 'function' && define.amd) {
    define(
      'backbone/collection', 
      ['underscore', 'jquery', 'backbone/events', 'backbone/extend', 'backbone/sync', 'backbone/model'],
      factory
    );
  } else {
    factory(_, $, Backbone.Events, Backbone.extend, Backbone.sync, Backbone.Model, Backbone);
  }
}(function (_, $, Events, extend, sync, Model, global) {
  
  // Backbone.Collection
  // -------------------

  // Create local references to array methods we'll want to use later.
  var array = [];
  var push = array.push;
  var slice = array.slice;
  var splice = array.splice;
  
  // If models tend to represent a single row of data, a Backbone Collection is
  // more analagous to a table full of data ... or a small slice or page of that
  // table, or a collection of rows that belong together for a particular reason
  // -- all of the messages in this particular folder, all of the documents
  // belonging to this particular author, and so on. Collections maintain
  // indexes of their models, both in order, and for lookup by `id`.

  // Create a new **Collection**, perhaps to contain a specific type of `model`.
  // If a `comparator` is specified, the Collection will maintain
  // its models in sort order, as they're added and removed.
  var Collection = function(models, options) {
    options || (options = {});
    if (options.model) this.model = options.model;
    if (options.comparator !== void 0) this.comparator = options.comparator;
    this._reset();
    this.initialize.apply(this, arguments);
    if (models) this.reset(models, _.extend({silent: true}, options));
  };
  
  // Default options for `Collection#set`.
  var setOptions = {add: true, remove: true, merge: true};
  var addOptions = {add: true, remove: false};

  // Define the Collection's inheritable methods.
  _.extend(Collection.prototype, Events, {

    // The default model for a collection is just a **Backbone.Model**.
    // This should be overridden in most cases.
    model: Model,
{'fraction_non_alphanumeric': 0.1291958464139097, 'fraction_numerical': 0.0004829751267809708, 'mean_word_length': 3.109126984126984, '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': '575800', 'n_tokens_mistral': 1166, 'n_tokens_neox': 1147, 'n_words': 461}