<commit_before>'use strict';

/**
 * Point of entry for the player. They aren't actually a player yet
 * @param Socket telnet socket
 */

const util   = require('util');
const crypto = require('crypto');

const src       = '../src/';
const EventUtil   = require('./event_util').EventUtil;
const Data        = require(src + 'data').Data;
const CommandUtil = require(src + 'command_util').CommandUtil;
const Player      = require(src + 'player').Player;
const Account     = require(src + 'accounts').Account;
const Type        = require(src + 'type').Type;
const Commands    = require(src + 'commands').Commands;

const passwordAttempts = {};

exports.event = (players, items, rooms, npcs, accounts, l10n) => {

  // Local variables persisted between stages.
  let account = null;
  let player  = null;

  return function login(socket, stage, dontwelcome, name) {

    util.log("Login event detected... ", stage);

    dontwelcome = EventUtil.swallowGarbage(dontwelcome);<commit_msg>Not sure how I missed that one... required Item.<commit_after>'use strict';

/**
 * Point of entry for the player. They aren't actually a player yet
 * @param Socket telnet socket
 */

const util   = require('util');
const crypto = require('crypto');

const src       = '../src/';
const EventUtil   = require('./event_util').EventUtil;
const Data        = require(src + 'data').Data;
const CommandUtil = require(src + 'command_util').CommandUtil;
const Player      = require(src + 'player').Player;
const Account     = require(src + 'accounts').Account;
const Type        = require(src + 'type').Type;
const Commands    = require(src + 'commands').Commands;
const Item        = require(src + 'items').Item;

const passwordAttempts = {};

exports.event = (players, items, rooms, npcs, accounts, l10n) => {

  // Local variables persisted between stages.
  let account = null;
  let player  = null;

  return function login(socket, stage, dontwelcome, name) {

    util.log("Login event detected... ", stage);

    dontwelcome = EventUtil.swallowGarbage(dontwelcome);
{'fraction_non_alphanumeric': 0.13978494623655913, 'fraction_numerical': 0.0019550342130987292, 'mean_word_length': 3.662870159453303, 'pattern_counts': {'":': 0, '<': 3, '<?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': '7342030', 'n_tokens_mistral': 600, 'n_tokens_neox': 587, 'n_words': 183}