<commit_before>import {Model as MongooseModel} from "mongoose"

class Model extends MongooseModel {
  /**
   * Get field that will be used for schema of the current Model.
   *
   * @param object Types – object of Mongoose types
   *
   * @return object – an object of the fields
   *
   * @access public
   * @static
   */
  static getModelFields = () => {
    throw new TypeError(
      "This method should be implemented on a child model."
    )
  }

  /**
   * Get an ID of the current Model instance.
   *
   * @return mongoose.Schema.Types.ObjectId
   */
  get id() {
    return this._id
  }

  /**
   * This method is just an alias for mongoose.Schema#toObject,
   *   but use can customize this method safely,
   *   because it will not be used by Mongoose.
   *
   * @access protected
   */
  _toJS(...args) {
    const obj = this.toObject(...args)
    const id = this.id

    const idKey = "_id"
    delete obj[idKey]

    return {
      ...obj, id
    }
  }<commit_msg>Remove getSchemaFields method from a Model class.<commit_after>import {Model as MongooseModel} from "mongoose"

class Model extends MongooseModel {
  /**
   * Get an ID of the current Model instance.
   *
   * @return mongoose.Schema.Types.ObjectId
   */
  get id() {
    return this._id
  }

  /**
   * This method is just an alias for mongoose.Schema#toObject,
   *   but use can customize this method safely,
   *   because it will not be used by Mongoose.
   *
   * @access protected
   */
  _toJS(...args) {
    const obj = this.toObject(...args)
    const id = this.id

    const idKey = "_id"
    delete obj[idKey]

    return {
      ...obj, id
    }
  }
{'fraction_non_alphanumeric': 0.10414129110840438, 'fraction_numerical': 0.0, 'mean_word_length': 2.2664015904572565, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '5034138', 'n_tokens_mistral': 527, 'n_tokens_neox': 522, 'n_words': 179}