<commit_before>"use strict";

const _ = require( 'underscore' );
const Backbone = require( 'backbone' );
Backbone.LocalStorage = require( "backbone.localstorage" );
//require( 'backbone-event-logger' );

const VariableRowModel = require( '../models/dirPickerVariableRow' );

//noinspection JSUnusedGlobalSymbols
/**
 * @class
 * @extends {Backbone.Collection}
 */
const CollectionsDirPickerVariableList = Backbone.Collection.extend( {
  initialize: function () {
    //this.debugEvents('CollectionsVariableList');
  },
  model     : VariableRowModel,
  comparator: 'sort'
} );
_.extend( CollectionsDirPickerVariableList.prototype, require( './mixin' ) );

module.exports = CollectionsDirPickerVariableList;<commit_msg>Refactor to ES6<commit_after>"use strict";

import DirPickerCollectionBase from './dirPickerCollectionBase';
import VariableRowModel from '../models/dirPickerVariableRow'

export default class DirPickerVariableList extends DirPickerCollectionBase {

  /**
   * @param {object} [attr]
   * @param {object} [options]
   */
  constructor ( attr, options ) {
    super( attr, options );

    /**
     *
     * @type {VariableRowModel}
     */
    this.model = VariableRowModel;

    //noinspection JSUnusedGlobalSymbols
    /**
     *
     * @type {string}
     */
    this.comparator = 'sort'

  }

  //noinspection JSUnusedGlobalSymbols,JSUnusedLocalSymbols,JSUnusedLocalSymbols
  /**
   *
   * @param {object} [attr]
   * @param {object} [options]
   */
  initialize ( attr, options ) {
    this.debugEvents( 'CollectionsVariableList' );
  }

}
{'fraction_non_alphanumeric': 0.13324791800128122, 'fraction_numerical': 0.0006406149903907751, 'mean_word_length': 3.9274447949526814, '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': '5320439', 'n_tokens_mistral': 474, 'n_tokens_neox': 464, 'n_words': 91}