<commit_before>basic_vocab = new tagg.Bank()
basic_vocab.define('tagg-bank', {
    protocol: undefined
    hostname: undefined
    port: undefined
    path: undefined
    extensions: undefined

    type: "family"

    setup: () ->
        options = {}
        for key in ['protocol', 'hostname', 'port', 'path', 'extensions']
            if @[key] isnt ""
                options[key] = @[key]

        if @type is "family"
            tagg.addBank(new tagg.FamilyBank(options))
        else if @type is "file"
            tagg.addBank(new tagg.FileBank(options))

})


basic_vocab.define("this-script", {

    bindToParent: (def) ->
        func = new Function(this.textContent)
        func.call(def)
        return def
})


basic_vocab.define("fps-meter", {
    
    style: """
        fps-meter {
            position:fixed;
            top:0px;
            left:0px;
            background-color:blue;
            color:white;
        }
    """
    
    update: () ->
        @innerHTML = Math.floor(tagg.smooth)

})

tagg.addBank(basic_vocab)

autoload = document.querySelectorAll('[data-autoload="false"]')
if autoload.length is 0
    tagg.addBank(new tagg.FamilyBank({path:"."}))

    tagg.addBank(new tagg.FamilyBank({
        protocol: "https",
        hostname: "storage.googleapis.com",
        path: "/tree.tagg.to/"
        port: "443"
    }))<commit_msg>added options for local-loading and remote loading<commit_after>basic_vocab = new tagg.Bank()
basic_vocab.define('tagg-bank', {
    protocol: undefined
    hostname: undefined
    port: undefined
    path: undefined
    extensions: undefined

    type: "family"

    setup: () ->
        options = {}
        for key in ['protocol', 'hostname', 'port', 'path', 'extensions']
            if @[key] isnt ""
                options[key] = @[key]

        if @type is "family"
            tagg.addBank(new tagg.FamilyBank(options))
        else if @type is "file"
            tagg.addBank(new tagg.FileBank(options))

})


basic_vocab.define("this-script", {

    bindToParent: (def) ->
        func = new Function(this.textContent)
        func.call(def)
        return def
})


basic_vocab.define("fps-meter", {
    
    style: """
        fps-meter {
            position:fixed;
            top:0px;
            left:0px;
            background-color:blue;
            color:white;
        }
    """
    
    update: () ->
        @innerHTML = Math.floor(tagg.smooth)

})

tagg.addBank(basic_vocab)

load_local = document.querySelectorAll('[data-local-loading="false"]')
if load_local.length is 0
    tagg.addBank(new tagg.FamilyBank({path:"."}))

load_remote = document.querySelectorAll('[data-remote-loading="false"]')
if load_remote.length is 0
    tagg.addBank(new tagg.FamilyBank({
        protocol: "https",
        hostname: "storage.googleapis.com",
        path: "/tree.tagg.to/"
        port: "443"
    }))
{'fraction_non_alphanumeric': 0.1407766990291262, 'fraction_numerical': 0.004507628294036061, 'mean_word_length': 2.1773127753303965, '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': '5796267', 'n_tokens_mistral': 953, 'n_tokens_neox': 925, 'n_words': 178}