<commit_before>-- Private table of Rust functions

-- TODO
-- remove "config", put everything into way_cooler table
-- it'll have windows, keys, etc. No way to just "set a value",
-- because the "registry" will actually have order to it now
-- You'll need to add it to some category, which we will allow to be done
-- e.g way_cooler.foo = { baz: 5}
-- this will make a new table for foo that has one entry baz set to 5
-- will need ugly check in get_index to make sure we know what we are accessing,
-- but hey whatever it'll look nice and let it be extended later easily

-- Our connection to Rust functions exposed by Way Cooler
local rust = __rust
__rust = nil

-- The table that the user sees
way_cooler = {}
-- The meta table magic that way_cooler uses to talk to Way Cooler
local way_cooler_mt = {}
-- The commands that way_cooler can run, e.g way_cooler.key(...)
local commands = {}
-- The key mapping that is updated by way_cooler.key(...)
local __key_map = {}
-- A cache of the registry, this is used to push values to Way Cooler.
-- Values are pushed here, and then we inform Way Cooler to read them.
__registry_cache = {}
local registry_cache_mt = {}

-- Initialize the workspaces
commands.init_workspaces = function(settings)
    assert(type(settings) == 'table', "settings: expected table")<commit_msg>Removed TODO comment<commit_after>-- Private table of Rust functions

-- Our connection to Rust functions exposed by Way Cooler
local rust = __rust
__rust = nil

-- The table that the user sees
way_cooler = {}
-- The meta table magic that way_cooler uses to talk to Way Cooler
local way_cooler_mt = {}
-- The commands that way_cooler can run, e.g way_cooler.key(...)
local commands = {}
-- The key mapping that is updated by way_cooler.key(...)
local __key_map = {}
-- A cache of the registry, this is used to push values to Way Cooler.
-- Values are pushed here, and then we inform Way Cooler to read them.
__registry_cache = {}
local registry_cache_mt = {}

-- Initialize the workspaces
commands.init_workspaces = function(settings)
    assert(type(settings) == 'table', "settings: expected table")
{'fraction_non_alphanumeric': 0.08983451536643026, 'fraction_numerical': 0.0009456264775413711, 'mean_word_length': 3.6917960088691797, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5407697', 'n_tokens_mistral': 628, 'n_tokens_neox': 597, 'n_words': 296}