<commit_before>--
-- Delete a key if content is equal
--
-- KEYS[1]   - key
-- KEYS[2]   - content
local key     = KEYS[1]
local content = KEYS[2]

local value = redis.call('get', key)

if value == content then
  return redis.call('del', key);
end

return 0
<commit_msg>Update parityDel.lua<commit_after>--
-- Delete a key if content is equal
--
-- KEYS[1]   - key
-- KEYS[2]   - content
local key     = KEYS[1]
local content = ARGV[1]

local value = redis.call('get', key)

if value == content then
  return redis.call('del', key);
end

return 0

{'fraction_non_alphanumeric': 0.15173674588665448, 'fraction_numerical': 0.018281535648994516, 'mean_word_length': 2.8865248226950353, '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': '2058970', 'n_tokens_mistral': 207, 'n_tokens_neox': 202, 'n_words': 65}