<commit_before>'use strict';

const mongoose = require('mongoose'),
  Schema = mongoose.Schema;

const encryptor = require('../../bin/encryptor');

const MIN_NAME_LENGTH = 5;
const MAX_NAME_LENGTH = 30;

const userSchema = new Schema({
  username: {
    type: String,
    unique: true,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  firstName: {
    type: String,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  lastName: {
    type: String,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  country: {
    type: String,
    enum: [
      'Bulgaria',
      'Germany',
      'UK',
      'USA'
    ],
    default: 'Unknown'
  },
  image: {
    type: String,
    default: 'http://philosophy.ucr.edu/wp-content/uploads/2014/10/no-profile-img.gif'
  },
  description: {
    type: String,
    default: 'No description.'
  },
  specialization: {
    type: String,
    enum: [
      'Software Engineer',
      'Web Designer',
      'Article Writer',
      'Digital Marketeer',
      'Accountant',
      'Designer',
      'None'
    ],
    default: 'None'
  },
  skills: [{
    name: {
      type: String,
      required: true,
      unique: true
    },
    ednorsements: {
      type: Number,
      default: 0<commit_msg>more changes<commit_after>'use strict';

const mongoose = require('mongoose'),
  Schema = mongoose.Schema;

const encryptor = require('../../bin/encryptor');

const MIN_NAME_LENGTH = 5;
const MAX_NAME_LENGTH = 30;

const userSchema = new Schema({
  username: {
    type: String,
    unique: true,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  firstName: {
    type: String,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  lastName: {
    type: String,
    required: true,
    min: MIN_NAME_LENGTH,
    max: MAX_NAME_LENGTH
  },
  country: {
    type: String,
    enum: [
      'Bulgaria',
      'Germany',
      'UK',
      'USA'
    ],
    default: 'Unknown'
  },
  image: {
    type: String,
    default: 'http://philosophy.ucr.edu/wp-content/uploads/2014/10/no-profile-img.gif'
  },
  description: {
    type: String,
    default: 'No description.'
  },
  specialization: {
    type: String,
    enum: [
      'Software Engineer',
      'Web Designer',
      'Article Writer',
      'Digital Marketeer',
      'Accountant',
      'Designer',
      'None'
    ],
    default: 'None'
  },
  skills: [{
    name: {
      type: String,
      required: true,
      unique: true,
      min: 3,
      max: 10
    },
    ednorsements: {
      type: Number,
      default: 0
{'fraction_non_alphanumeric': 0.13601823708206687, 'fraction_numerical': 0.008738601823708206, 'mean_word_length': 2.2748756218905473, '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': '5596457', 'n_tokens_mistral': 941, 'n_tokens_neox': 909, 'n_words': 204}