<commit_before><commit_msg>init shell<commit_after>/*
 * Released under BSD License
 * Copyright (c) 2014-2015 <EMAIL>
 * 
 * Project Home:
 *   https://github.com/hizzgdev/jsmind/
 */

(function($w){
    "use strict";
    var $d = $w.document;
    var __name__ = 'jsMind';
    var jsMind = $w[__name__];
    if(!jsMind){return;}

    jsMind.shell = function(jm){
        this.jm = jm;
        this.commands = [];
    };

    jsMind.shell.prototype = {
        init:function(){
        },
        execute:function(command){
        },
        execute_batch:function(commands,interval){
        },
        add_command:function(command){
        },
        get_command_list:function(){
        },
        get_next_command:function(){
        },
        reset:function(){
        },
        record:function(action,data){
            console.log(action);
            console.log(data);
        }
    };
    var jm_event_handle = function(jm, type, data){
        if(type === 'init'){
            var js = new jsMind.shell(jm);
            jm.shell = js;
        }
        if(type === 'show'){
            var js = jm.shell;
            js.init();
            if(!!js){
                js.record('show',data);
            }
        }
        if(type === 'edit'){
            var js = jm.shell;
            if(!!js){
                var action=data.evt;
                delete data.evt;
                js.record(action,data);
            }
        }
    }
    jsMind.add_event_handle(jm_event_handle);
})(window);

{'fraction_non_alphanumeric': 0.14844267726971505, 'fraction_numerical': 0.005301524188204109, 'mean_word_length': 1.5549915397631133, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 1, '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': '7275761', 'n_tokens_mistral': 490, 'n_tokens_neox': 463, 'n_words': 76}