<commit_before>local sb = require"Sandbox"

local print = print

sb.init()

local co = sb.corobox.create(function()
    getmetatable("").__add = function(a,b) return a .. b end
    assert("a"+"b" == "ab")
  end)
local copy = {}
for k,v in pairs(getmetatable"") do
  copy[k] = v
end
sb.setLocalMetatable(co, "", copy)
coroutine.resume(co)
assert(not pcall(function() print("a"+"b") end)) -- should print "false"

assert(copy.__add)

sb.restore() -- restore normal behavior

assert(not pcall(function() print("a"+"b") end))<commit_msg>Remove outdated comment<commit_after>local sb = require"Sandbox"

local print = print

sb.init()

local co = sb.corobox.create(function()
    getmetatable("").__add = function(a,b) return a .. b end
    assert("a"+"b" == "ab")
  end)
local copy = {}
for k,v in pairs(getmetatable"") do
  copy[k] = v
end
sb.setLocalMetatable(co, "", copy)
coroutine.resume(co)
assert(not pcall(function() print("a"+"b") end))

assert(copy.__add)

sb.restore() -- restore normal behavior

assert(not pcall(function() print("a"+"b") end))
{'fraction_non_alphanumeric': 0.18250950570342206, 'fraction_numerical': 0.0, 'mean_word_length': 4.88268156424581, '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': '7107313', 'n_tokens_mistral': 384, 'n_tokens_neox': 382, 'n_words': 94}