<commit_before>(function (r) {
    "use strict";

    var modules = {
        data: r('./data'),
        helper: r('./helpers'),
        fs: r('fs'),
        world: {
            valston: r('../World/valston/prison')
        },
        events: {
            move: r('./Events/move'),
            look: r('./Events/look'),
            exam: r('./Events/examine'),
            say: r('./Events/say'),
            score: r('./Events/score'),
            help: r('./Events/help'),
            inventory: r('./Events/inventory'),
            get: r('./Events/get'),
            wear: r('./Events/wear'),
            remove: r('./Events/remove'),
            drop: r('./Events/drop'),
            equipment: r('./Events/equipment'),
            communication: r('./Events/communication'),
        },
        constants: r('./constants')
    };

    var commands = {
        yes: function (string) {
            return string.toLowerCase().match(/^(y|yes|yea|yeah|sure|fine|okay|aye|yep|ok)$/)
        },
        no: function (string) {
            return string.toLowerCase().match(/^(n|no|never|nah|nay)$/)
        },
        parseInput: function (pc) {

            var socket = pc.getSocket();

            socket.on('data', function (input) {

                var str = input.toString().toLowerCase().trim();
                //command  //preposition //item
                //Look    //at/on/in     //sign
                var command = str.split(' ').slice(0, 1).join(' ');

                var item = str.split(' ').slice(1).join(' ');

                console.log("item - " + item)

                //if (item == null || item == '' || command.startsWith('say') || command.startsWith('help') || command.startsWith('gossip') ||
                //    command.startsWith('clan') || command.startsWith('ask') || command.startsWith('auction') || command.startsWith('newbie')) { //< This looks hacky // Maybe move arguments into the command itself and only handle the single-word-command out here?
                //    //at / in not used. eg: look sword
                //    command = str.split(' ').slice(0, 1).join(' ');
                //    item = str.split(' ').slice(1).join(' ');
                //}

                var preposition = str.split(' ').slice(1, 2).join(' ');

                if (preposition === 'in' || preposition === 'at') {
                    item = str.split(' ').slice(2).join(' ');
                }

                console.log('Command: \'' + command + '\'');
                console.log('Item: \'' + item + '\'');

                var commandTable = {

                    n: function () { socket.removeAllListeners('data'); socket.emit('North', modules.events.move.move(pc, 'North', null)); },
                    north: function () { commandTable.n(); },<commit_msg>look in/at command works again<commit_after>(function (r) {
    "use strict";

    var modules = {
        data: r('./data'),
        helper: r('./helpers'),
        fs: r('fs'),
        world: {
            valston: r('../World/valston/prison')
        },
        events: {
            move: r('./Events/move'),
            look: r('./Events/look'),
            exam: r('./Events/examine'),
            say: r('./Events/say'),
            score: r('./Events/score'),
            help: r('./Events/help'),
            inventory: r('./Events/inventory'),
            get: r('./Events/get'),
            wear: r('./Events/wear'),
            remove: r('./Events/remove'),
            drop: r('./Events/drop'),
            equipment: r('./Events/equipment'),
            communication: r('./Events/communication'),
        },
        constants: r('./constants')
    };

    var commands = {
        yes: function (string) {
            return string.toLowerCase().match(/^(y|yes|yea|yeah|sure|fine|okay|aye|yep|ok)$/)
        },
        no: function (string) {
            return string.toLowerCase().match(/^(n|no|never|nah|nay)$/)
        },
        parseInput: function (pc) {

            var socket = pc.getSocket();

            socket.on('data', function (input) {

                var str = input.toString().toLowerCase().trim();
                //command  //preposition //item
                //Look    //at/on/in     //sign
                var command = str.split(' ').slice(0, 1).join(' ');

                var item = str.split(' ').slice(1).join(' ');

                console.log("item - " + item)

                //if (item == null || item == '' || command.startsWith('say') || command.startsWith('help') || command.startsWith('gossip') ||
                //    command.startsWith('clan') || command.startsWith('ask') || command.startsWith('auction') || command.startsWith('newbie')) { //< This looks hacky // Maybe move arguments into the command itself and only handle the single-word-command out here?
                //    //at / in not used. eg: look sword
                //    command = str.split(' ').slice(0, 1).join(' ');
                //    item = str.split(' ').slice(1).join(' ');
                //}

                var preposition = item.split(' ').slice(0, 1).join(' ');
                console.log("preposition " + preposition)
                if (preposition === 'in' || preposition === 'at') {
                    command += " " + preposition;
                    item = str.split(' ').slice(2).join(' ');
                }

                console.log('Command: \'' + command + '\'');
                console.log('Item: \'' + item + '\'');

                var commandTable = {

                    n: function () { socket.removeAllListeners('data'); socket.emit('North', modules.events.move.move(pc, 'North', null)); },
                    north: function () { commandTable.n(); },
{'fraction_non_alphanumeric': 0.19243565049903694, 'fraction_numerical': 0.003151812292067939, 'mean_word_length': 1.572972972972973, 'pattern_counts': {'":': 0, '<': 5, '<?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': '75028', 'n_tokens_mistral': 1613, 'n_tokens_neox': 1563, 'n_words': 320}