<commit_before>import Ember from 'ember';
import Transform from './collection-transform';
import CollectionMatch from './collection-match';
import CollectionLoad from './collection-load';
import Error from '../util/error';

const {
  guidFor,
  get
} = Ember;

const Collection = Ember.ArrayProxy.extend(
  Transform,
  CollectionMatch,
  CollectionLoad, {

  _internal: null,

  toString() {
    let id = this.get('id');
    return `<sofa@collection:${get(this.constructor, 'modelName')}::${guidFor(this)}>`;
  }

});

Collection.reopenClass({

  modelName: null,
  queryName: null,

  _create: Collection.create,

  create() {
    throw new Error({
      error: 'internal',
      reason: 'use `database.collection` to create new collections'
    });
  }

});

export default Collection;<commit_msg>eslint<commit_after>import Ember from 'ember';
import Transform from './collection-transform';
import CollectionMatch from './collection-match';
import CollectionLoad from './collection-load';
import Error from '../util/error';

const {
  guidFor,
  get
} = Ember;

const Collection = Ember.ArrayProxy.extend(
  Transform,
  CollectionMatch,
  CollectionLoad, {

  _internal: null,

  toString() {
    return `<sofa@collection:${get(this.constructor, 'modelName')}::${guidFor(this)}>`;
  }

});

Collection.reopenClass({

  modelName: null,
  queryName: null,

  _create: Collection.create,

  create() {
    throw new Error({
      error: 'internal',
      reason: 'use `database.collection` to create new collections'
    });
  }

});

export default Collection;
{'fraction_non_alphanumeric': 0.1438618925831202, 'fraction_numerical': 0.0, 'mean_word_length': 4.048387096774194, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4634953', 'n_tokens_mistral': 485, 'n_tokens_neox': 467, 'n_words': 120}