<commit_before>'use strict';
const mongoose=require('mongoose');
const ObjectId=mongoose.Schema.Types.ObjectId;
const findIndex = require('lodash/findindex');
const TopicSchema = require('./topic');
const UnitSchema = module.exports = new mongoose.Schema({
  position: Number,
  title: {
    type: String,
    required: true,
    unique: true
  },
  subtitle: String,
  description: {
    type: String,
    required: true
  },
  requires: [{
    type: ObjectId,
    ref: 'unit'
  }],
  topics: [TopicSchema],
  test: {<commit_msg>Fix typo in unit model<commit_after>'use strict';
const mongoose=require('mongoose');
const ObjectId=mongoose.Schema.Types.ObjectId;
const findIndex = require('lodash/findIndex');
const TopicSchema = require('./topic');
const UnitSchema = module.exports = new mongoose.Schema({
  position: Number,
  title: {
    type: String,
    required: true,
    unique: true
  },
  subtitle: String,
  description: {
    type: String,
    required: true
  },
  requires: [{
    type: ObjectId,
    ref: 'unit'
  }],
  topics: [TopicSchema],
  test: {
{'fraction_non_alphanumeric': 0.1403180542563143, 'fraction_numerical': 0.0, 'mean_word_length': 3.8858447488584473, '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': '6111344', 'n_tokens_mistral': 342, 'n_tokens_neox': 349, 'n_words': 86}