<commit_before>module.exports = {
    
    PrivateKey: require('ecc/key_private'),
    PublicKey: require('ecc/key_public'),
    Aes: require('ecc/aes'),
    
    WalletDb: require('stores/WalletDb'),
    AccountStore: require('stores/AccountStore'),
    PrivateKeyStore: require('stores/PrivateKeyStore'),
    
    alt: require('alt-instance'),
    iDB: require('idb-instance'),
    Apis: require("rpc_api/ApiInstances"),
    
    init: context => {
        if( ! context) return
        for (var obj in module.exports) {
            if(obj === "init") continue
            context[obj] = module.exports[obj]
        }
    }
}<commit_msg>Adds browser console network access.<commit_after>import Apis from "rpc_api/ApiInstances"

module.exports = {
    
    PrivateKey: require('ecc/key_private'),
    PublicKey: require('ecc/key_public'),
    Aes: require('ecc/aes'),
    
    WalletDb: require('stores/WalletDb'),
    AccountStore: require('stores/AccountStore'),
    PrivateKeyStore: require('stores/PrivateKeyStore'),
    
    alt: require('alt-instance'),
    iDB: require('idb-instance'),
    
    Apis,
    db: Apis.instance().db_api(), //why is this null?
    
    log: object => {
        if( ! object["then"]) {
            console.log(object)
            return object
        }
        return new Promise( (resolve, reject) => {
            object.then( result => {
                console.log(result)
                resolve(result)
            }).catch( error => {
                console.error(error)
                reject(error)
            })
        })
    },
    
    init: context => {
        if( ! context) return
        for (var obj in module.exports) {
            if(obj === "init") continue
            context[obj] = module.exports[obj]
        }
    }
    
}
{'fraction_non_alphanumeric': 0.14093959731543623, 'fraction_numerical': 0.0, 'mean_word_length': 2.0951557093425603, 'pattern_counts': {'":': 0, '<': 3, '<?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': '773703', 'n_tokens_mistral': 537, 'n_tokens_neox': 531, 'n_words': 101}