<commit_before>local state
local lastState
local renderList = {}

local update = function(dt)
  local initial = state ~= lastState
  lastState = state
  renderList = state(dt, initial)
end

local getRenderList = function()
  return renderList
end
<commit_msg>Clear input queue after each update<commit_after>local state
local lastState
local clearInput = require('input').clear
local renderList = {}

local update = function(dt)
  local initial = state ~= lastState
  lastState = state
  renderList = state(dt, initial)
  clearInput()
end

local getRenderList = function()
  return renderList
end

{'fraction_non_alphanumeric': 0.08040201005025126, 'fraction_numerical': 0.0, 'mean_word_length': 4.98, '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': '3970830', 'n_tokens_mistral': 169, 'n_tokens_neox': 170, 'n_words': 59}