<commit_before>
local Sequence = function(name, text, description)
    local mt = {}
    mt.name = function()
        return name
    end
    mt.text = function()
        return text
    end
    mt.description = function()
        return description
    end
    mt.size = function()
        return #text
    end
    mt.at = function(self, index)
        return text:sub(index + 1, index + 1)
    end
    mt.__index = mt
    return setmetatable({}, mt)
end

return Sequence<commit_msg>implement Sequence as table, not as function<commit_after>
local Sequence = {}

local Sequence_mt = {}

Sequence_mt.__call = function(self, name, text, description)
    local mt = {}
    mt.name = function()
        return name
    end
    mt.text = function()
        return text
    end
    mt.description = function()
        return description
    end
    mt.size = function()
        return #text
    end
    mt.at = function(self, index)
        return text:sub(index + 1, index + 1)
    end
    mt.__index = mt
    return setmetatable({}, mt)
end

return setmetatable(Sequence, Sequence_mt)
{'fraction_non_alphanumeric': 0.09620721554116558, 'fraction_numerical': 0.0037002775208140612, 'mean_word_length': 2.308868501529052, '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': '886208', 'n_tokens_mistral': 326, 'n_tokens_neox': 316, 'n_words': 100}