<commit_before>import { User } from './models/user';
import mongoose = require('mongoose');



async function init() {
  let adminUser = await User.findById('<PASSWORD>');
  if (!adminUser) {
    adminUser = new User({
      _id: new mongoose.Types.ObjectId('59ac3b3736adff29536e9ed9'),
      local: {
        username: 'admin'
      }
    });
    adminUser.local.password = <PASSWORD>('<PASSWORD>');
  }
  return await adminUser.save();
}


init();<commit_msg>fix error creating admin user<commit_after>import { User } from './models/user';
import mongoose = require('mongoose');

async function init() {
  let adminUser = await User.findById('<PASSWORD>');

  if (!adminUser) {
    adminUser = new User({
      _id: new mongoose.Types.ObjectId('59ac3b3736adff29536e9ed9'),
      local: {
        username: 'admin'
      },
      name: 'Admin'
    });
    adminUser.local.password = <PASSWORD>('<PASSWORD>');
  }
  return await adminUser.save();
}

init();
{'fraction_non_alphanumeric': 0.1588296760710554, 'fraction_numerical': 0.029258098223615466, 'mean_word_length': 3.414746543778802, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2797385', 'n_tokens_mistral': 328, 'n_tokens_neox': 317, 'n_words': 67}